com.stimulsoft.report.chart.view.axis
Class StiAxisTicks

java.lang.Object
  extended by com.stimulsoft.base.serializing.StiSerializedObject
      extended by com.stimulsoft.report.chart.view.axis.StiAxisTicks
All Implemented Interfaces:
IStiJsonReportObject, IStiSerializable, IStiSerializableRef, IStiAxisTicks, java.lang.Cloneable

public class StiAxisTicks
extends StiSerializedObject
implements IStiAxisTicks, java.lang.Cloneable


Field Summary
 
Fields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT
 
Constructor Summary
StiAxisTicks()
           
StiAxisTicks(boolean visible, float length, boolean minorVisible, float minorLength, int minorCount, int step)
           
StiAxisTicks(boolean visible, float length, boolean minorVisible, float minorLength, int minorCount, int step, float lengthUnderLabels)
           
 
Method Summary
 java.lang.Object clone()
          Creates a new object that is a copy of the current instance.
 float getLength()
          Gets or sets length of one major tick.
 float getLengthUnderLabels()
          Gets or sets length of one major tick under labels.
 int getMinorCount()
          Gets or sets count of minor ticks between two major ticks.
 float getMinorLength()
          Gets or sets length of one minor tick.
 boolean getMinorVisible()
          Gets or sets visibility of minor ticks.
 int getStep()
          Gets or sets value which indicates on which steps major ticks will be displayed.
 boolean getVisible()
          Gets or sets visility of major ticks.
 void LoadFromJsonObject(JSONObject jObject)
           
 JSONObject SaveToJsonObject(StiJsonSaveMode mode)
           
 void setLength(float value)
           
 void setLengthUnderLabels(float value)
           
 void setMinorCount(int value)
           
 void setMinorLength(float value)
           
 void setMinorVisible(boolean value)
           
 void setStep(int value)
           
 void setVisible(boolean value)
           
 
Methods inherited from class com.stimulsoft.base.serializing.StiSerializedObject
cleanReference, getReference, setReference
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
getReference, setReference
 

Constructor Detail

StiAxisTicks

public StiAxisTicks()

StiAxisTicks

public StiAxisTicks(boolean visible,
                    float length,
                    boolean minorVisible,
                    float minorLength,
                    int minorCount,
                    int step)

StiAxisTicks

public StiAxisTicks(boolean visible,
                    float length,
                    boolean minorVisible,
                    float minorLength,
                    int minorCount,
                    int step,
                    float lengthUnderLabels)
Method Detail

clone

public final java.lang.Object clone()
Creates a new object that is a copy of the current instance.

Specified by:
clone in interface IStiAxisTicks
Overrides:
clone in class java.lang.Object
Returns:
A new object that is a copy of this instance.

getLengthUnderLabels

public final float getLengthUnderLabels()
Gets or sets length of one major tick under labels.

Specified by:
getLengthUnderLabels in interface IStiAxisTicks

setLengthUnderLabels

public final void setLengthUnderLabels(float value)
Specified by:
setLengthUnderLabels in interface IStiAxisTicks

getLength

public final float getLength()
Gets or sets length of one major tick.

Specified by:
getLength in interface IStiAxisTicks

setLength

public final void setLength(float value)
Specified by:
setLength in interface IStiAxisTicks

getMinorLength

public final float getMinorLength()
Gets or sets length of one minor tick.

Specified by:
getMinorLength in interface IStiAxisTicks

setMinorLength

public final void setMinorLength(float value)
Specified by:
setMinorLength in interface IStiAxisTicks

getMinorCount

public final int getMinorCount()
Gets or sets count of minor ticks between two major ticks.

Specified by:
getMinorCount in interface IStiAxisTicks

setMinorCount

public final void setMinorCount(int value)
Specified by:
setMinorCount in interface IStiAxisTicks

getStep

public final int getStep()
Gets or sets value which indicates on which steps major ticks will be displayed.

Specified by:
getStep in interface IStiAxisTicks

setStep

public final void setStep(int value)
Specified by:
setStep in interface IStiAxisTicks

getMinorVisible

public boolean getMinorVisible()
Gets or sets visibility of minor ticks.

Specified by:
getMinorVisible in interface IStiAxisTicks

setMinorVisible

public void setMinorVisible(boolean value)
Specified by:
setMinorVisible in interface IStiAxisTicks

getVisible

public boolean getVisible()
Gets or sets visility of major ticks.

Specified by:
getVisible in interface IStiAxisTicks

setVisible

public void setVisible(boolean value)
Specified by:
setVisible in interface IStiAxisTicks

SaveToJsonObject

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

LoadFromJsonObject

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