API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.plaf.synth. SynthGraphicsUtils View Source
Author(s)
Scott Violet
Since
1.5
Version
1.19, 11/30/05
Serial
Hierarchy
 Object
      SynthGraphicsUtils
Implements
Subclasses
Description
public class SynthGraphicsUtils
  Wrapper for primitive graphics calls.
See also:   
Constructors
public SynthGraphicsUtils ()
Creates a SynthGraphicsUtils.
Methods
Hide/Show inherited methods
public int computeStringWidth (SynthContext ss, Font font, FontMetrics metrics, String text)
  Returns the size of the passed in string.
public void drawLine (SynthContext context, Object paintKey, Graphics g, int x1, int y1, int x2, int y2)
  Draws a line between the two end points.
public void drawLine (SynthContext context, Object paintKey, Graphics g, int x1, int y1, int x2, int y2, Object styleKey)
  Draws a line between the two end points.
public int getMaximumCharHeight (SynthContext context)
  Returns the maximum height of the the Font from the passed in SynthContext.
public Dimension getMaximumSize (SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex)
  Returns the maximum size needed to properly render an icon and text.
public Dimension getMinimumSize (SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex)
  Returns the minimum size needed to properly render an icon and text.
public Dimension getPreferredSize (SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex)
  Returns the preferred size needed to properly render an icon and text.
public String layoutText (SynthContext ss, FontMetrics fm, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int iconTextGap)
  Lays out text and an icon returning, by reference, the location to place the icon and text.
public void paintText (SynthContext ss, Graphics g, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex, int textOffset)
  Paints an icon and text.
public void paintText (SynthContext ss, Graphics g, String text, int x, int y, int mnemonicIndex)
  Paints text at the specified location.
public void paintText (SynthContext ss, Graphics g, String text, Rectangle bounds, int mnemonicIndex)
  Paints text at the specified location.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar