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.


Variable Index

 o chooserFrame
 o lutSelectionPanel

Constructor Index

 o ExtendedGraphicsSelectionViewer()
create a viewer with a display of a default size (256 by 256).
 o ExtendedGraphicsSelectionViewer(boolean)
create a viewer with a display of a default size (256 by 256).
 o ExtendedGraphicsSelectionViewer(int, int)
create a viewer with a given display size
 o ExtendedGraphicsSelectionViewer(int, int, boolean)
create a viewer with a given display size

Method Index

 o addViewable(Viewable)
replace the current Viewable object with a new one; the display will not be affected until displaySlice() is called.
 o constructVariables()
Initialize member variables except display.
 o createSliceChooser()
Create a sliceChooser from viewable.
 o displaySlicebyImpl()
Delegate displaySlice action to viewerImpl.
 o getGui()
Return an java.awt.Component array of length 3.

Variables

 o lutSelectionPanel
  protected LutSelectionPanel lutSelectionPanel
 o chooserFrame
  protected SimpleFrame chooserFrame

Constructors

 o ExtendedGraphicsSelectionViewer
  public ExtendedGraphicsSelectionViewer()
create a viewer with a display of a default size (256 by 256).
 o 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
 o 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
 o 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

Methods

 o 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
 o 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
 o 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.
 o displaySlicebyImpl
  protected void displaySlicebyImpl()
Delegate displaySlice action to viewerImpl.
Overrides:
displaySlicebyImpl in class GraphicsSelectionViewer
 o 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