public class PDFUtilities
extends javax.swing.plaf.basic.BasicGraphicsUtils
| Constructor and Description |
|---|
PDFUtilities() |
| Modifier and Type | Method and Description |
|---|---|
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) |
static java.lang.Object |
getUIOfType(javax.swing.plaf.ComponentUI ui,
java.lang.Class klass)
Returns the ui that is of type
klass, or null if
one can not be found. |
static boolean |
isFocused(java.awt.Component component)
Returns true, if the specified component is focus owner or permanent
focus owner and if the component is on an the active window.
|
static boolean |
isHeadless() |
static boolean |
isLeftToRight(java.awt.Component c) |
static boolean |
isOnActiveWindow(java.awt.Component c)
Returns true if the component is on a Dialog or a Frame, which is active,
or if it is on a Window, which is focused.
|
static boolean |
isSmallSizeVariant(javax.swing.JComponent c)
Returns true, if the component should use the small appearance.
|
static void |
repaintBorder(javax.swing.JComponent component) |
public static boolean isLeftToRight(java.awt.Component c)
public static final boolean isFocused(java.awt.Component component)
public static boolean isOnActiveWindow(java.awt.Component c)
public static boolean isSmallSizeVariant(javax.swing.JComponent c)
c - public static boolean isHeadless()
public static void repaintBorder(javax.swing.JComponent component)
public static final java.lang.Object beginGraphics(java.awt.Graphics2D graphics2d)
public static final void endGraphics(java.awt.Graphics2D graphics2d,
java.lang.Object oldHints)
public static java.lang.Object getUIOfType(javax.swing.plaf.ComponentUI ui,
java.lang.Class klass)
klass, or null if
one can not be found.public static void drawStringUnderlineCharAt(java.awt.Graphics g,
java.lang.String text,
int underlinedIndex,
int x,
int y)
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.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