| Overview | Package | Class | Tree | Deprecated | Index | Help | |||
| PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Canvas
|
+--ncsa.horizon.viewer.SimpleViewer
This viewer is a canvas which paints its image onto itself.
| Field Summary | |
| ViewerDelegate | delegate
the data-handling delegate |
| View2D | vu
|
| Fields inherited from class java.awt.Component | |
| BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT | |
| Constructor Summary | |
| SimpleViewer()
create a Viewer of default size |
|
| SimpleViewer(int w,
int h)
create a Viewer of a default size |
|
| Method Summary | |
| void | addNewViewListener(NewViewListener nvl)
add a listener for NewViewEvents |
| void | display(Slice sl)
display a slice |
| void | display(Slice sl,
ViewableList vl)
display a slice |
| void | display(Slice sl,
Viewable v)
display a slice |
| void | display(ViewStack view)
display a stack of previously constructed images |
| void | displayViews(ViewStack views)
display the prepared visualizations. |
| java.awt.Component | getDisplay()
Return a reference to the component where the image will be painted. |
| java.awt.Dimension | getDisplaySize()
return the size of the Display area |
| java.lang.Object | getLock()
return an object that can be used to lock access to the Viewer. |
| java.awt.Dimension | getPreferredSize()
get the preferred size of this viewer |
| Slice | getSlice()
return the current slice being displayed. |
| ViewableList | getViewableList()
return the ViewableList currently associated with this Viewer |
| java.awt.Rectangle | getViewBounds(int width,
int height)
Return a rectangle specifying the bounds within the display component that an image of a given size would be painted. |
| View2D | getView()
Deprecated. return the View2D object being displayed |
| boolean | handleAccessException(DataAccessException ex,
Viewable viewable,
Slice slice)
handle a DataAccessException. |
| boolean | handleTransFuncException(BadTransferFunctionException ex,
Viewable viewable)
handle a BadTransferFunctionException. |
| boolean | imageUpdate(java.awt.Image im,
int flags,
int x,
int y,
int w,
int h)
|
| void | paint(java.awt.Graphics g)
paint the image from the current view |
| void | redisplay()
display a slice |
| void | removeNewViewListener(NewViewListener nvl)
add a listener for NewViewEvents |
| void | setPreferredSize(int w,
int h)
set the preferred size of this viewer |
| void | setViewableList(ViewableList vl)
set the ViewableList to be visualized by this Viewer |
| void | setViewable(Viewable v)
set the Viewable to be visualized by this Viewer |
| void | update(java.awt.Graphics g)
|
| Methods inherited from class java.awt.Canvas | |
| addNotify, paint | |
| Methods inherited from class java.awt.Component | |
| action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paint, paramString, postEvent, preferredSize, prepareImage, prepareImage, printAll, print, processComponentEvent, processEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate | |
| Methods inherited from class java.lang.Object | |
| clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait | |
| Field Detail |
protected View2D vu
protected ViewerDelegate delegate
| Constructor Detail |
public SimpleViewer()
public SimpleViewer(int w,
int h)
| Method Detail |
protected void setPreferredSize(int w,
int h)
public java.awt.Dimension getPreferredSize()
public java.awt.Dimension getDisplaySize()
public View2D getView()
public Slice getSlice()
public ViewableList getViewableList()
public void setViewableList(ViewableList vl)
public void setViewable(Viewable v)
public void display(Slice sl)
public void display(Slice sl,
ViewableList vl)
public void display(Slice sl,
Viewable v)
public void display(ViewStack view)
public void redisplay()
public void addNewViewListener(NewViewListener nvl)
public void removeNewViewListener(NewViewListener nvl)
public void displayViews(ViewStack views)
public void paint(java.awt.Graphics g)
public void update(java.awt.Graphics g)
public boolean imageUpdate(java.awt.Image im,
int flags,
int x,
int y,
int w,
int h)
public boolean handleAccessException(DataAccessException ex,
Viewable viewable,
Slice slice)
public boolean handleTransFuncException(BadTransferFunctionException ex,
Viewable viewable)
public java.awt.Component getDisplay()
public java.awt.Rectangle getViewBounds(int width,
int height)
public java.lang.Object getLock()
| Overview | Package | Class | Tree | Deprecated | Index | Help | |||
| PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||