Class ncsa.horizon.viewer.SpreadsheetViewer
All Packages Class Hierarchy This Package Previous Next Index
Class ncsa.horizon.viewer.SpreadsheetViewer
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----ncsa.horizon.viewer.Viewer
|
+----ncsa.horizon.viewer.SpreadsheetViewer
- public class SpreadsheetViewer
- extends Viewer
-
coord
- CoordinateSystem object for converting between data pixels and
world coordinates
-
display
- A canvas used to display the image and hanle the selection
events
-
slice
-
-
viewable
- the current viewable
-
SpreadsheetViewer()
- create a viewer with no argument
-
addViewable(Viewable)
- replace the current Viewable object with a new one; the display
will not be affected until displaySlice() is called.
-
createDefaultSlice(Viewable)
-
-
displaySlice()
- Display a default slice of the current Viewable.
-
displaySlice(Slice)
- display a slice from the current Viewable data, or do nothing if
the current Viewable is not set.
-
getDisplaySize()
- This method returns the size in display pixel units of the region
that displays a Viewable
-
getViewable()
- Return a reference to the current Viewable object, or null if
none are attached to this Viewer.
-
getViewSlice()
- return a Slice object describing the data currently being viewed,
or null if there is no Viewable currently being viewed.
-
preferredSize()
- return the preferred size of this Viewer Panel
-
update(Observable, Object)
-
viewable
protected Viewable viewable
- the current viewable
coord
protected CoordinateSystem coord
- CoordinateSystem object for converting between data pixels and
world coordinates
display
protected SelectionSpreadsheet display
- A canvas used to display the image and hanle the selection
events
slice
protected Slice slice
SpreadsheetViewer
public SpreadsheetViewer()
- create a viewer with no argument
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 Viewer
createDefaultSlice
protected Slice createDefaultSlice(Viewable v)
displaySlice
public void displaySlice()
- Display a default slice of the current Viewable.
- Overrides:
- displaySlice in class Viewer
displaySlice
public synchronized void displaySlice(Slice sl)
- display a slice from the current Viewable data, or do nothing if
the current Viewable is not set.
- Overrides:
- displaySlice in class Viewer
getDisplaySize
public Dimension getDisplaySize()
- This method returns the size in display pixel units of the region
that displays a Viewable
- Returns:
- Dimension of the compoonent
- Overrides:
- getDisplaySize in class Viewer
- See Also:
- Dimension, size()
getViewable
public Viewable getViewable()
- Return a reference to the current Viewable object, or null if
none are attached to this Viewer.
- Returns:
- The current Viewable object; null if none present.
- Overrides:
- getViewable in class Viewer
getViewSlice
public Slice getViewSlice()
- return a Slice object describing the data currently being viewed,
or null if there is no Viewable currently being viewed.
- Overrides:
- getViewSlice in class Viewer
preferredSize
public Dimension preferredSize()
- return the preferred size of this Viewer Panel
- Overrides:
- preferredSize in class Container
update
public void update(Observable o,
Object arg)
- Overrides:
- update in class Viewer
All Packages Class Hierarchy This Package Previous Next Index