ElegantJCharts Java API Specification v2.0

com.elegantj.graphx
Class TextAlign

java.lang.Object
  |
  +--com.elegantj.graphx.TextAlign
All Implemented Interfaces:
java.io.Serializable

public class TextAlign
extends java.lang.Object
implements java.io.Serializable

TextAlign class provides the alignment of text to be rendered

See Also:
Serialized Form

Field Summary
static int BASELINE
          Specifies the constant for baseline alignment
static int BOTTOM
          Specifies the constant for bottom alignment
static int CENTER
          Specifies the constant for center alignment
static int LEFT
          Specifies the constant for left alignment
static int RIGHT
          Specifies the constant for right alignment
static int TOP
          Specifies the constant for top alignment
 
Constructor Summary
TextAlign()
          Creates the TextAlign
 
Method Summary
 void drawString(GraphicsEx inGraphicsEx, java.lang.String inString, java.awt.Color inStrColor, boolean inBkVisible, java.awt.Color inBkColor, int inX, int inY)
          Draws the string with specified graphics at specified location
 java.awt.Polygon drawString(GraphicsEx inGraphicsEx, java.lang.String inString, java.awt.Color inStrColor, boolean inBkVisible, java.awt.Color inBkColor, int inX, int inY, int iangle, boolean isVertical)
          Draws the string with specified graphics at specified location
 void drawString(GraphicsEx inGraphicsEx, java.lang.String inString, int inX, int inY)
          Draws the string with specified graphics at specified location
 void setAlignType(int inAlignType)
          Sets the alignment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LEFT

public static final int LEFT
Specifies the constant for left alignment

See Also:
Constant Field Values

RIGHT

public static final int RIGHT
Specifies the constant for right alignment

See Also:
Constant Field Values

CENTER

public static final int CENTER
Specifies the constant for center alignment

See Also:
Constant Field Values

BASELINE

public static final int BASELINE
Specifies the constant for baseline alignment

See Also:
Constant Field Values

TOP

public static final int TOP
Specifies the constant for top alignment

See Also:
Constant Field Values

BOTTOM

public static final int BOTTOM
Specifies the constant for bottom alignment

See Also:
Constant Field Values
Constructor Detail

TextAlign

public TextAlign()
Creates the TextAlign

Method Detail

setAlignType

public void setAlignType(int inAlignType)
Sets the alignment

Parameters:
inAlignType - the type of the alignment

drawString

public void drawString(GraphicsEx inGraphicsEx,
                       java.lang.String inString,
                       int inX,
                       int inY)
Draws the string with specified graphics at specified location

Parameters:
inGraphicsEx - the Graphics is used to render the text
inString - the text to be rendered
inX - the x-coordinate of the text location
inY - the y-coordinate of the text location

drawString

public void drawString(GraphicsEx inGraphicsEx,
                       java.lang.String inString,
                       java.awt.Color inStrColor,
                       boolean inBkVisible,
                       java.awt.Color inBkColor,
                       int inX,
                       int inY)
Draws the string with specified graphics at specified location

Parameters:
inGraphicsEx - the Graphics is used to render the text
inString - the text to be rendered
inBkVisible - Background is visible/hide
inBkColor - Background color
inX - the x-coordinate of the text location
inY - the y-coordinate of the text location

drawString

public java.awt.Polygon drawString(GraphicsEx inGraphicsEx,
                                   java.lang.String inString,
                                   java.awt.Color inStrColor,
                                   boolean inBkVisible,
                                   java.awt.Color inBkColor,
                                   int inX,
                                   int inY,
                                   int iangle,
                                   boolean isVertical)
Draws the string with specified graphics at specified location

Parameters:
inGraphicsEx - the Graphics is used to render the text
inString - the text to be rendered
inBkVisible - Background is visible/hide
inBkColor - Background color
inX - the x-coordinate of the text location
inY - the y-coordinate of the text location
iangle - the alingment angle of text
Returns:
return bounded polygon of the text

ElegantJCharts Java API Specification v2.0

For any feedback, suggestion, or query, please revert back to support@elegantcharts.com

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjcharts.com
All Rights Reserved.