Package clipgenerator.clipDisplay
Class ClipDisplayDecorations
java.lang.Object
clipgenerator.clipDisplay.ClipDisplayDecorations
- Direct Known Subclasses:
DifarClipDecorations
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddDisplayMenuItems
(JPopupMenu basicMenu) Add additional functionality to the popup menu on a display unit.void
Decorate the display - adding any additional panels and creating extra menus, etc.void
Can be used to decorate / draw on the clip panel axis.void
Can be used to decorate / draw on the clip panel axis.Get a background colour for the clipvoid
Remove any additional decorations
-
Constructor Details
-
ClipDisplayDecorations
-
-
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
- Returns:
- the clipDisplayUnit
-
addDisplayMenuItems
Add additional functionality to the popup menu on a display unit.- Parameters:
basicMenu
- basic menu for clip display unitsclipDisplayUnit
- clip display unitclipDataUnit
- clip data unit- Returns:
- the modifies (or a completely different) menu
-
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
Can be used to decorate / draw on the clip panel axis.- Parameters:
g
- graphics handle.
-
drawOnClipBorder
Can be used to decorate / draw on the clip panel axis.- Parameters:
g
- graphics handle.
-