APIdia Launch Partner
Top Inners Fields Constructors Methods
sun.awt.X11

pack-priv final Class XScrollPanePeer

extends XComponentPeer
implements ScrollPanePeer, XScrollbarClient
Class Inheritance
All Implemented Interfaces
sun.awt.X11.XScrollbarClient, java.awt.peer.ScrollPanePeer, java.awt.peer.ContainerPeer, java.awt.peer.ComponentPeer
Imports
java.awt.*, java.awt.event.*, java.awt.peer.*, java.lang.reflect.*, sun.awt.AWTAccessor

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv XWindow
pack-priv int
public static final int
pack-priv XHorizontalScrollbar
pack-priv int
pack-priv int
public static final int
public static final int
public static final int
public static final int
public static final int
pack-priv int
pack-priv XVerticalScrollbar
pack-priv int
pack-priv int
Inherited from sun.awt.X11.XComponentPeer:
backgroundBACKGROUND_COLORbHasFocusboundsOperationdarkShadowfontforegroundFOREGROUND_COLORHIGHLIGHT_COLORisLayoutinglightShadowpaintPendingselectColorSHADOW_COLORsystemColors

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
childResized(int w, int h)

Implements java.awt.peer.ScrollPanePeer.childResized.

Called when the child component changes its size.

pack-priv Dimension
public long
public int
getHScrollbarHeight()

Implements java.awt.peer.ScrollPanePeer.getHScrollbarHeight.

Returns the height of the horizontal scroll bar.

public Insets
getInsets()

Overrides sun.awt.X11.XComponentPeer.getInsets.

Implements java.awt.peer.ContainerPeer.getInsets.

Returns the insets of this container.

private Component
public int
getVScrollbarWidth()

Implements java.awt.peer.ScrollPanePeer.getVScrollbarWidth.

Returns the width of the vertical scroll bar.

public void
handleEvent(AWTEvent e)

Overrides sun.awt.X11.XComponentPeer.handleEvent.

Implements java.awt.peer.ComponentPeer.handleEvent.

Called to let the component peer handle events.

public void
pack-priv boolean
inHorizontalScrollbar(int x, int y)

return true if the x and y position is in the horizontal scrollbar

pack-priv boolean
inVerticalScrollbar(int x, int y)

return true if the x and y position is in the verticalscrollbar

public void
notifyValue(XScrollbar obj, int type, int v, boolean isAdjusting)

Implements sun.awt.X11.XScrollbarClient.notifyValue.

return value from the scrollbar

pack-priv void
paintHorScrollbar(Graphics
the graphics context to draw into
g
,
Color[]
the colors used to draw the scrollbar
colors
,
boolean
paint the whole scrollbar if true, just the thumb if false
paintAll
)

Paint the horizontal scrollbar to the screen

pack-priv void
private void
pack-priv void
paintVerScrollbar(Graphics
the graphics context to draw into
g
,
Color[]
the colors used to draw the scrollbar
colors
,
boolean
paint the whole scrollbar if true, just the thumb if false
paintAll
)

Paint the vertical scrollbar to the screen

public void
pack-priv void
pack-priv void
scroll(int x, int y, int flag)

pack-priv void
scroll(int x, int y, int flag, int type)

Scroll the contents to position x, y

private void
setAdjustableValue(final ScrollPaneAdjustable adj, final int value, final int type)

public void
setBounds(int x, int y, int w, int h, int op)

Overrides sun.awt.X11.XComponentPeer.setBounds.

Implements java.awt.peer.ComponentPeer.setBounds.

Sets the location or size or both of the component.

pack-priv boolean
public void
setScrollPosition(int x, int y)

Implements java.awt.peer.ScrollPanePeer.setScrollPosition.

Sets the scroll position of the child.

public void
setUnitIncrement(Adjustable adj, int u)

Implements java.awt.peer.ScrollPanePeer.setUnitIncrement.

Sets the unit increment of one of the scroll pane's adjustables.

public void
setValue(Adjustable adj, int v)

