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

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

public class StiLineGeom
extends StiGeom

Copyright Stimulsoft


Constructor Summary
StiLineGeom(StiPenGeom pen, double x1, double y1, double x2, double y2)
           
 
Method Summary
 StiPenGeom getPen()
           
 StiGeomType getType()
           
 float getX1()
           
 float getX2()
           
 float getY1()
           
 float getY2()
           
 void LoadFromJsonObject(JSONObject jObject)
           
 JSONObject SaveToJsonObject(StiJsonSaveMode mode)
           
 void setPen(StiPenGeom pen)
           
 void setX1(float x1)
           
 void setX2(float x2)
           
 void setY1(float y1)
           
 void setY2(float y2)
           
 
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

StiLineGeom

public StiLineGeom(StiPenGeom pen,
                   double x1,
                   double y1,
                   double x2,
                   double y2)
Method Detail

getType

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

getPen

public StiPenGeom getPen()
Returns:
the pen

setPen

public void setPen(StiPenGeom pen)
Parameters:
pen - the pen to set

getX1

public float getX1()
Returns:
the x1

setX1

public void setX1(float x1)
Parameters:
x1 - the x1 to set

getY1

public float getY1()
Returns:
the y1

setY1

public void setY1(float y1)
Parameters:
y1 - the y1 to set

getX2

public float getX2()
Returns:
the x2

setX2

public void setX2(float x2)
Parameters:
x2 - the x2 to set

getY2

public float getY2()
Returns:
the y2

setY2

public void setY2(float y2)
Parameters:
y2 - the y2 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