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

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

public class StiLineSegmentGeom
extends StiSegmentGeom


Constructor Summary
StiLineSegmentGeom(double x1, double y1, double x2, double y2)
           
StiLineSegmentGeom(StiPoint start, StiPoint end)
           
StiLineSegmentGeom(StiPoint start, StiPoint end, StiAnimation animation)
           
 
Method Summary
 StiAnimation getAnimation()
           
 double getX1()
           
 double getX2()
           
 double getY1()
           
 double getY2()
           
 void LoadFromJsonObject(JSONObject jObject)
           
 JSONObject SaveToJsonObject(StiJsonSaveMode mode)
           
 void setAnimation(StiAnimation animation)
           
 void setX1(double x1)
           
 void setX2(double x2)
           
 void setY1(double y1)
           
 void setY2(double y2)
           
 
Methods inherited from class com.stimulsoft.base.context.chart.geoms.StiSegmentGeom
getType
 
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

StiLineSegmentGeom

public StiLineSegmentGeom(StiPoint start,
                          StiPoint end)

StiLineSegmentGeom

public StiLineSegmentGeom(StiPoint start,
                          StiPoint end,
                          StiAnimation animation)

StiLineSegmentGeom

public StiLineSegmentGeom(double x1,
                          double y1,
                          double x2,
                          double y2)
Method Detail

getX1

public double getX1()
Returns:
the x1

setX1

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

getY1

public double getY1()
Returns:
the y1

setY1

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

getX2

public double getX2()
Returns:
the x2

setX2

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

getY2

public double getY2()
Returns:
the y2

setY2

public void setY2(double y2)
Parameters:
y2 - the y2 to set

getAnimation

public StiAnimation getAnimation()
Returns:
the animation

setAnimation

public void setAnimation(StiAnimation animation)
Parameters:
animation - the animation to set

SaveToJsonObject

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

LoadFromJsonObject

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