Class GraphicsUtil
- java.lang.Object
-
- org.locationtech.jtstest.testbuilder.ui.GraphicsUtil
-
public class GraphicsUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description GraphicsUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
drawStringAlign(Graphics2D g2d, String s, int x, int y, float anchorx, float anchory)
static void
drawStringAlign(Graphics2D g2d, String s, int x, int y, float anchorx, float anchory, int offset)
static void
drawStringAlignCenter(Graphics2D g2d, String s, int x, int y)
-
-
-
Method Detail
-
drawStringAlignCenter
public static void drawStringAlignCenter(Graphics2D g2d, String s, int x, int y)
-
drawStringAlign
public static void drawStringAlign(Graphics2D g2d, String s, int x, int y, float anchorx, float anchory)
- Parameters:
g2d
-s
-x
-y
-anchorx
- value between 0 and 1 indicating anchor position along Xanchory
- value between 0 and 1 indicating anchor position along Y
-
drawStringAlign
public static void drawStringAlign(Graphics2D g2d, String s, int x, int y, float anchorx, float anchory, int offset)
- Parameters:
g2d
-s
-x
-y
-anchorx
- value between 0 and 1 indicating anchor position along Xanchory
- value between 0 and 1 indicating anchor position along Yoffset
- offset distance from anchor point
-
-