java.lang.Object
de.klassenserver7b.danceinterpreter.graphics.songwindows.FormattedSongWindow
All Implemented Interfaces:
TypedWindow
Direct Known Subclasses:
SongWindowBdImgTA

public abstract class FormattedSongWindow extends Object implements TypedWindow
Author:
K7
  • Field Details

    • frame

      protected JFrame frame
    • windowSpecs

      protected final SongWindowSpecs windowSpecs
    • danceName

      protected String danceName
    • songName

      protected String songName
    • artistName

      protected String artistName
    • albumImage

      protected BufferedImage albumImage
    • hasAlbumImage

      protected final boolean hasAlbumImage
    • hasNextData

      protected boolean hasNextData
    • nextData

      protected SongData nextData
  • Constructor Details

    • FormattedSongWindow

      public FormattedSongWindow(SongWindowSpecs songWindowSpecs)
      Parameters:
      songWindowSpecs -
  • Method Details

    • onInit

      public void onInit(JFrame mainFrame)
      Specified by:
      onInit in interface TypedWindow
    • calcEstimatedWidth

      protected int calcEstimatedWidth(JLabel comp, Font font, Graphics g)
      Parameters:
      comp -
      font -
      g -
      Returns:
    • calcEstimatedWidth

      protected int calcEstimatedWidth(JLabel comp, Graphics g)
      Parameters:
      comp -
      g -
      Returns:
    • calcEstimatedWidth

      protected int calcEstimatedWidth(JLabel comp)
      Parameters:
      comp -
      Returns:
    • calcEstimatedHeight

      protected int calcEstimatedHeight(JLabel comp, Font font, Graphics g)
      Parameters:
      comp -
      font -
      g -
      Returns:
    • calcEstimatedHeight

      protected int calcEstimatedHeight(JLabel comp, Graphics g)
      Parameters:
      comp -
      g -
      Returns:
    • calcEstimatedHeight

      protected int calcEstimatedHeight(JLabel comp)
      Parameters:
      comp -
      Returns:
    • calcSize

      protected DIVector calcSize(JLabel comp, Font font, Graphics g)
    • calcSize

      protected DIVector calcSize(JLabel comp, Graphics g)
    • calcSize

      protected DIVector calcSize(JLabel comp)
    • iconToImage

      public static BufferedImage iconToImage(Icon icon)
      Parameters:
      icon -
      Returns:
    • updateData

      public void updateData(SongData data)
      Parameters:
      data -
    • getWindowSpecs

      public SongWindowSpecs getWindowSpecs()
      Returns: