Package com.pixelmed.display
Class DrawingUtilities
java.lang.Object
com.pixelmed.display.DrawingUtilities
A class to provide various static methods for drawing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addDiagonalCross
(Vector shapes, int x, int y, int crossSize, int crossGap) Draw a diagonal cross at a specified location with a gap around the centerstatic void
addVerticalCross
(Vector shapes, int x, int y, int crossSize, int crossGap) Draw a vertical cross at a specified location with a gap around the centerstatic void
drawShadowedShape
(Shape shape, Graphics2D g2d) static void
drawShadowedString
(String string, int x, int y, Graphics2D g2d)
-
Constructor Details
-
DrawingUtilities
public DrawingUtilities()
-
-
Method Details
-
drawShadowedString
- Parameters:
string
- the string to be drawnx
- x positiony
- y positiong2d
- the drawing context
-
drawShadowedShape
- Parameters:
shape
- the shape to be drawng2d
- the drawing context
-
addDiagonalCross
Draw a diagonal cross at a specified location with a gap around the center- Parameters:
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)
-
addVerticalCross
Draw a vertical cross at a specified location with a gap around the center- Parameters:
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)
-