ElegantJCharts Java API Specification v2.0

com.elegantj.graphx
Class DrawText

java.lang.Object
  |
  +--com.elegantj.graphx.DrawText

public class DrawText
extends java.lang.Object

DrawText class is used to draw the text with specified graphics and text type within specified boundary


Field Summary
static int BOTTOM
          Specifies the constant for bottom alignment
static int CALCRECT
          Specifies the constant for multiline text
static int CENTER
          Specifies the constant for horizontally center alignment
static int LEFT
          Specifies the constant for left alignment
static int RIGHT
          Specifies the constant for right alignment
static int SINGLELINE
          Specifies the constant for wrapping text
static int TOP
          Specifies the constant for top alignment
static int VCENTER
          Specifies the constant for vertically center alignment
static int WORDBREAK
          Specifies the constant for word break wrapping
 
Constructor Summary
DrawText()
           
 
Method Summary
static java.awt.Dimension drawText(java.awt.Graphics g, java.lang.String text, int x, int y, int width, int height, int type)
          This method draws the text with specified graphics and text type within specified boundary
 
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

CENTER

public static final int CENTER
Specifies the constant for horizontally center alignment

See Also:
Constant Field Values

RIGHT

public static final int RIGHT
Specifies the constant for right alignment

See Also:
Constant Field Values

TOP

public static final int TOP
Specifies the constant for top alignment

See Also:
Constant Field Values

VCENTER

public static final int VCENTER
Specifies the constant for vertically center alignment

See Also:
Constant Field Values

BOTTOM

public static final int BOTTOM
Specifies the constant for bottom alignment

See Also:
Constant Field Values

CALCRECT

public static final int CALCRECT
Specifies the constant for multiline text

See Also:
Constant Field Values

SINGLELINE

public static final int SINGLELINE
Specifies the constant for wrapping text

See Also:
Constant Field Values

WORDBREAK

public static final int WORDBREAK
Specifies the constant for word break wrapping

See Also:
Constant Field Values
Constructor Detail

DrawText

public DrawText()
Method Detail

drawText

public static java.awt.Dimension drawText(java.awt.Graphics g,
                                          java.lang.String text,
                                          int x,
                                          int y,
                                          int width,
                                          int height,
                                          int type)
This method draws the text with specified graphics and text type within specified boundary


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.