Class ncsa.horizon.viewer.ExtendedGraphicsSelectionViewer
All Packages Class Hierarchy This Package Previous Next Index
Class ncsa.horizon.viewer.ExtendedGraphicsSelectionViewer
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----ncsa.horizon.viewer.Viewer
|
+----ncsa.horizon.viewer.SelectionViewer
|
+----ncsa.horizon.viewer.GraphicsSelectionViewer
|
+----ncsa.horizon.viewer.ExtendedGraphicsSelectionViewer
- public class ExtendedGraphicsSelectionViewer
- extends GraphicsSelectionViewer
- implements Guiedable
This Viewer provides an implementation of the methods needed for
a SelectionViewer.
Programmer's are encouraged to inspect this code for examples of how
to implement the various Viewer methods.
-
chooserFrame
-
-
lutSelectionPanel
-
-
ExtendedGraphicsSelectionViewer()
- create a viewer with a display of a default size (256 by 256).
-
ExtendedGraphicsSelectionViewer(boolean)
- create a viewer with a display of a default size (256 by 256).
-
ExtendedGraphicsSelectionViewer(int, int)
- create a viewer with a given display size
-
ExtendedGraphicsSelectionViewer(int, int, boolean)
- create a viewer with a given display size
-
addViewable(Viewable)
- replace the current Viewable object with a new one; the display
will not be affected until displaySlice() is called.
-
constructVariables()
- Initialize member variables except display.
-
createSliceChooser()
- Create a sliceChooser from viewable.
-
displaySlicebyImpl()
- Delegate displaySlice action to viewerImpl.
-
getGui()
- Return an java.awt.Component array of length 3.
lutSelectionPanel
protected LutSelectionPanel lutSelectionPanel
chooserFrame
protected SimpleFrame chooserFrame
ExtendedGraphicsSelectionViewer
public ExtendedGraphicsSelectionViewer()
- create a viewer with a display of a default size (256 by 256).
ExtendedGraphicsSelectionViewer
public ExtendedGraphicsSelectionViewer(boolean showButtons)
- create a viewer with a display of a default size (256 by 256).
- Parameters:
- showButtons - if true, the Viewer will contain 3 buttons at the
bottom of its Panel; see showingButtons() for details
ExtendedGraphicsSelectionViewer
public ExtendedGraphicsSelectionViewer(int width,
int height)
- create a viewer with a given display size
- Parameters:
- width - width of the display area
- height - height of the display area
ExtendedGraphicsSelectionViewer
public ExtendedGraphicsSelectionViewer(int width,
int height,
boolean showButtons)
- create a viewer with a given display size
- Parameters:
- width - width of the display area
- height - height of the display area
- showButtons - if true, the Viewer will contain 3 buttons at the
bottom of its Panel; see showingButtons() for details
constructVariables
protected void constructVariables()
- Initialize member variables except display. This method works only for
constructors. It should be called after display has been constructed.
- Overrides:
- constructVariables in class GraphicsSelectionViewer
addViewable
public synchronized void addViewable(Viewable data)
- replace the current Viewable object with a new one; the display
will not be affected until displaySlice() is called.
- Overrides:
- addViewable in class GraphicsSelectionViewer
createSliceChooser
protected void createSliceChooser()
- Create a sliceChooser from viewable. This method is
call when current viewable is replaced with new one, ie,
when addViewable(Viewable data) is called.
displaySlicebyImpl
protected void displaySlicebyImpl()
- Delegate displaySlice action to viewerImpl.
- Overrides:
- displaySlicebyImpl in class GraphicsSelectionViewer
getGui
public Component[] getGui()
- Return an java.awt.Component array of length 3.
First is Graphics setting panels, which are contained
in a CardPanel.
Second is the SliceChooserPanel.
The last is the LutSelectionPanel.
- Overrides:
- getGui in class GraphicsSelectionViewer
All Packages Class Hierarchy This Package Previous Next Index