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

pack-priv final Class XCheckboxPeer

extends XComponentPeer
implements CheckboxPeer
Class Inheritance
All Implemented Interfaces
java.awt.peer.CheckboxPeer, java.awt.peer.ComponentPeer
Imports
java.awt.*, java.awt.peer.*, java.awt.event.*, java.awt.image.BufferedImage, javax.swing.plaf.basic.BasicGraphicsUtils, java.awt.geom.AffineTransform, java.util.Objects, sun.util.logging.PlatformLogger

Field Summary

Modifier and TypeField and Description
private boolean
private static final Insets
private int
private int
pack-priv CheckboxGroup
private static final int
private int
private Color
private static final Insets
private Rectangle
pack-priv String
private static final PlatformLogger
private static final Polygon
private static final double
private Shape
private boolean
private boolean
private Rectangle
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
pack-priv void
action(boolean state)

public void
focusGained(FocusEvent e)

Overrides sun.awt.X11.XComponentPeer.focusGained.

Called when component receives focus

public void
focusLost(FocusEvent e)

Overrides sun.awt.X11.XComponentPeer.focusLost.

Called when component loses focus

private int
public Dimension
getMinimumSize()

Overrides sun.awt.X11.XComponentPeer.getMinimumSize.

Implements java.awt.peer.ComponentPeer.getMinimumSize.

Determines the minimum size of the component.

pack-priv void
pack-priv void
public boolean
isFocusable()

Overrides sun.awt.X11.XComponentPeer.isFocusable.

Implements java.awt.peer.ComponentPeer.isFocusable.

Returns true when the component takes part in the focus traversal, false otherwise.

public void
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
public void
public void
public void
public void
pack-priv void
notifyStateChanged(boolean state)

public void
paintCheckbox(Graphics g, int x, int y, int w, int h)

protected void
paintFocus(Graphics g, int x, int y, int w, int h)

pack-priv void
public void
paintRadioButton(Graphics g, int x, int y, int w, int h)

protected void
paintText(Graphics g, Rectangle textRect, String text)

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
setBackground(Color c)

Overrides sun.awt.X11.XComponentPeer.setBackground.

Implements java.awt.peer.ComponentPeer.setBackground.

Sets the background color of this component.

public void
setCheckboxGroup(final CheckboxGroup g)

Implements java.awt.peer.CheckboxPeer.setCheckboxGroup.

Sets the checkbox group for this checkbox.

public void
setLabel(String label)

Implements java.awt.peer.CheckboxPeer.setLabel.

Sets the label that should be displayed on the checkbox.

public void
setState(boolean state)

Implements java.awt.peer.CheckboxPeer.setState.

Sets the state of the checkbox to be checked true or unchecked false.

Inherited from sun.awt.X11.XComponentPeer:
addDropTargetapplyShapebeginLayoutbeginValidatecanDetermineObscuritycoalescePaintEventcreateBufferscreateImagecreateVolatileImagedestroyBuffersdraw3DOvaldraw3DOvaldraw3DRectdraw3DRectdrawMotif3DRectdrawScrollbarendLayoutendValidateflipgetBackBuffergetBackBufferCapsgetFontgetFontMetricsgetGraphicsgetGUIcolorsgetInsetsgetParentTopLevelgetPeerBackgroundgetPeerFontgetPeerForegroundgetPeerSizegetPreferredSizegetRGBvalsgetSystemColorsgetWinBackgroundhandleEventhandleF10JavaKeyEventhandleJavaFocusEventhandleJavaInputMethodEventhandleJavaMouseWheelEventhandleJavaWindowFocusEventhandlesWheelScrollinghasFocushideisEnabledisEventDisabledisInitialReshapeisObscuredisPaintPendingisReparentSupportednotifyTextComponentChangeoperationToStringpaintpostInitprintpSetCursorpSetCursorremoveDropTargetreparentrequestFocusreshapesetBoundssetBoundsOperationsetEnabledsetFontsetForegroundsetVisiblesetZOrderupdateCursorImmediatelyupdateGraphicsDataupdateMotifColorswrapInSequenced

Field Detail

armedback to summary
private boolean armed
borderInsetsback to summary
private static final Insets borderInsets
cbXback to summary
private int cbX
cbYback to summary
private int cbY
checkBoxGroupback to summary
pack-priv CheckboxGroup checkBoxGroup
checkBoxInsetFromTextback to summary
private static final int checkBoxInsetFromText
checkBoxSizeback to summary
private int checkBoxSize
focusColorback to summary
private Color focusColor
focusInsetsback to summary
private static final Insets focusInsets
focusRectback to summary
private Rectangle focusRect
labelback to summary
pack-priv String label
logback to summary
private static final PlatformLogger log

Hides sun.awt.X11.XComponentPeer.log.

