APIdia Launch Partner
Top Constructors Methods
com.sun.java.swing.plaf.gtk

pack-priv Class GTKGraphicsUtils

extends SynthGraphicsUtils
Class Inheritance
Imports
java.awt.Color, .Graphics, .Rectangle, javax.swing.AbstractButton, .JComponent, javax.swing.plaf.synth.Region, .SynthConstants, .SynthContext, .SynthGraphicsUtils, sun.swing.MnemonicHandler

Author
Joshua Outwater

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
paintText(SynthContext context, Graphics g, String text, int x, int y, int mnemonicIndex)

Overrides javax.swing.plaf.synth.SynthGraphicsUtils.paintText.

Paints text at the specified location.

public void
paintText(SynthContext
SynthContext
context
,
Graphics
Graphics used to render string in.
g
,
String
Text to render
text
,
Rectangle
Bounds of the text to be drawn.
bounds
,
int
Index to draw string at.
mnemonicIndex
)

Overrides javax.swing.plaf.synth.SynthGraphicsUtils.paintText.

Paints text at the specified location.

private static boolean
shouldShadowText(Region id, int state)

Inherited from javax.swing.plaf.synth.SynthGraphicsUtils:
computeStringWidthdrawLinedrawLinegetIconHeightgetIconWidthgetMaximumCharHeightgetMaximumSizegetMinimumSizegetPreferredSizelayoutTextpaintIconpaintText

Constructor Detail

GTKGraphicsUtilsback to summary
pack-priv GTKGraphicsUtils()

Method Detail

paintTextback to summary
public void paintText(SynthContext context, Graphics g, String text, int x, int y, int mnemonicIndex)

Overrides javax.swing.plaf.synth.SynthGraphicsUtils.paintText.

Doc from javax.swing.plaf.synth.SynthGraphicsUtils.paintText.

Paints text at the specified location. This will not attempt to render the text as html nor will it offset by the insets of the component.

Annotations
@Override
paintTextback to summary
public void paintText(SynthContext context, Graphics g, String text, Rectangle bounds, int mnemonicIndex)

Overrides javax.swing.plaf.synth.SynthGraphicsUtils.paintText.

Paints text at the specified location. This will not attempt to render the text as html nor will it offset by the insets of the component.

Parameters
context:SynthContext

SynthContext

g:Graphics

Graphics used to render string in.

text:String

Text to render

bounds:Rectangle

Bounds of the text to be drawn.

mnemonicIndex:int

Index to draw string at.

Annotations
@Override
shouldShadowTextback to summary
private static boolean shouldShadowText(Region id, int state)