public class DrawingUtilities
extends java.lang.Object
A class to provide various static methods for drawing.
| Constructor and Description |
|---|
DrawingUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addDiagonalCross(java.util.Vector shapes,
int x,
int y,
int crossSize,
int crossGap)
Draw a diagonal cross at a specified location with a gap around the center
|
static void |
addVerticalCross(java.util.Vector shapes,
int x,
int y,
int crossSize,
int crossGap)
Draw a vertical cross at a specified location with a gap around the center
|
static void |
drawShadowedShape(java.awt.Shape shape,
java.awt.Graphics2D g2d) |
static void |
drawShadowedString(java.lang.String string,
int x,
int y,
java.awt.Graphics2D g2d) |
public static void drawShadowedString(java.lang.String string,
int x,
int y,
java.awt.Graphics2D g2d)
string - the string to be drawnx - x positiony - y positiong2d - the drawing contextpublic static void drawShadowedShape(java.awt.Shape shape,
java.awt.Graphics2D g2d)
shape - the shape to be drawng2d - the drawing contextpublic static void addDiagonalCross(java.util.Vector shapes,
int x,
int y,
int crossSize,
int crossGap)
shapes - a vector of Shape to add tox - the x cross centery - the y cross centercrossSize - the length of one arm of the cross from end to centercrossGap - the gap in one arm of the cross from end to center (included in crossSize)public static void addVerticalCross(java.util.Vector shapes,
int x,
int y,
int crossSize,
int crossGap)
shapes - a vector of Shape to add tox - the x cross centery - the y cross centercrossSize - the length of one arm of the cross from end to centercrossGap - the gap in one arm of the cross from end to center (included in crossSize)