Class ClipDisplayUnit

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, ColorManaged

public class ClipDisplayUnit extends PamPanel
Graphic component for a single clip display.
Author:
Doug Gillespie
See Also:
  • Constructor Details Link icon

  • Method Details Link icon

    • getComponent Link icon

      public JComponent getComponent()
    • getDisplayDecorations Link icon

      public ClipDisplayDecorations getDisplayDecorations()
      Returns:
      the displayDecorations
    • removeDisplayDecorations Link icon

      public void removeDisplayDecorations()
    • setBorderColour Link icon

      public void setBorderColour()
    • layoutUnit Link icon

      public void layoutUnit(boolean needNewImage)
    • repaintUnit Link icon

      public void repaintUnit()
      Repaint both the border and the image panel.
    • paint Link icon

      public void paint(Graphics g)
      Overrides:
      paint in class JComponent
    • getClipDataUnit Link icon

      public ClipDataUnit getClipDataUnit()
      Returns:
      the clipDataUnit
    • setNorthComponent Link icon

      public void setNorthComponent(JComponent northComponent)
      Add a component to the display unit to be inserted into the North of a BorderLayout
      Parameters:
      northComponent - component to add.
    • setSouthComponent Link icon

      public void setSouthComponent(JComponent southComponent)
      Add a component to the display unit to be inserted into the South of a BorderLayout
      Parameters:
      northComponent - component to add.
    • setEastComponent Link icon

      public void setEastComponent(JComponent eastComponent)
      Add a component to the display unit to be inserted into the East of a BorderLayout
      Parameters:
      eastComponent - component to add.
    • setWestComponent Link icon

      public void setWestComponent(JComponent westComponent)
      Add a component to the display unit to be inserted into the West of a BorderLayout
      Parameters:
      northComponent - component to add.
    • getImagePanel Link icon

      public JPanel getImagePanel()
      Returns:
      a reference to the central image panel (so you can add a dropdown menu, etc.).
    • getAxisPanel Link icon

      public JPanel getAxisPanel()
      Returns:
      a reference to the main axis panel (so you can add a dropdown menu, etc.).
    • getimagePanel Link icon

      public JPanel getimagePanel()
      Returns:
      the clipDisplayPanel
    • showPopupMenu Link icon

      public void showPopupMenu(MouseEvent e)
    • isHighlight Link icon

      public boolean isHighlight()
      Returns:
      the highlight
    • setHighlight Link icon

      public void setHighlight(boolean highlight)
      Parameters:
      highlight - the highlight to set
    • toggleHighlight Link icon

      public boolean toggleHighlight()
      Flip the highlight state.
      Returns: