Class ncsa.horizon.viewer.SciDat1Viewer
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.horizon.viewer.SciDat1Viewer

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----ncsa.horizon.viewer.Viewer
                                   |
                                   +----ncsa.horizon.viewer.SelectionViewer
                                           |
                                           +----ncsa.horizon.viewer.SciDat1Viewer

public class SciDat1Viewer
extends SelectionViewer
implements Cloneable

Variable Index

 o coord
 o data
 o mag
 o magview
 o mainimg
 o mainview
 o newViewable
 o pixtrx
 o posview
 o selbox
 o selline
 o selpix
 o slice

Constructor Index

 o SciDat1Viewer()
create a viewer with no Viewable to display
 o SciDat1Viewer(MainCanvas, MagnifierPanel, PositionPanel)
construct a Viewer using specific subcomponents
 o SciDat1Viewer(Viewable, Slice)
create a viewer and display in it a slice from a viewable image

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 clone()
produce a copy of this viewer.
 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 displayViewable()
display a default slice of the current Viewable
 o getBoxSelection()
get the current selected display box.
 o getDisplaySize()
return the size of the display area
 o getLineSelection()
get the current selected display Line.
 o getPixelSelection()
get the current selected display pixel.
 o getSliceSelection()
return the current selected Slice, or null if there is no current 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 getVoxelSelection()
return the current selected Voxel, or null if there is no current Viewable.
 o imageUpdate(Image, int, int, int, int, int)
This implementation simple issues a repaint() when an image has become available.
 o init()
assemble the components of the Viewer Panel
 o setBoxSelection(int, int, int, int)
set the current selected display box.
 o setDrawBox(boolean)
 o setDrawLine(boolean)
 o setDrawPoint(boolean)
 o setLineSelection(int, int, int, int)
set the current selected display line.
 o setPixelSelection(int, int)
set the current selected display pixel.
 o setSliceSelection(Volume)
set the current selected Slice to the given Volume as projected onto the currently displayed Slice, or do nothing if there is no current Viewable.
 o setVoxelSelection(Voxel)
set the current selected Voxel to the one given as projected onto the currently displayed Slice, or do nothing if there is no current Viewable.
 o updateMagview()
update the display of the image that appears in the magnifier canvas
 o updatePosview(boolean, boolean, boolean)
update the display of positions in the position panel

Variables

 o mag
  protected float mag
 o magview
  protected MagnifierPanel magview
 o posview
  protected PositionPanel posview
 o mainview
  protected MainCanvas mainview
 o selpix
  protected Point selpix
 o selbox
  protected Rectangle selbox
 o selline
  protected Rectangle selline
 o data
  protected Viewable data
 o slice
  protected Slice slice
 o pixtrx
  protected ImageDisplayMap pixtrx
 o coord
  protected CoordinateSystem coord
 o mainimg
  protected Image mainimg
 o newViewable
  protected boolean newViewable

Constructors

 o SciDat1Viewer
  public SciDat1Viewer()
create a viewer with no Viewable to display
 o SciDat1Viewer
  public SciDat1Viewer(MainCanvas mainc,
                       MagnifierPanel magp,
                       PositionPanel posp)
construct a Viewer using specific subcomponents
 o SciDat1Viewer
  public SciDat1Viewer(Viewable data,
                       Slice slice)
create a viewer and display in it a slice from a viewable image

Methods

 o init
  protected void init()
assemble the components of the Viewer Panel
 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 getViewable
  public synchronized Viewable getViewable()
Return a reference to the current Viewable object, or null if none are attached to this Viewer.
Overrides:
getViewable 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 displaySlice
  public void displaySlice()
display a default slice of the current Viewable
Overrides:
displaySlice in class Viewer
 o displayViewable
  public void displayViewable()
display a default slice of the current Viewable
 o getDisplaySize
  public Dimension getDisplaySize()
return the size of the display area
Overrides:
getDisplaySize in class Viewer
 o setPixelSelection
  public void setPixelSelection(int x,
                                int y)
set the current selected display pixel. The location is measured in real display (i.e. screen) pixels relative to the upper left hand corner.
Overrides:
setPixelSelection in class SelectionViewer
 o setBoxSelection
  public void setBoxSelection(int x1,
                              int y1,
                              int x2,
                              int y2)
set the current selected display box. The locations are measured in real display (i.e. screen) pixels relative to the upper left hand corner.
Parameters:
x1,y1 - the location of one vertex of the selected box
x2,y2 - the location of the vertex of the selected box opposite to the one given by x1,y1
Overrides:
setBoxSelection in class SelectionViewer
 o setLineSelection
  public void setLineSelection(int x1,
                               int y1,
                               int x2,
                               int y2)
set the current selected display line. The locations are measured in real display (i.e. screen) pixels relative to the upper left hand corner.
Parameters:
x1,y1 - the location of the start of the line
x2,y2 - the location of the end of the line
Overrides:
setLineSelection in class SelectionViewer
 o getPixelSelection
  public Point getPixelSelection()
get the current selected display pixel.
Overrides:
getPixelSelection in class SelectionViewer
 o getBoxSelection
  public Rectangle getBoxSelection()
get the current selected display box.
Overrides:
getBoxSelection in class SelectionViewer
 o getLineSelection
  public Rectangle getLineSelection()
get the current selected display Line.
Overrides:
getLineSelection in class SelectionViewer
 o getVoxelSelection
  public Voxel getVoxelSelection()
return the current selected Voxel, or null if there is no current Viewable.
Overrides:
getVoxelSelection in class SelectionViewer
 o setVoxelSelection
  public synchronized void setVoxelSelection(Voxel vox)
set the current selected Voxel to the one given as projected onto the currently displayed Slice, or do nothing if there is no current Viewable.
Overrides:
setVoxelSelection in class SelectionViewer
 o getSliceSelection
  public Slice getSliceSelection()
return the current selected Slice, or null if there is no current Viewable;
Overrides:
getSliceSelection in class SelectionViewer
 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 setSliceSelection
  public synchronized void setSliceSelection(Volume vol)
set the current selected Slice to the given Volume as projected onto the currently displayed Slice, or do nothing if there is no current Viewable.
Overrides:
setSliceSelection in class SelectionViewer
 o imageUpdate
  public boolean imageUpdate(Image img,
                             int flags,
                             int x,
                             int y,
                             int w,
                             int h)
This implementation simple issues a repaint() when an image has become available.
Overrides:
imageUpdate in class Component
 o updatePosview
  public void updatePosview(boolean doPix,
                            boolean doBox,
                            boolean doCoord)
update the display of positions in the position panel
 o updateMagview
  public void updateMagview()
update the display of the image that appears in the magnifier canvas
 o setDrawBox
  public void setDrawBox(boolean b)
 o setDrawLine
  public void setDrawLine(boolean b)
 o setDrawPoint
  public void setDrawPoint(boolean b)
 o clone
  public Object clone()
produce a copy of this viewer.
Overrides:
clone in class Viewer

All Packages  Class Hierarchy  This Package  Previous  Next  Index