org.ujmp.gui.util
Class GraphicsUtil

java.lang.Object
  extended by org.ujmp.gui.util.GraphicsUtil

public abstract class GraphicsUtil
extends Object


Field Summary
static int ALIGNBOTTOM
           
static int ALIGNCENTER
           
static int ALIGNLEFT
           
static int ALIGNRIGHT
           
static int ALIGNTOP
           
static Stroke DASHEDSTROKE
           
static float[] DASHPATTERN01
           
static float[] DASHPATTERN10
           
 
Constructor Summary
GraphicsUtil()
           
 
Method Summary
static void centerOnScreen(Window w)
           
static void drawString(Graphics2D g2d, double xPos, double yPos, int xAlign, int yAlign, String s)
           
static void drawString(Graphics2D g2d, double xPos, double yPos, int xAlign, String s)
           
static void drawString(Graphics2D g2d, double xPos, double yPos, String s)
           
static void drawString(Graphics2D g2d, int xPos, int yPos, String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALIGNCENTER

public static final int ALIGNCENTER
See Also:
Constant Field Values

ALIGNLEFT

public static final int ALIGNLEFT
See Also:
Constant Field Values

ALIGNRIGHT

public static final int ALIGNRIGHT
See Also:
Constant Field Values

ALIGNBOTTOM

public static final int ALIGNBOTTOM
See Also:
Constant Field Values

ALIGNTOP

public static final int ALIGNTOP
See Also:
Constant Field Values

DASHPATTERN10

public static final float[] DASHPATTERN10

DASHPATTERN01

public static final float[] DASHPATTERN01

DASHEDSTROKE

public static final Stroke DASHEDSTROKE
Constructor Detail

GraphicsUtil

public GraphicsUtil()
Method Detail

drawString

public static final void drawString(Graphics2D g2d,
                                    double xPos,
                                    double yPos,
                                    int xAlign,
                                    int yAlign,
                                    String s)

centerOnScreen

public static final void centerOnScreen(Window w)

drawString

public static final void drawString(Graphics2D g2d,
                                    double xPos,
                                    double yPos,
                                    int xAlign,
                                    String s)

drawString

public static final void drawString(Graphics2D g2d,
                                    double xPos,
                                    double yPos,
                                    String s)

drawString

public static final void drawString(Graphics2D g2d,
                                    int xPos,
                                    int yPos,
                                    String s)


Copyright © 2010. All Rights Reserved.