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
-
coord
-
-
data
-
-
mag
-
-
magview
-
-
mainimg
-
-
mainview
-
-
newViewable
-
-
pixtrx
-
-
posview
-
-
selbox
-
-
selline
-
-
selpix
-
-
slice
-
-
SciDat1Viewer()
- create a viewer with no Viewable to display
-
SciDat1Viewer(MainCanvas, MagnifierPanel, PositionPanel)
- construct a Viewer using specific subcomponents
-
SciDat1Viewer(Viewable, Slice)
- create a viewer and display in it a slice from a viewable image
-
addViewable(Viewable)
- replace the current Viewable object with a new one; the display
will not be affected until displaySlice() is called.
-
clone()
-
produce a copy of this viewer.
-
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.
-
displayViewable()
- display a default slice of the current Viewable
-
getBoxSelection()
- get the current selected display box.
-
getDisplaySize()
- return the size of the display area
-
getLineSelection()
- get the current selected display Line.
-
getPixelSelection()
- get the current selected display pixel.
-
getSliceSelection()
- return the current selected Slice, or null if there is no current
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.
-
getVoxelSelection()
- return the current selected Voxel, or null if there is no current
Viewable.
-
imageUpdate(Image, int, int, int, int, int)
- This implementation simple issues a repaint() when an image has become
available.
-
init()
- assemble the components of the Viewer Panel
-
setBoxSelection(int, int, int, int)
- set the current selected display box.
-
setDrawBox(boolean)
-
-
setDrawLine(boolean)
-
-
setDrawPoint(boolean)
-
-
setLineSelection(int, int, int, int)
- set the current selected display line.
-
setPixelSelection(int, int)
- set the current selected display pixel.
-
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.
-
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.
-
updateMagview()
- update the display of the image that appears in the magnifier canvas
-
updatePosview(boolean, boolean, boolean)
- update the display of positions in the position panel
mag
protected float mag
magview
protected MagnifierPanel magview
posview
protected PositionPanel posview
mainview
protected MainCanvas mainview
selpix
protected Point selpix
selbox
protected Rectangle selbox
selline
protected Rectangle selline
data
protected Viewable data
slice
protected Slice slice
pixtrx
protected ImageDisplayMap pixtrx
coord
protected CoordinateSystem coord
mainimg
protected Image mainimg
newViewable
protected boolean newViewable
SciDat1Viewer
public SciDat1Viewer()
- create a viewer with no Viewable to display
SciDat1Viewer
public SciDat1Viewer(MainCanvas mainc,
MagnifierPanel magp,
PositionPanel posp)
- construct a Viewer using specific subcomponents
SciDat1Viewer
public SciDat1Viewer(Viewable data,
Slice slice)
- create a viewer and display in it a slice from a viewable image
init
protected void init()
- assemble the components of the Viewer Panel
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
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
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
displaySlice
public void displaySlice()
- display a default slice of the current Viewable
- Overrides:
- displaySlice in class Viewer
displayViewable
public void displayViewable()
- display a default slice of the current Viewable
getDisplaySize
public Dimension getDisplaySize()
- return the size of the display area
- Overrides:
- getDisplaySize in class Viewer
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
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
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
getPixelSelection
public Point getPixelSelection()
- get the current selected display pixel.
- Overrides:
- getPixelSelection in class SelectionViewer
getBoxSelection
public Rectangle getBoxSelection()
- get the current selected display box.
- Overrides:
- getBoxSelection in class SelectionViewer
getLineSelection
public Rectangle getLineSelection()
- get the current selected display Line.
- Overrides:
- getLineSelection in class SelectionViewer
getVoxelSelection
public Voxel getVoxelSelection()
- return the current selected Voxel, or null if there is no current
Viewable.
- Overrides:
- getVoxelSelection in class SelectionViewer
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
getSliceSelection
public Slice getSliceSelection()
- return the current selected Slice, or null if there is no current
Viewable;
- Overrides:
- getSliceSelection in class SelectionViewer
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
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
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
updatePosview
public void updatePosview(boolean doPix,
boolean doBox,
boolean doCoord)
- update the display of positions in the position panel
updateMagview
public void updateMagview()
- update the display of the image that appears in the magnifier canvas
setDrawBox
public void setDrawBox(boolean b)
setDrawLine
public void setDrawLine(boolean b)
setDrawPoint
public void setDrawPoint(boolean b)
clone
public Object clone()
- produce a copy of this viewer.
- Overrides:
- clone in class Viewer
All Packages Class Hierarchy This Package Previous Next Index