com.stimulsoft.base.context.chart.geoms
Class StiTextGeom

java.lang.Object
  extended by com.stimulsoft.base.context.chart.geoms.StiGeom
      extended by com.stimulsoft.base.context.chart.geoms.StiTextGeom
All Implemented Interfaces:
IStiJsonReportObject

public class StiTextGeom
extends StiGeom

Copyright Stimulsoft


Field Summary
 int elementIndex
           
 
Constructor Summary
StiTextGeom(java.lang.String text, StiFontGeom font, java.lang.Object brush, java.lang.Object location, StiStringFormatGeom stringFormat, boolean isRotatedText, int elementIndex)
           
StiTextGeom(java.lang.String text, StiFontGeom font, java.lang.Object brush, java.lang.Object location, StiStringFormatGeom stringFormat, float angle, boolean antialiasing, boolean isRotatedText)
           
StiTextGeom(java.lang.String text, StiFontGeom font, java.lang.Object brush, java.lang.Object location, StiStringFormatGeom stringFormat, float angle, boolean antialiasing, java.lang.Integer maximalWidth, StiRotationMode rotationMode, boolean isRotatedText)
           
StiTextGeom(java.lang.String text, StiFontGeom font, java.lang.Object brush, java.lang.Object location, StiStringFormatGeom stringFormat, float angle, boolean antialiasing, StiRotationMode rotationMode, boolean isRotatedText)
           
 
Method Summary
 float getAngle()
           
 java.lang.Object getBrush()
           
 StiFontGeom getFont()
           
 java.lang.Object getLocation()
           
 java.lang.Integer getMaximalWidth()
           
 StiRotationMode getRotationMode()
           
 StiStringFormatGeom getStringFormat()
           
 java.lang.String getText()
           
 StiGeomType getType()
           
 boolean isAntialiasing()
           
 boolean isRotatedText()
           
 boolean isRounded()
           
 void LoadFromJsonObject(JSONObject jObject)
           
 JSONObject SaveToJsonObject(StiJsonSaveMode mode)
           
 void setAngle(float angle)
           
 void setAntialiasing(boolean antialiasing)
           
 void setBrush(java.lang.Object brush)
           
 void setFont(StiFontGeom font)
           
 void setLocation(java.lang.Object location)
           
 void setMaximalWidth(java.lang.Integer maximalWidth)
           
 void setRotatedText(boolean isRotatedText)
           
 void setRotationMode(StiRotationMode rotationMode)
           
 void setRounded(boolean isRounded)
           
 void setStringFormat(StiStringFormatGeom stringFormat)
           
 void setText(java.lang.String text)
           
 
Methods inherited from class com.stimulsoft.base.context.chart.geoms.StiGeom
SavePointFToJsonObject, SaveRectangleDToJsonObject, SaveRectangleFToJsonObject, SaveRectangleToJsonObject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elementIndex

public int elementIndex
Constructor Detail

StiTextGeom

public StiTextGeom(java.lang.String text,
                   StiFontGeom font,
                   java.lang.Object brush,
                   java.lang.Object location,
                   StiStringFormatGeom stringFormat,
                   boolean isRotatedText,
                   int elementIndex)

StiTextGeom

public StiTextGeom(java.lang.String text,
                   StiFontGeom font,
                   java.lang.Object brush,
                   java.lang.Object location,
                   StiStringFormatGeom stringFormat,
                   float angle,
                   boolean antialiasing,
                   boolean isRotatedText)

StiTextGeom

public StiTextGeom(java.lang.String text,
                   StiFontGeom font,
                   java.lang.Object brush,
                   java.lang.Object location,
                   StiStringFormatGeom stringFormat,
                   float angle,
                   boolean antialiasing,
                   StiRotationMode rotationMode,
                   boolean isRotatedText)

StiTextGeom

public StiTextGeom(java.lang.String text,
                   StiFontGeom font,
                   java.lang.Object brush,
                   java.lang.Object location,
                   StiStringFormatGeom stringFormat,
                   float angle,
                   boolean antialiasing,
                   java.lang.Integer maximalWidth,
                   StiRotationMode rotationMode,
                   boolean isRotatedText)
Method Detail

getType

public StiGeomType getType()
Specified by:
getType in class StiGeom

getText

public java.lang.String getText()
Returns:
the text

setText

public void setText(java.lang.String text)
Parameters:
text - the text to set

getFont

public StiFontGeom getFont()
Returns:
the font

setFont

public void setFont(StiFontGeom font)
Parameters:
font - the font to set

isRounded

public boolean isRounded()
Returns:
the isRounded

setRounded

public void setRounded(boolean isRounded)
Parameters:
isRounded - the isRounded to set

isRotatedText

public boolean isRotatedText()
Returns:
the isRotatedText

setRotatedText

public void setRotatedText(boolean isRotatedText)
Parameters:
isRotatedText - the isRotatedText to set

getBrush

public java.lang.Object getBrush()
Returns:
the brush

setBrush

public void setBrush(java.lang.Object brush)
Parameters:
brush - the brush to set

getLocation

public java.lang.Object getLocation()
Returns:
the location

setLocation

public void setLocation(java.lang.Object location)
Parameters:
location - the location to set

getStringFormat

public StiStringFormatGeom getStringFormat()
Returns:
the stringFormat

setStringFormat

public void setStringFormat(StiStringFormatGeom stringFormat)
Parameters:
stringFormat - the stringFormat to set

getAngle

public float getAngle()
Returns:
the angle

setAngle

public void setAngle(float angle)
Parameters:
angle - the angle to set

isAntialiasing

public boolean isAntialiasing()
Returns:
the antialiasing

setAntialiasing

public void setAntialiasing(boolean antialiasing)
Parameters:
antialiasing - the antialiasing to set

getMaximalWidth

public java.lang.Integer getMaximalWidth()
Returns:
the maximalWidth

setMaximalWidth

public void setMaximalWidth(java.lang.Integer maximalWidth)
Parameters:
maximalWidth - the maximalWidth to set

getRotationMode

public StiRotationMode getRotationMode()
Returns:
the rotationMode

setRotationMode

public void setRotationMode(StiRotationMode rotationMode)
Parameters:
rotationMode - the rotationMode to set

SaveToJsonObject

public JSONObject SaveToJsonObject(StiJsonSaveMode mode)
                            throws JSONException
Specified by:
SaveToJsonObject in interface IStiJsonReportObject
Overrides:
SaveToJsonObject in class StiGeom
Throws:
JSONException

LoadFromJsonObject

public void LoadFromJsonObject(JSONObject jObject)
                        throws JSONException
Specified by:
LoadFromJsonObject in interface IStiJsonReportObject
Overrides:
LoadFromJsonObject in class StiGeom
Throws:
JSONException