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

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

public class StiFontGeom
extends StiGeom


Constructor Summary
StiFontGeom(StiFont font)
           
StiFontGeom(java.lang.String fontName, double fontSize, StiEnumSet<StiFontStyle> style)
           
 
Method Summary
static StiFontGeom ChangeFontSize(StiFont font, double newFontSize)
           
static StiFontGeom ChangeFontSize(StiFont font, float newFontSize)
           
 java.lang.String getFontName()
           
 double getFontSize()
           
 StiEnumSet<StiFontStyle> getFontStyle()
           
 StiGeomType getType()
           
 void LoadFromJsonObject(JSONObject jObject)
           
 JSONObject SaveToJsonObject(StiJsonSaveMode mode)
           
 void setFontName(java.lang.String fontName)
           
 void setFontSize(double fontSize)
           
 void setFontStyle(StiEnumSet<StiFontStyle> fontStyle)
           
 
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
 

Constructor Detail

StiFontGeom

public StiFontGeom(StiFont font)

StiFontGeom

public StiFontGeom(java.lang.String fontName,
                   double fontSize,
                   StiEnumSet<StiFontStyle> style)
Method Detail

ChangeFontSize

public static StiFontGeom ChangeFontSize(StiFont font,
                                         double newFontSize)

ChangeFontSize

public static StiFontGeom ChangeFontSize(StiFont font,
                                         float newFontSize)

getType

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

getFontName

public java.lang.String getFontName()
Returns:
the fontName

setFontName

public void setFontName(java.lang.String fontName)
Parameters:
fontName - the fontName to set

getFontSize

public double getFontSize()
Returns:
the fontSize

setFontSize

public void setFontSize(double fontSize)
Parameters:
fontSize - the fontSize to set

getFontStyle

public StiEnumSet<StiFontStyle> getFontStyle()
Returns:
the fontStyle

setFontStyle

public void setFontStyle(StiEnumSet<StiFontStyle> fontStyle)
Parameters:
fontStyle - the fontStyle 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