|
|||||||||
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 |
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,
setCursor,
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()
public void setBounds(int x, int y, int width, int height)
public void adjustmentValueChanged(AdjustmentEvent e)
public void componentResized(ComponentEvent e)
public void componentHidden(ComponentEvent e)
public void componentMoved(ComponentEvent e)
public void componentShown(ComponentEvent e)
protected void updateDrag(Point moveTarget)
public void mousePressed(MouseEvent me)
public void mouseDragged(MouseEvent me)
public void mouseReleased(MouseEvent me)
public void mouseExited(MouseEvent me)
public void mouseClicked(MouseEvent me)
public void mouseMoved(MouseEvent me)
public void mouseEntered(MouseEvent me)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |