Package visualisation

Klasse LegendArea

Alle implementierten Schnittstellen:
ImageObserver, MenuContainer, Serializable, Accessible
Bekannte direkte Unterklassen:
OurLegendArea

public abstract class LegendArea extends JPanel
This class enables the user to add a legend area for describing the elements and symbols of an algorithm's visualization. Override method initialize(Graphics) for drawing your legend area's graphical output.
Siehe auch:
  • Felddetails

    • scrollPane

      protected JScrollPane scrollPane
      The legend area's scroll pane.
  • Konstruktordetails

    • LegendArea

      public LegendArea()
      Standard constructor Creates an empty legend area with scroll pane.
  • Methodendetails

    • getScrollPane

      public JScrollPane getScrollPane()
      Returns the legend area's scroll pane.
      Gibt zurück:
      the LegendArea's scroll pane
    • paint

      public void paint(Graphics g)
      Paints the legend area background and calls initialize(Graphics).
      Setzt außer Kraft:
      paint in Klasse JComponent
    • initialize

      public abstract void initialize(Graphics g)
      Method that is responsible for drawing all elements and descriptions of the LegendArea. Implement this method to add and draw parameters to your legend area.
      Parameter:
      g - the Graphics object of the corresponding panel