|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.steema.teechart.TeeBase
com.steema.teechart.Shape
com.steema.teechart.TextShape
public class TextShape
Title: TextShape class
Description: Base class for Chart shape elements with text
Copyright (c) 2005-2012 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Field Summary | |
---|---|
protected java.lang.String |
defaultText
|
boolean |
drawText
|
Fields inherited from class com.steema.teechart.Shape |
---|
bBevel, bBorderRound, bBrush, bImageBevel, bTransparent, defaultVisible, pPen, shadow, shapeBounds, visible |
Fields inherited from class com.steema.teechart.TeeBase |
---|
chart, InternalUse |
Constructor Summary | |
---|---|
TextShape()
|
|
TextShape(IBaseChart c)
|
Method Summary | |
---|---|
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. |
java.lang.String[] |
getLines()
Accesses the array of Text lines. |
protected int |
getLinesLength()
|
int |
getShadowSize()
Obsolete. |
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. |
void |
setShadowSize(int value)
Obsolete. |
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)
|
Methods inherited from class com.steema.teechart.Shape |
---|
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, setWidth |
Methods inherited from class com.steema.teechart.TeeBase |
---|
getChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public transient boolean drawText
protected transient java.lang.String defaultText
Constructor Detail |
---|
public TextShape()
public TextShape(IBaseChart c)
Method Detail |
---|
protected java.lang.Object readResolve()
public void setChart(IBaseChart c)
Shape
setChart
in class Shape
c
- IBaseChartpublic 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)
paint
in class Shape
g
- IGraphics3Drect
- Rectanglepublic void drawRectRotated(IGraphics3D g, Rectangle rect, int angle, int aZ)
g
- IGraphics3Drect
- Rectangleangle
- intaZ
- intpublic boolean getAutoSize()
public void setAutoSize(boolean value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |