org.jhotdraw.gui.plaf.palette
Class PaletteUtilities
java.lang.Object
javax.swing.plaf.basic.BasicGraphicsUtils
org.jhotdraw.gui.plaf.palette.PaletteUtilities
public class PaletteUtilities
- extends javax.swing.plaf.basic.BasicGraphicsUtils
PaletteUtilities.
- Author:
- Werner Randelshofer
@version $Id: PaletteUtilities.java 527 2009-06-07 14:28:19Z rawcoder $
|
Method Summary |
static java.lang.Object |
beginGraphics(java.awt.Graphics2D graphics2d)
|
static void |
drawStringUnderlineCharAt(java.awt.Graphics g,
java.lang.String text,
int underlinedIndex,
int x,
int y)
Draw a string with the graphics g at location
(x, y)
just like g.drawString would. |
static void |
endGraphics(java.awt.Graphics2D graphics2d,
java.lang.Object oldHints)
|
| Methods inherited from class javax.swing.plaf.basic.BasicGraphicsUtils |
drawBezel, drawDashedRect, drawEtchedRect, drawGroove, drawLoweredBezel, drawString, getEtchedInsets, getGrooveInsets, getPreferredButtonSize |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PaletteUtilities
public PaletteUtilities()
beginGraphics
public static final java.lang.Object beginGraphics(java.awt.Graphics2D graphics2d)
endGraphics
public static final void endGraphics(java.awt.Graphics2D graphics2d,
java.lang.Object oldHints)
drawStringUnderlineCharAt
public static void drawStringUnderlineCharAt(java.awt.Graphics g,
java.lang.String text,
int underlinedIndex,
int x,
int y)
- Draw a string with the graphics
g at location
(x, y)
just like g.drawString would.
The character at index underlinedIndex
in text will be underlined. If index is beyond the
bounds of text (including < 0), nothing will be
underlined.
- Parameters:
g - Graphics to draw withtext - String to drawunderlinedIndex - Index of character in text to underlinex - x coordinate to draw aty - y coordinate to draw at- Since:
- 1.4