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

  • Method Details

    • getComponent

      public JComponent getComponent()
    • getDisplayDecorations

      public ClipDisplayDecorations getDisplayDecorations()
      Returns:
      the displayDecorations
    • removeDisplayDecorations

      public void removeDisplayDecorations()
    • setBorderColour

      public void setBorderColour()
    • layoutUnit

      public void layoutUnit(boolean needNewImage)
    • repaintUnit

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

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

      public ClipDataUnit getClipDataUnit()
      Returns:
      the clipDataUnit
    • setNorthComponent

      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

      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

      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

      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

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

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

      public JPanel getimagePanel()
      Returns:
      the clipDisplayPanel
    • showPopupMenu

      public void showPopupMenu(MouseEvent e)
    • isHighlight

      public boolean isHighlight()
      Returns:
      the highlight
    • setHighlight

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

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