public class TextShape extends Shape
Title: TextShape class
Description: Base class for Chart shape elements with text
Copyright (c) 2005-2013 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
defaultText |
boolean |
drawText |
bBevel, bBorderRound, bBrush, bImageBevel, bTransparent, defaultVisible, pPen, shadow, shapeBounds, visiblechart, InternalUse| Constructor and Description |
|---|
TextShape() |
TextShape(IBaseChart c) |
| Modifier and Type | Method and Description |
|---|---|
void |
assign(TextShape s)
Assign all properties from a TextShape to another.
|
void |
drawRectRotated(IGraphics3D g,
Rectangle rect,
int angle,
int aZ)
Draws the Shape rectangle rotated by Angle degrees.
|
protected void |
drawString(Graphics3D g,
int x,
int y,
int t,
int tmpHeight,
java.lang.String[] s) |
protected void |
drawText(Graphics3D g,
Rectangle rect) |
boolean |
getAutoSize() |
ChartFont |
getFont()
Determines the font attributes used to output
ShapeSeries.Text Strings.
|
java.lang.String[] |
getLines()
Accesses the array of Text lines.
Use lines to add multiline text to TeeChart's text objects (TeeChart Header, TeeChart Axis Titles etc.). |
protected int |
getLinesLength() |
int |
getShadowSize()
Obsolete. Please use Shadow.Size.
|
TextShapeStyle |
getShapeStyle()
Shape may be rectagular or rounded rectangular in shape.
|
java.lang.String |
getText()
Displays customized strings inside Shapes.
|
TextFormat |
getTextFormat()
Determines if Text is drawn as Normal or HTML styles.
|
void |
paint()
Paints the TextShape object on the Chart Canvas.
|
void |
paint(Graphics3D g,
Rectangle rect) |
void |
paint(IGraphics3D g,
Rectangle rect)
Paints the TextShape object on the Chart Canvas.
|
protected java.lang.Object |
readResolve() |
void |
setAutoSize(boolean value) |
void |
setChart(IBaseChart c)
Chart associated with this object.
|
void |
setDrawText(boolean value) |
void |
setLines(java.lang.String[] value)
Accesses the array of Text lines.
Default value: null |
void |
setShadowSize(int value)
Obsolete. Please use Shadow.Size.
|
void |
setShapeStyle(TextShapeStyle value)
Shape may be rectagular or rounded rectangular in shape.
|
void |
setText(java.lang.String value)
Displays customized strings inside Shapes.
|
void |
setTextFormat(TextFormat value) |
assign, getBevel, getBevelInner, getBevelOuter, getBevelWidth, getBorderRound, getBottom, getBrush, getColor, getGradient, getHeight, getImage, getImageBevel, getImageMode, getImageTransparent, getLeft, getPen, getRight, getShadow, getShapeBounds, getTop, getTransparency, getTransparent, getVisible, getWidth, setBevel, setBevelInner, setBevelOuter, setBevelWidth, setBorderRound, setBottom, setBrush, setColor, setDefaultVisible, setHeight, setImage, setImageMode, setImageTransparent, setLeft, setPen, setRight, setShapeBounds, setTop, setTransparency, setTransparent, setVisible, setWidthgetChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringPropertypublic transient boolean drawText
protected transient java.lang.String defaultText
public TextShape()
public TextShape(IBaseChart c)
protected java.lang.Object readResolve()
public void setChart(IBaseChart c)
Shapepublic TextShapeStyle getShapeStyle()
public void setDrawText(boolean value)
value - public void setShapeStyle(TextShapeStyle value)
value - TextShapeStylepublic TextFormat getTextFormat()
public void setTextFormat(TextFormat value)
public int getShadowSize()
public void setShadowSize(int value)
value - intprotected int getLinesLength()
public java.lang.String getText()
public void setText(java.lang.String value)
value - Stringpublic java.lang.String[] getLines()
public void setLines(java.lang.String[] value)
value - String[]public ChartFont getFont()
public void assign(TextShape s)
s - TextShapepublic void paint()
public void paint(Graphics3D g, Rectangle rect)
protected void drawText(Graphics3D g, Rectangle rect)
protected void drawString(Graphics3D g, int x, int y, int t, int tmpHeight, java.lang.String[] s)
public void paint(IGraphics3D g, Rectangle rect)
public void drawRectRotated(IGraphics3D g, Rectangle rect, int angle, int aZ)
g - IGraphics3Drect - Rectangleangle - intaZ - intpublic boolean getAutoSize()
public void setAutoSize(boolean value)