Implements java.awt.peer.ScrollPanePeer.setValue.

Sets the value for one of the scroll pane's adjustables.

pack-priv void
Inherited from sun.awt.X11.XComponentPeer:
addDropTargetapplyShapebeginLayoutbeginValidatecanDetermineObscuritycoalescePaintEventcreateBufferscreateImagecreateVolatileImagedestroyBuffersdraw3DOvaldraw3DOvaldraw3DRectdraw3DRectdrawMotif3DRectdrawScrollbarendLayoutendValidateflipfocusGainedfocusLostgetBackBuffergetBackBufferCapsgetFontgetFontMetricsgetGraphicsgetGUIcolorsgetMinimumSizegetParentTopLevelgetPeerBackgroundgetPeerFontgetPeerForegroundgetPeerSizegetPreferredSizegetRGBvalsgetSystemColorsgetWinBackgroundhandleF10JavaKeyEventhandleJavaFocusEventhandleJavaInputMethodEventhandleJavaKeyEventhandleJavaMouseWheelEventhandleJavaWindowFocusEventhandlesWheelScrollinghasFocushideisEnabledisEventDisabledisFocusableisInitialReshapeisObscuredisPaintPendingisReparentSupportedlayoutnotifyTextComponentChangeoperationToStringpaintpostInitpreInitpSetCursorpSetCursorremoveDropTargetreparentrequestFocusreshapesetBackgroundsetBoundsOperationsetEnabledsetFontsetForegroundsetVisiblesetZOrderupdateCursorImmediatelyupdateGraphicsDataupdateMotifColorswrapInSequenced

Field Detail

activeback to summary
pack-priv int active
clipback to summary
pack-priv XWindow clip
hmaxback to summary
pack-priv int hmax
HORIZONTALback to summary
public static final int HORIZONTAL
hsbback to summary
pack-priv XHorizontalScrollbar hsb
hsbSpaceback to summary
pack-priv int hsbSpace
hvalback to summary
pack-priv int hval
MARGINback to summary
public static final int MARGIN
SCROLLBARback to summary
public static final int SCROLLBAR
SCROLLBAR_INSETback to summary
public static final int SCROLLBAR_INSET
SPACEback to summary
public static final int SPACE
VERTICALback to summary
public static final int VERTICAL
vmaxback to summary
pack-priv int vmax
vsbback to summary
pack-priv XVerticalScrollbar vsb
vsbSpaceback to summary
pack-priv int vsbSpace
vvalback to summary
pack-priv int vval

Constructor Detail

XScrollPanePeerback to summary
pack-priv XScrollPanePeer(ScrollPane target)

Method Detail

childResizedback to summary
public void childResized(int w, int h)

Implements java.awt.peer.ScrollPanePeer.childResized.

Doc from java.awt.peer.ScrollPanePeer.childResized.

Called when the child component changes its size.

Annotations
@Override
getChildSizeback to summary
pack-priv Dimension getChildSize()
Annotations
@SuppressWarnings:deprecation
getContentWindowback to summary
public long getContentWindow()

Overrides sun.awt.X11.XBaseWindow.getContentWindow.

Implements sun.awt.X11ComponentPeer.getContentWindow.

Annotations
@Override
getHScrollbarHeightback to summary
public int getHScrollbarHeight()

Implements java.awt.peer.ScrollPanePeer.getHScrollbarHeight.

Doc from java.awt.peer.ScrollPanePeer.getHScrollbarHeight.

Returns the height of the horizontal scroll bar.

Annotations
@Override
getInsetsback to summary
public Insets getInsets()

Overrides sun.awt.X11.XComponentPeer.getInsets.

Implements java.awt.peer.ContainerPeer.getInsets.

Doc from java.awt.peer.ContainerPeer.getInsets.

Returns the insets of this container. Insets usually is the space that is occupied by things like borders.

Annotations
@Override
getScrollChildback to summary
private Component getScrollChild()
getVScrollbarWidthback to summary
public int getVScrollbarWidth()

Implements java.awt.peer.ScrollPanePeer.getVScrollbarWidth.

Doc from java.awt.peer.ScrollPanePeer.getVScrollbarWidth.

Returns the width of the vertical scroll bar.

Annotations
@Override
handleEventback to summary
public void handleEvent(AWTEvent e)

Overrides sun.awt.X11.XComponentPeer.handleEvent.

Implements java.awt.peer.ComponentPeer.handleEvent.

Doc from java.awt.peer.ComponentPeer.handleEvent.

Called to let the component peer handle events.

Annotations
@Override
handleJavaMouseEventback to summary
public void handleJavaMouseEvent(MouseEvent mouseEvent)

Overrides sun.awt.X11.XComponentPeer.handleJavaMouseEvent.

Annotations
@Override
@SuppressWarnings:deprecation
See Also
MouseEvent.MOUSE_CLICKED MouseEvent.MOUSE_PRESSED MouseEvent.MOUSE_RELEASED MouseEvent.MOUSE_MOVED MouseEvent.MOUSE_ENTERED MouseEvent.MOUSE_EXITED MouseEvent.MOUSE_DRAGGED
inHorizontalScrollbarback to summary
pack-priv boolean inHorizontalScrollbar(int x, int y)

return true if the x and y position is in the horizontal scrollbar

inVerticalScrollbarback to summary
pack-priv boolean inVerticalScrollbar(int x, int y)

return true if the x and y position is in the verticalscrollbar

notifyValueback to summary
public void notifyValue(XScrollbar obj, int type, int v, boolean isAdjusting)

Implements sun.awt.X11.XScrollbarClient.notifyValue.

return value from the scrollbar

Annotations
@Override
paintHorScrollbarback to summary
pack-priv void paintHorScrollbar(Graphics g, Color[] colors, boolean paintAll)

Paint the horizontal scrollbar to the screen

Parameters
g:Graphics

the graphics context to draw into

colors:Color[]

the colors used to draw the scrollbar

paintAll:boolean

paint the whole scrollbar if true, just the thumb if false

paintPeerback to summary
pack-priv void paintPeer(final Graphics g)

Overrides sun.awt.X11.XWindow.paintPeer.

Annotations
@Override
paintScrollBarsback to summary
private void paintScrollBars(Graphics g, Color[] colors)
paintVerScrollbarback to summary
pack-priv void paintVerScrollbar(Graphics g, Color[] colors, boolean paintAll)

Paint the vertical scrollbar to the screen

Parameters
g:Graphics

the graphics context to draw into

colors:Color[]

the colors used to draw the scrollbar

paintAll:boolean

paint the whole scrollbar if true, just the thumb if false

repaintScrollbarRequestback to summary
public void repaintScrollbarRequest(XScrollbar sb)

Implements sun.awt.X11.XScrollbarClient.repaintScrollbarRequest.

Annotations
@Override
repaintScrollBarsback to summary
pack-priv void repaintScrollBars()
scrollback to summary
pack-priv void scroll(int x, int y, int flag)
scrollback to summary
pack-priv void scroll(int x, int y, int flag, int type)

Scroll the contents to position x, y

Annotations
@SuppressWarnings:deprecation
setAdjustableValueback to summary
private void setAdjustableValue(final ScrollPaneAdjustable adj, final int value, final int type)
setBoundsback to summary
public void setBounds(int x, int y, int w, int h, int op)

Overrides sun.awt.X11.XComponentPeer.setBounds.

Implements java.awt.peer.ComponentPeer.setBounds.

Doc from java.awt.peer.ComponentPeer.setBounds.

Sets the location or size or both of the component. The location is specified relative to the component's parent. The op parameter specifies which properties change. If it is SET_LOCATION, then only the location changes (and the size parameters can be ignored). If op is SET_SIZE, then only the size changes (and the location can be ignored). If op is SET_BOUNDS, then both change. There is a special value SET_CLIENT_SIZE, which is used only for window-like components to set the size of the client (i.e. the 'inner' size, without the insets of the window borders).

Annotations
@Override
setScrollbarSpaceback to summary
pack-priv boolean setScrollbarSpace()
Annotations
@SuppressWarnings:deprecation
setScrollPositionback to summary
public void setScrollPosition(int x, int y)

Implements java.awt.peer.ScrollPanePeer.setScrollPosition.

Doc from java.awt.peer.ScrollPanePeer.setScrollPosition.

Sets the scroll position of the child.

Annotations
@Override
setUnitIncrementback to summary
public void setUnitIncrement(Adjustable adj, int u)

Implements java.awt.peer.ScrollPanePeer.setUnitIncrement.

Doc from java.awt.peer.ScrollPanePeer.setUnitIncrement.

Sets the unit increment of one of the scroll pane's adjustables.

Annotations
@Override
setValueback to summary
public void setValue(Adjustable adj, int v)

Implements java.awt.peer.ScrollPanePeer.setValue.

Doc from java.awt.peer.ScrollPanePeer.setValue.

Sets the value for one of the scroll pane's adjustables.

Annotations
@Override
setViewportSizeback to summary
pack-priv void setViewportSize()
sun.awt.X11 back to summary

pack-priv final Class XScrollPanePeer.XScrollPaneContentWindow

extends XWindow
Class Inheritance

Field Summary

Inherited from sun.awt.X11.XWindow:
backgroundColorclickCountgraphicsConfiggraphicsConfigDatalastButtonlastTimelastWindowReflastXlastYmwm_hintsoldHeightoldWidthpaintAreaparentREPARENTEDsurfaceDatatargetTARGETwinAttrwm_delete_windowwm_protocolswm_take_focus

Constructor Summary

AccessConstructor and Description
pack-priv
XScrollPaneContentWindow(ScrollPane target, long parentWindow)

Method Summary

Modifier and TypeMethod and Description
public String
Inherited from sun.awt.X11.XWindow:
disposedoEraseBackgrounddoLayoutdoValidateSurfaceenterNotifyflushgetAWTKeyCodeForKeySymgetColorModelgetColorModelgetDefaultFontgetEventSourcegetFontMetricsgetGraphicsgetGraphicsgetGraphicsConfigurationgetGraphicsConfigurationDatagetKeySymForAWTKeyCodegetLocationOnScreengetModifiersgetMouseMovementSmudgegetMWMHintsgetParentWindowIDgetParentXWindowObjectgetScalegetSurfaceDatagetTargetgetTargetBoundsgetWheelModifiersgetWinBackgroundgetWMClassgetWMProtocolsgetWMStategetXModifiershandleButtonPressReleasehandleConfigureNotifyEventhandleExposeEventhandleKeyPresshandleKeyPresshandleKeyReleasehandleMapNotifyEventhandleMotionNotifyhandlePropertyNotifyhandleUnmapNotifyEventhandleXCrossingEventinitGraphicsConfigurationinitWMProtocolsisEmbeddedisFullScreenExclusiveModeisLocationByPlatformisMouseAboveisParentOfisReparentedisResizableisShowingisWheelkeyEventType2IdkeysymToUnicodelayoutleaveNotifylogIncomingKeyEventpaintpaintPeerpopuppostEventpostEventStaticpostEventToEventQueuepostInitpostKeyEventpostPaintEventpreInitprePostEventrepaintrepaintreshapereshapescaleDownscaleUpsendEventsetBackgroundsetBDatasetFullScreenExclusiveModeStatesetMouseAbovesetMWMHintssetReparentedstateChangedupdateSizeHintsupdateSizeHintsupdateSizeHintsvalidateSurfacewinBackgroundxSetBackground

Constructor Detail

XScrollPaneContentWindowback to summary
pack-priv XScrollPaneContentWindow(ScrollPane target, long parentWindow)

Method Detail

getWMNameback to summary
public String getWMName()

Overrides sun.awt.X11.XBaseWindow.getWMName.

Annotations
@Override