MASTER_CHECKMARKback to summary
private static final Polygon MASTER_CHECKMARK
MASTER_SIZEback to summary
private static final double MASTER_SIZE
myCheckMarkback to summary
private Shape myCheckMark
pressedback to summary
private boolean pressed
selectedback to summary
private boolean selected
textRectback to summary
private Rectangle textRect

Constructor Detail

XCheckboxPeerback to summary
pack-priv XCheckboxPeer(Checkbox target)

Method Detail

actionback to summary
pack-priv void action(boolean state)
focusGainedback to summary
public void focusGained(FocusEvent e)

Overrides sun.awt.X11.XComponentPeer.focusGained.

Doc from sun.awt.X11.XComponentPeer.focusGained.

Called when component receives focus

Annotations
@Override
focusLostback to summary
public void focusLost(FocusEvent e)

Overrides sun.awt.X11.XComponentPeer.focusLost.

Doc from sun.awt.X11.XComponentPeer.focusLost.

Called when component loses focus

Annotations
@Override
getCheckboxSizeback to summary
private int getCheckboxSize(FontMetrics fm)
getMinimumSizeback to summary
public Dimension getMinimumSize()

Overrides sun.awt.X11.XComponentPeer.getMinimumSize.

Implements java.awt.peer.ComponentPeer.getMinimumSize.

Doc from java.awt.peer.ComponentPeer.getMinimumSize.

Determines the minimum size of the component.

Annotations
@Override
handleJavaKeyEventback to summary
pack-priv void handleJavaKeyEvent(KeyEvent e)

Overrides sun.awt.X11.XComponentPeer.handleJavaKeyEvent.

Annotations
@Override
handleJavaMouseEventback to summary
pack-priv void handleJavaMouseEvent(MouseEvent e)

Overrides sun.awt.X11.XComponentPeer.handleJavaMouseEvent.

Annotations
@Override
isFocusableback to summary
public boolean isFocusable()

Overrides sun.awt.X11.XComponentPeer.isFocusable.

Implements java.awt.peer.ComponentPeer.isFocusable.

Doc from java.awt.peer.ComponentPeer.isFocusable.

Returns true when the component takes part in the focus traversal, false otherwise.

Annotations
@Override
keyPressedback to summary
public void keyPressed(KeyEvent e)
keyReleasedback to summary
public void keyReleased(KeyEvent e)
keyTypedback to summary
public void keyTyped(KeyEvent e)
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
mouseClickedback to summary
public void mouseClicked(MouseEvent e)
mouseEnteredback to summary
public void mouseEntered(MouseEvent e)
mouseExitedback to summary
public void mouseExited(MouseEvent e)
mousePressedback to summary
public void mousePressed(MouseEvent e)
mouseReleasedback to summary
public void mouseReleased(MouseEvent e)
notifyStateChangedback to summary
pack-priv void notifyStateChanged(boolean state)
paintCheckboxback to summary
public void paintCheckbox(Graphics g, int x, int y, int w, int h)
paintFocusback to summary
protected void paintFocus(Graphics g, int x, int y, int w, int h)
paintPeerback to summary
pack-priv void paintPeer(final Graphics g)

Overrides sun.awt.X11.XWindow.paintPeer.

Annotations
@Override
paintRadioButtonback to summary
public void paintRadioButton(Graphics g, int x, int y, int w, int h)
paintTextback to summary
protected void paintText(Graphics g, Rectangle textRect, String text)
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
setBackgroundback to summary
public void setBackground(Color c)

Overrides sun.awt.X11.XComponentPeer.setBackground.

Implements java.awt.peer.ComponentPeer.setBackground.

Doc from java.awt.peer.ComponentPeer.setBackground.

Sets the background color of this component.

Annotations
@Override
setCheckboxGroupback to summary
public void setCheckboxGroup(final CheckboxGroup g)

Implements java.awt.peer.CheckboxPeer.setCheckboxGroup.

Doc from java.awt.peer.CheckboxPeer.setCheckboxGroup.

Sets the checkbox group for this checkbox. Checkboxes in one checkbox group can only be selected exclusively (like radio buttons). A value of null removes this checkbox from any checkbox group.

Annotations
@Override
setLabelback to summary
public void setLabel(String label)

Implements java.awt.peer.CheckboxPeer.setLabel.

Doc from java.awt.peer.CheckboxPeer.setLabel.

Sets the label that should be displayed on the checkbox. A value of null means that no label should be displayed.

Annotations
@Override
setStateback to summary
public void setState(boolean state)

Implements java.awt.peer.CheckboxPeer.setState.

Doc from java.awt.peer.CheckboxPeer.setState.

Sets the state of the checkbox to be checked true or unchecked false.

Annotations
@Override