Class ClipDisplayDecorations

java.lang.Object
clipgenerator.clipDisplay.ClipDisplayDecorations
Direct Known Subclasses:
DifarClipDecorations

public class ClipDisplayDecorations extends Object
  • Constructor Details

    • ClipDisplayDecorations

      public ClipDisplayDecorations(ClipDisplayUnit clipDisplayUnit)
  • Method Details

    • decorateDisplay

      public void decorateDisplay()
      Decorate the display - adding any additional panels and creating extra menus, etc.
    • removeDecoration

      public void removeDecoration()
      Remove any additional decorations
    • getClipDisplayUnit

      public ClipDisplayUnit getClipDisplayUnit()
      Returns:
      the clipDisplayUnit
    • addDisplayMenuItems

      public JPopupMenu addDisplayMenuItems(JPopupMenu basicMenu)
      Add additional functionality to the popup menu on a display unit.
      Parameters:
      basicMenu - basic menu for clip display units
      clipDisplayUnit - clip display unit
      clipDataUnit - clip data unit
      Returns:
      the modifies (or a completely different) menu
    • getClipBackground

      public Color getClipBackground()
      Get a background colour for the clip
      Parameters:
      clipDataUnit -
      Returns:
      a background colour or null, in which case the standard PAMColour will be used.
    • drawOnClipAxis

      public void drawOnClipAxis(Graphics g)
      Can be used to decorate / draw on the clip panel axis.
      Parameters:
      g - graphics handle.
    • drawOnClipBorder

      public void drawOnClipBorder(Graphics g)
      Can be used to decorate / draw on the clip panel axis.
      Parameters:
      g - graphics handle.