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

Variable Index

 o coord
CoordinateSystem object for converting between data pixels and world coordinates
 o display
A canvas used to display the image and hanle the selection events
 o slice
 o viewable
the current viewable

Constructor Index

 o SpreadsheetViewer()
create a viewer with no argument

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 createDefaultSlice(Viewable)
 o displaySlice()
Display a default slice of the current Viewable.
 o displaySlice(Slice)
display a slice from the current Viewable data, or do nothing if the current Viewable is not set.
 o getDisplaySize()
This method returns the size in display pixel units of the region that displays a Viewable
 o getViewable()
Return a reference to the current Viewable object, or null if none are attached to this Viewer.
 o getViewSlice()
return a Slice object describing the data currently being viewed, or null if there is no Viewable currently being viewed.
 o preferredSize()
return the preferred size of this Viewer Panel
 o update(Observable, Object)

Variables

 o viewable
  protected Viewable viewable
the current viewable
 o coord
  protected CoordinateSystem coord
CoordinateSystem object for converting between data pixels and world coordinates
 o display
  protected SelectionSpreadsheet display
A canvas used to display the image and hanle the selection events
 o slice
  protected Slice slice

Constructors

 o SpreadsheetViewer
  public SpreadsheetViewer()
create a viewer with no argument

Methods

 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 Viewer
 o createDefaultSlice
  protected Slice createDefaultSlice(Viewable v)
 o displaySlice
  public void displaySlice()
Display a default slice of the current Viewable.
Overrides:
displaySlice in class Viewer
 o 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
 o 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()
 o 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
 o 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
 o preferredSize
  public Dimension preferredSize()
return the preferred size of this Viewer Panel
Overrides:
preferredSize in class Container
 o update
  public void update(Observable o,
                     Object arg)
Overrides:
update in class Viewer

All Packages  Class Hierarchy  This Package  Previous  Next  Index