|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.chart.axis.Tick
public class Tick
Tick
s are generated at regular intervals along an axis and displayed as little dashed lines on the axis
to give an indication of the gradation.
Constructor Summary | |
---|---|
Tick()
Construct a Tick object. |
|
Tick(double position)
Creates a minor tick at the supplied position. |
|
Tick(double position,
boolean isMajor)
Create a tick at the supplied position. |
|
Tick(double position,
String label)
Create a Tick object with the supplied position and label. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getLabel()
Returns the label for this tick, or null if there is none |
double |
getPosition()
Returns the position of the tick along the axis |
int |
hashCode()
|
boolean |
isMajor()
Returns whether the tick is a major tick. |
void |
setLabel(String label)
Sets the label for this tick |
void |
setMajor(boolean major)
Specify whether the tick is a major tick. |
void |
setPosition(double position)
Sets the position of the tick along the axis |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Tick()
public Tick(double position)
position
- the position for the tick.public Tick(double position, boolean isMajor)
position
- the position for the tickisMajor
- whether the tick is a major tickpublic Tick(double position, String label)
position
- the new position of the tick along the axislabel
- the new labelMethod Detail |
---|
public boolean isMajor()
public void setMajor(boolean major)
major
- whether the tick is a major tickpublic String getLabel()
public void setLabel(String label)
label
- the label for the tickpublic double getPosition()
public void setPosition(double position)
position
- the position for the tick, given in axis coordinatespublic int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |