ProgramixGenericLib v5.0.1

com.programix.gui.text
Class TextDraw

java.lang.Object
  extended by com.programix.gui.text.TextDraw

public class TextDraw
extends Object


Constructor Summary
TextDraw()
           
TextDraw(Graphics2D g2, Font font)
           
TextDraw(Graphics2D g2, Font font, Paint paint)
           
 
Method Summary
 void drawFromLowerLeft(String text, double xLowerLeft, double yLowerLeft)
           
 void drawFromOnBaseline(String text, double xStartingPoint, double yBaseline)
           
 void drawFromUpperLeft(String text, double xUpperLeft, double yUpperLeft)
           
 void drawToLowerRight(String text, double xLowerRight, double yLowerRight)
           
 void drawToOnBaseline(String text, double xEndingPoint, double yBaseline)
           
 void drawToUpperRight(String text, double xUpperRight, double yUpperRight)
           
 void setFont(Font font)
           
 void setGraphics(Graphics2D g2)
           
 void setPaint(Paint newPaint)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextDraw

public TextDraw(Graphics2D g2,
                Font font,
                Paint paint)

TextDraw

public TextDraw(Graphics2D g2,
                Font font)

TextDraw

public TextDraw()
Method Detail

setFont

public void setFont(Font font)

setGraphics

public void setGraphics(Graphics2D g2)

setPaint

public void setPaint(Paint newPaint)

drawFromUpperLeft

public void drawFromUpperLeft(String text,
                              double xUpperLeft,
                              double yUpperLeft)

drawFromLowerLeft

public void drawFromLowerLeft(String text,
                              double xLowerLeft,
                              double yLowerLeft)

drawToUpperRight

public void drawToUpperRight(String text,
                             double xUpperRight,
                             double yUpperRight)

drawToLowerRight

public void drawToLowerRight(String text,
                             double xLowerRight,
                             double yLowerRight)

drawFromOnBaseline

public void drawFromOnBaseline(String text,
                               double xStartingPoint,
                               double yBaseline)

drawToOnBaseline

public void drawToOnBaseline(String text,
                             double xEndingPoint,
                             double yBaseline)

ProgramixGenericLib v5.0.1

Copyright © 2001-2009 Programix Incorporated. All rights reserved. ProgramixGenericLib is free and is OSI Certified Open Source Software under the BSD license.