Class IR_Section

All Implemented Interfaces:
FocusListener, ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible, IR_Copiable

public class IR_Section extends ItemRenderer implements IR_Copiable
Represents a section name.
See Also:
  • Constructor Details

  • Method Details

    • setSectionColor

      public void setSectionColor(Color refColor)
      Set the color of the section.
      Parameters:
      refColor - Must be one of the ColorSetManager reference colors.
    • getSectionColor

      public Color getSectionColor()
    • getPreferredSize

      public Dimension getPreferredSize()
      Calculate the preferredSize() depending on font and zoomFactor.

      Also precalculate some data for paintComponent().

      Overrides:
      getPreferredSize in class JComponent
    • setZoomFactor

      public void setZoomFactor(int factor)
      Zoom factor.
      Specified by:
      setZoomFactor in class ItemRenderer
      Parameters:
      factor - 0=min zoom (bird's view), 100=max zoom
    • getZoomFactor

      public int getZoomFactor()
      Specified by:
      getZoomFactor in class ItemRenderer
    • cleanup

      public void cleanup()
      Description copied from class: ItemRenderer
      Clean up everything so this object can be garbaged.
      Overrides:
      cleanup in class ItemRenderer
    • paintComponent

      public void paintComponent(Graphics g)
      Render the event.
    • propertyChange

      public void propertyChange(PropertyChangeEvent e)
      Specified by:
      propertyChange in interface PropertyChangeListener
      Overrides:
      propertyChange in class ItemRenderer
    • showCopyMode

      public void showCopyMode(boolean b)
      Description copied from interface: IR_Copiable
      If true, ItemRenderer should represent the copy mode, possibly using the provided CopyIndicator.
      Specified by:
      showCopyMode in interface IR_Copiable