|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.ScrollPane
|
+--javax.media.jai.widget.ScrollingImagePanel
An extension of java.awt.Panel that contains an ImageCanvas and vertical and horizontal scrollbars. The origin of the ImageCanvas is set according to the value of the scrollbars. Additionally, the origin may be changed by dragging the mouse. The window cursor will be changed to Cursor.MOVE_CURSOR for the duration of the drag.
Due to the limitations of BufferedImage, only TYPE_BYTE of band 1, 2, 3, 4, and TYPE_USHORT of band 1, 2, 3 images can be displayed using this widget.
| Inner classes inherited from class java.awt.ScrollPane |
ScrollPane.AccessibleAWTScrollPane |
| Inner classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Inner classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent |
| Field Summary | |
protected boolean |
beingDragged
Deprecated. True if we are in the middle of a mouse drag. |
protected Cursor |
defaultCursor
Deprecated. A place to save the cursor. |
protected ImageCanvas |
ic
Deprecated. The ImageCanvas we are controlling. |
protected RenderedImage |
im
Deprecated. The RenderedImage displayed by the ImageCanvas. |
protected Point |
moveSource
Deprecated. The initial Point of a mouse drag. |
protected int |
panelHeight
Deprecated. The height of the panel. |
protected int |
panelWidth
Deprecated. The width of the panel. |
protected Vector |
viewportListeners
Deprecated. Vector of ViewportListeners. |
| Fields inherited from class java.awt.ScrollPane |
SCROLLBARS_ALWAYS, SCROLLBARS_AS_NEEDED, SCROLLBARS_NEVER |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
ScrollingImagePanel(RenderedImage im,
int width,
int height)
Deprecated. Constructs a ScrollingImagePanel of a given size for a given RenderedImage. |
|
| Method Summary | |
void |
addViewportListener(ViewportListener l)
Deprecated. Adds the specified ViewportListener to the panel |
void |
adjustmentValueChanged(AdjustmentEvent e)
Deprecated. Called by the AWT when either scrollbar changes. |
void |
componentHidden(ComponentEvent e)
Deprecated. Ignored |
void |
componentMoved(ComponentEvent e)
Deprecated. Ignored |
void |
componentResized(ComponentEvent e)
Deprecated. Called when the ImagePanel is resized |
void |
componentShown(ComponentEvent e)
Deprecated. Ignored |
ImageCanvas |
getImageCanvas()
Deprecated. Returns the image canvas. |
Dimension |
getPreferredSize()
Deprecated. Called by the AWT when instantiating the component. |
int |
getXCenter()
Deprecated. Returns the X co-ordinate of the image center. |
int |
getXOrigin()
Deprecated. Returns the XOrigin of the image |
int |
getYCenter()
Deprecated. Returns the Y co-ordinate of the image center. |
int |
getYOrigin()
Deprecated. Returns the YOrigin of the image |
void |
mouseClicked(MouseEvent me)
Deprecated. Ignored. |
void |
mouseDragged(MouseEvent me)
Deprecated. Called by the AWT as the mouse is dragged. |
void |
mouseEntered(MouseEvent me)
Deprecated. Ignored. |
void |
mouseExited(MouseEvent me)
Deprecated. Called by the AWT when the mouse leaves the component. |
void |
mouseMoved(MouseEvent me)
Deprecated. Ignored. |
void |
mousePressed(MouseEvent me)
Deprecated. Called by the AWT when the mouse button is pressed. |
void |
mouseReleased(MouseEvent me)
Deprecated. Called by the AWT when the mouse button is released. |
void |
removeViewportListener(ViewportListener l)
Deprecated. Removes the specified ViewportListener |
void |
set(RenderedImage im)
Deprecated. Sets the panel to display the specified image |
void |
setBounds(int x,
int y,
int width,
int height)
Deprecated. Called by the AWT during instantiation and when events such as resize occur. |
void |
setCenter(int x,
int y)
Deprecated. Set the center of the image to the given coordinates of the scroll window. |
void |
setOrigin(int x,
int y)
Deprecated. Sets the image origin to a given (x, y) position. |
protected void |
updateDrag(Point moveTarget)
Deprecated. Called for each point of a mouse drag. |
| Methods inherited from class java.awt.ScrollPane |
addImpl, addNotify, doLayout, getAccessibleContext, getHAdjustable, getHScrollbarHeight, getScrollbarDisplayPolicy, getScrollPosition, getVAdjustable, getViewportSize, getVScrollbarWidth, layout, paramString, printComponents, setLayout, setScrollPosition, setScrollPosition |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, insets, invalidate, isAncestorOf, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, update, validate, validateTree |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected ImageCanvas ic
protected RenderedImage im
protected int panelWidth
protected int panelHeight
protected Vector viewportListeners
protected Point moveSource
protected boolean beingDragged
protected Cursor defaultCursor
| Constructor Detail |
public ScrollingImagePanel(RenderedImage im,
int width,
int height)
| Method Detail |
public void addViewportListener(ViewportListener l)
public void removeViewportListener(ViewportListener l)
public ImageCanvas getImageCanvas()
public int getXOrigin()
public int getYOrigin()
public void setOrigin(int x,
int y)
public void setCenter(int x,
int y)
public void set(RenderedImage im)
public int getXCenter()
public int getYCenter()
public Dimension getPreferredSize()
getPreferredSize in class Container
public void setBounds(int x,
int y,
int width,
int height)
setBounds in class Componentpublic void adjustmentValueChanged(AdjustmentEvent e)
adjustmentValueChanged in interface AdjustmentListenerpublic void componentResized(ComponentEvent e)
componentResized in interface ComponentListenerpublic void componentHidden(ComponentEvent e)
componentHidden in interface ComponentListenerpublic void componentMoved(ComponentEvent e)
componentMoved in interface ComponentListenerpublic void componentShown(ComponentEvent e)
componentShown in interface ComponentListenerprotected void updateDrag(Point moveTarget)
public void mousePressed(MouseEvent me)
mousePressed in interface MouseListenerpublic void mouseDragged(MouseEvent me)
mouseDragged in interface MouseMotionListenerpublic void mouseReleased(MouseEvent me)
mouseReleased in interface MouseListenerpublic void mouseExited(MouseEvent me)
mouseExited in interface MouseListenerpublic void mouseClicked(MouseEvent me)
mouseClicked in interface MouseListenerpublic void mouseMoved(MouseEvent me)
mouseMoved in interface MouseMotionListenerpublic void mouseEntered(MouseEvent me)
mouseEntered in interface MouseListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||