|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.quinncurtis.chart3djava.ChartObj
com.quinncurtis.chart3djava.TickMark
public class TickMark
The TickMark class manages the position attributes of an axis tick mark.
Field Summary |
---|
Constructor Summary | |
---|---|
TickMark()
The default TickMark constructor |
|
TickMark(ChartPoint3D pstart,
ChartPoint3D pstop,
double rticklocation,
java.util.GregorianCalendar dtickdate,
int nticktype)
This constructor creates a new TickMark object for a time/date axis using the specified type and location. |
|
TickMark(ChartPoint3D pstart,
ChartPoint3D pstop,
double rticklocation,
int nticktype)
This constructor creates a new TickMark object using the specified type and location. |
|
TickMark(ChartPoint3D pstart,
ChartPoint3D pstop,
double rticklocation,
int nticktype,
boolean blabelf)
This constructor creates a new TickMark object using the specified type, location, and label flag. |
|
TickMark(double rticklocation,
int nticktype)
This constructor creates a new TickMark object using the specified type and location. |
|
TickMark(int nticktype)
This constructor creates a new TickMark object using the specified type. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns an object that is a clone of this TickMark object. |
void |
copy(TickMark source)
Copies the source tick mark object. |
int |
errorCheck(int nerror)
Checks the current tick mark object for common errors. |
java.util.GregorianCalendar |
getTickDate()
This method returns the date associated with the tick mark location. |
boolean |
getTickLabelFlag()
This method returns the state of the tick mark label flag. |
int |
getTickLabelFormat()
This method returns the tick label format of the tick mark. |
double |
getTickLocation()
This method returns the tick mark location. |
ChartPoint3D |
getTickStart()
This method returns the starting position of the tick mark. |
ChartPoint3D |
getTickStop()
This method returns the ending position of the tick mark. |
int |
getTickType()
This method returns the tick mark type. |
boolean |
isDateTick()
This method returns True if the tick mark is associated with a time/date axis. |
void |
setTickDate(java.util.GregorianCalendar dtickdate)
Sets the date associated with the tick mark location. |
void |
setTickLabelFlag(boolean blabelf)
Sets the tick mark label flag. |
void |
setTickLabelFormat(int ticklabelformat)
Sets the tick label format of the tick mark. |
void |
setTickLocation(ChartPoint3D pstart,
ChartPoint3D pstop)
Sets starting and ending position values for a tick mark. |
void |
setTickLocation(ChartPoint3D pstart,
ChartPoint3D pstop,
double rticklocation,
java.util.GregorianCalendar dtickdate)
Sets tick mark location parameters for a time/date axis. |
void |
setTickLocation(double rticklocation)
Sets the location value for a tick mark. |
void |
setTickMark(ChartPoint3D pstart,
ChartPoint3D pstop,
double rticklocation,
java.util.GregorianCalendar dtickdate,
int nticktype)
Sets tick mark parameters for a time/date axis. |
void |
setTickMark(double rticklocation,
int nticktype)
Sets tick mark type and location. |
void |
setTickStart(ChartPoint3D pstart)
Sets the starting position of the tick mark. |
void |
setTickStop(ChartPoint3D pstop)
Sets the ending position of the tick mark. |
void |
setTickType(int nticktype)
Sets the tick mark type. |
Methods inherited from class com.quinncurtis.chart3djava.ChartObj |
---|
copy, getChartObjIDCntr, getChartObjType, getThisChartObjID |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TickMark()
public TickMark(double rticklocation, int nticktype)
rticklocation
- The numeric value associated with the tick mark.nticktype
- The axis tick mark type, either TICK_MINOR or TICK_MAJOR.public TickMark(ChartPoint3D pstart, ChartPoint3D pstop, double rticklocation, int nticktype)
pstart
- The starting position, in window device coordinates, of the axis tick mark.pstop
- The ending position, in window device coordinates, of the axis tick mark.rticklocation
- The numeric value associated with the tick mark.nticktype
- The axis tick mark type, either TICK_MINOR or TICK_MAJOR.public TickMark(ChartPoint3D pstart, ChartPoint3D pstop, double rticklocation, int nticktype, boolean blabelf)
pstart
- The starting position, in window device coordinates, of the axis tick mark.pstop
- The ending position, in window device coordinates, of the axis tick mark.rticklocation
- The numeric value associated with the tick mark.nticktype
- The axis tick mark type, either TICK_MINOR or TICK_MAJOR.blabelf
- True designates that the tick mark should have a label.public TickMark(ChartPoint3D pstart, ChartPoint3D pstop, double rticklocation, java.util.GregorianCalendar dtickdate, int nticktype)
pstart
- The starting position, in window device coordinates, of the axis tick mark.pstop
- The ending position, in window device coordinates, of the axis tick mark.rticklocation
- The numeric value associated with the tick mark.dtickdate
- The GregorianCalendar date associated with the tick mark.nticktype
- The axis tick mark type, either TICK_MINOR or TICK_MAJOR.public TickMark(int nticktype)
nticktype
- The axis tick mark type, either TICK_MINOR or TICK_MAJOR.Method Detail |
---|
public int errorCheck(int nerror)
errorCheck
in class ChartObj
nerror
- Current error code.
public void copy(TickMark source)
source
- The source tick mark object.public java.lang.Object clone()
clone
in class java.lang.Object
public void setTickMark(double rticklocation, int nticktype)
rticklocation
- The numeric value associated with the tick mark.nticktype
- The axis tick mark type, either TICK_MINOR or TICK_MAJOR.public void setTickMark(ChartPoint3D pstart, ChartPoint3D pstop, double rticklocation, java.util.GregorianCalendar dtickdate, int nticktype)
pstart
- The starting position, in window device coordinates, of the axis tick mark.pstop
- The ending position, in window device coordinates, of the axis tick mark.rticklocation
- The numeric value associated with the tick mark.dtickdate
- The GregorianCalendar date associated with the tick mark.nticktype
- The axis tick mark type, either TICK_MINOR or TICK_MAJOR.public void setTickLocation(double rticklocation)
rticklocation
- The numeric value associated with the tick mark.public void setTickLocation(ChartPoint3D pstart, ChartPoint3D pstop, double rticklocation, java.util.GregorianCalendar dtickdate)
pstart
- The starting position, in window device coordinates, of the axis tick mark.pstop
- The ending position, in window device coordinates, of the axis tick mark.rticklocation
- The numeric value associated with the tick mark.dtickdate
- The GregorianCalendar date associated with the tick mark.public void setTickLocation(ChartPoint3D pstart, ChartPoint3D pstop)
pstart
- The starting position, in window device coordinates, of the axis tick mark.pstop
- The ending position, in window device coordinates, of the axis tick mark.public void setTickType(int nticktype)
nticktype
- The axis tick mark type, either TICK_MINOR or TICK_MAJOR.public void setTickLabelFlag(boolean blabelf)
blabelf
- True designates that the tick mark should have a label.public boolean getTickLabelFlag()
public double getTickLocation()
public ChartPoint3D getTickStart()
public ChartPoint3D getTickStop()
public void setTickStart(ChartPoint3D pstart)
pstart
- Sets the starting position of the tick mark.public void setTickStop(ChartPoint3D pstop)
pstop
- Sets the ending position of the tick mark.public int getTickType()
public void setTickDate(java.util.GregorianCalendar dtickdate)
dtickdate
- Sets the date associated with the tick mark location.public java.util.GregorianCalendar getTickDate()
public int getTickLabelFormat()
public void setTickLabelFormat(int ticklabelformat)
ticklabelformat
- Sets the ticklabelformat of the tick mark.public boolean isDateTick()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |