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

pack-priv final Class XScrollbarPeer

extends XComponentPeer
implements ScrollbarPeer, XScrollbarClient
Class Inheritance
All Implemented Interfaces
sun.awt.X11.XScrollbarClient, java.awt.peer.ScrollbarPeer, java.awt.peer.ComponentPeer
Imports
java.awt.*, java.awt.event.*, java.awt.peer.*, sun.awt.OSInfo, sun.util.logging.PlatformLogger

Field Summary

Modifier and TypeField and Description
private static final int
private static final int
private static final int
private static final PlatformLogger
pack-priv XScrollbar
Inherited from sun.awt.X11.XComponentPeer:
backgroundBACKGROUND_COLORbHasFocusboundsOperationdarkShadowfontforegroundFOREGROUND_COLORHIGHLIGHT_COLORisLayoutinglightShadowpaintPendingselectColorSHADOW_COLORsystemColors

Constructor Summary

AccessConstructor and Description
pack-priv
XScrollbarPeer(Scrollbar target)

Create a scrollbar.

Method Summary

Modifier and TypeMethod and Description
private int
getDefaultDimension()

Returns default size of scrollbar on the platform Currently uses hardcoded values

public Dimension
getMinimumSize()

Overrides sun.awt.X11.XComponentPeer.getMinimumSize.

Implements java.awt.peer.ComponentPeer.getMinimumSize.

Compute the minimum size for the scrollbar.

public void
public void
public void
layout()

Overrides sun.awt.X11.XComponentPeer.layout.

Implements java.awt.peer.ComponentPeer.layout.

Used by lightweight implementations to tell a ComponentPeer to layout its sub-elements.

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

Implements sun.awt.X11.XScrollbarClient.notifyValue.

The value has changed.

pack-priv void
paintPeer(final Graphics g)

Overrides sun.awt.X11.XWindow.paintPeer.

Paint the scrollbar.

public void
preInit(XCreateWindowParams params)

Overrides sun.awt.X11.XComponentPeer.preInit.

Called before window creation, descendants should override to initialize the data, initialize params.

public void
public void
setLineIncrement(int l)

Implements java.awt.peer.ScrollbarPeer.setLineIncrement.

Sets the line increment of the scrollbar.

public void
setPageIncrement(int p)

Implements java.awt.peer.ScrollbarPeer.setPageIncrement.

Sets the page increment of the scrollbar.

public void
setValue(int value)

public void
setValues(int value, int visible, int minimum, int maximum)

Implements java.awt.peer.ScrollbarPeer.setValues.

Sets the parameters for the scrollbar.

Inherited from sun.awt.X11.XComponentPeer:
addDropTargetapplyShapebeginLayoutbeginValidatecanDetermineObscuritycoalescePaintEventcreateBufferscreateImagecreateVolatileImagedestroyBuffersdraw3DOvaldraw3DOvaldraw3DRectdraw3DRectdrawMotif3DRectdrawScrollbarendLayoutendValidateflipfocusGainedfocusLostgetBackBuffergetBackBufferCapsgetFontgetFontMetricsgetGraphicsgetGUIcolorsgetInsetsgetParentTopLevelgetPeerBackgroundgetPeerFontgetPeerForegroundgetPeerSizegetPreferredSizegetRGBvalsgetSystemColorsgetWinBackgroundhandleEventhandleF10JavaKeyEventhandleJavaFocusEventhandleJavaInputMethodEventhandleJavaMouseWheelEventhandleJavaWindowFocusEventhandlesWheelScrollinghasFocushideisEnabledisEventDisabledisFocusableisInitialReshapeisObscuredisPaintPendingisReparentSupportednotifyTextComponentChangeoperationToStringpaintpostInitprintpSetCursorpSetCursorremoveDropTargetreparentrequestFocusreshapesetBackgroundsetBoundssetBoundsOperationsetEnabledsetFontsetForegroundsetVisiblesetZOrderupdateCursorImmediatelyupdateGraphicsDataupdateMotifColorswrapInSequenced

Field Detail

DEFAULT_LENGTHback to summary
private static final int DEFAULT_LENGTH
DEFAULT_WIDTH_LINUXback to summary
private static final int DEFAULT_WIDTH_LINUX
DEFAULT_WIDTH_SOLARISback to summary
private static final int DEFAULT_WIDTH_SOLARIS
logback to summary
private static final PlatformLogger log

Hides sun.awt.X11.XComponentPeer.log.

tsbback to summary
pack-priv XScrollbar tsb

Constructor Detail

XScrollbarPeerback to summary
pack-priv XScrollbarPeer(Scrollbar target)

Create a scrollbar.

Method Detail

getDefaultDimensionback to summary
private int getDefaultDimension()

Returns default size of scrollbar on the platform Currently uses hardcoded values

getMinimumSizeback to summary
public Dimension getMinimumSize()

Overrides sun.awt.X11.XComponentPeer.getMinimumSize.

Implements java.awt.peer.ComponentPeer.getMinimumSize.

Compute the minimum size for the scrollbar.

Annotations
@Override
handleJavaKeyEventback to summary
public void handleJavaKeyEvent(KeyEvent event)

Overrides sun.awt.X11.XComponentPeer.handleJavaKeyEvent.

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
layoutback to summary
public void layout()

Overrides sun.awt.X11.XComponentPeer.layout.

Implements java.awt.peer.ComponentPeer.layout.

Doc from java.awt.peer.ComponentPeer.layout.

Used by lightweight implementations to tell a ComponentPeer to layout its sub-elements. For instance, a lightweight Checkbox needs to layout the box, as well as the text label.

Annotations
@Override
notifyValueback to summary
public void notifyValue(XScrollbar obj, int type, int value, boolean isAdjusting)

Implements sun.awt.X11.XScrollbarClient.notifyValue.

The value has changed.

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

Overrides sun.awt.X11.XWindow.paintPeer.

Paint the scrollbar.

Annotations
@Override
preInitback to summary
public void preInit(XCreateWindowParams params)

Overrides sun.awt.X11.XComponentPeer.preInit.

Doc from sun.awt.X11.XBaseWindow.preInit.

Called before window creation, descendants should override to initialize the data, initialize params.

Annotations
@Override
@SuppressWarnings:deprecation
repaintScrollbarRequestback to summary
public void repaintScrollbarRequest(XScrollbar sb)

Implements sun.awt.X11.XScrollbarClient.repaintScrollbarRequest.

Annotations
@Override
setLineIncrementback to summary
public void setLineIncrement(int l)

Implements java.awt.peer.ScrollbarPeer.setLineIncrement.

Doc from java.awt.peer.ScrollbarPeer.setLineIncrement.

Sets the line increment of the scrollbar.

Annotations
@Override
setPageIncrementback to summary
public void setPageIncrement(int p)

Implements java.awt.peer.ScrollbarPeer.setPageIncrement.

Doc from java.awt.peer.ScrollbarPeer.setPageIncrement.

Sets the page increment of the scrollbar.

Annotations
@Override
setValueback to summary
public void setValue(int value)
setValuesback to summary
public void setValues(int value, int visible, int minimum, int maximum)

Implements java.awt.peer.ScrollbarPeer.setValues.

Doc from java.awt.peer.ScrollbarPeer.setValues.

Sets the parameters for the scrollbar.

Annotations
@Override