public interface ScrollPanePeer extends ContainerPeer
ScrollPane
.
The peer interfaces are intended only for use in porting
the AWT. They are not intended for use by application
developers, and developers should not implement peers
nor invoke any of the peer methods directly on the peer
instances.DEFAULT_OPERATION, NO_EMBEDDED_CHECK, RESET_OPERATION, SET_BOUNDS, SET_CLIENT_SIZE, SET_LOCATION, SET_SIZE
Modifier and Type | Method and Description |
---|---|
void |
childResized(int w,
int h)
Called when the child component changes its size.
|
int |
getHScrollbarHeight()
Returns the height of the horizontal scroll bar.
|
int |
getVScrollbarWidth()
Returns the width of the vertical scroll bar.
|
void |
setScrollPosition(int x,
int y)
Sets the scroll position of the child.
|
void |
setUnitIncrement(Adjustable adj,
int u)
Sets the unit increment of one of the scroll pane's adjustables.
|
void |
setValue(Adjustable adj,
int v)
Sets the value for one of the scroll pane's adjustables.
|
beginLayout, beginValidate, endLayout, endValidate, getInsets
applyShape, canDetermineObscurity, checkImage, coalescePaintEvent, createBuffers, createImage, createImage, createVolatileImage, destroyBuffers, dispose, flip, getBackBuffer, getColorModel, getFontMetrics, getGraphics, getGraphicsConfiguration, getLocationOnScreen, getMinimumSize, getPreferredSize, handleEvent, handlesWheelScrolling, isFocusable, isObscured, isReparentSupported, layout, paint, prepareImage, print, reparent, requestFocus, setBackground, setBounds, setEnabled, setFont, setForeground, setVisible, setZOrder, updateCursorImmediately, updateGraphicsData
int getHScrollbarHeight()
ScrollPane.getHScrollbarHeight()
int getVScrollbarWidth()
ScrollPane.getVScrollbarWidth()
void setScrollPosition(int x, int y)
x
- the X coordinate of the scroll positiony
- the Y coordinate of the scroll positionScrollPane.setScrollPosition(int, int)
void childResized(int w, int h)
w
- the new width of the child componenth
- the new height of the child componentScrollPane.layout()
void setUnitIncrement(Adjustable adj, int u)
adj
- the scroll pane adjustable objectu
- the unit incrementScrollPaneAdjustable.setUnitIncrement(int)
void setValue(Adjustable adj, int v)
adj
- the scroll pane adjustable objectv
- the value to setDracula Javadoc Sample, Made with Allan Im.