|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.quinncurtis.chart2djava.ChartObj
com.quinncurtis.chart2djava.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(ChartPoint2D pstart,
ChartPoint2D 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(ChartPoint2D pstart,
ChartPoint2D pstop,
double rticklocation,
int nticktype)
This constructor creates a new TickMark object using the specified type and location. |
|
TickMark(ChartPoint2D pstart,
ChartPoint2D 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. |
ChartPoint2D |
getTickStart()
This method returns the starting position of the tick mark. |
ChartPoint2D |
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(ChartPoint2D pstart,
ChartPoint2D pstop)
Sets starting and ending position values for a tick mark. |
void |
setTickLocation(ChartPoint2D pstart,
ChartPoint2D 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(ChartPoint2D pstart,
ChartPoint2D 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(ChartPoint2D pstart)
Sets the starting position of the tick mark. |
void |
setTickStop(ChartPoint2D pstop)
Sets the ending position of the tick mark. |
void |
setTickType(int nticktype)
Sets the tick mark type. |
Methods inherited from class com.quinncurtis.chart2djava.ChartObj |
---|
copy, getChartObjIDCntr, getChartObjType, getThisChartObjID, TypeSafeVectorCopy |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TickMark()
public TickMark(ChartPoint2D pstart, ChartPoint2D 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(ChartPoint2D pstart, ChartPoint2D 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(ChartPoint2D pstart, ChartPoint2D 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(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(int nticktype)
nticktype
- The axis tick mark type, either TICK_MINOR or TICK_MAJOR.Method Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
public void copy(TickMark source)
source
- The source tick mark object.public int errorCheck(int nerror)
errorCheck
in class ChartObj
public java.util.GregorianCalendar getTickDate()
public boolean getTickLabelFlag()
public int getTickLabelFormat()
public double getTickLocation()
public ChartPoint2D getTickStart()
public ChartPoint2D getTickStop()
public int getTickType()
public boolean isDateTick()
public void setTickDate(java.util.GregorianCalendar dtickdate)
dtickdate
- Sets the date associated with the tick mark location.public void setTickLabelFlag(boolean blabelf)
blabelf
- True designates that the tick mark should have a label.public void setTickLabelFormat(int ticklabelformat)
ticklabelformat
- Sets the ticklabelformat of the tick mark.public void setTickLocation(ChartPoint2D pstart, ChartPoint2D 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 setTickLocation(ChartPoint2D pstart, ChartPoint2D 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(double rticklocation)
rticklocation
- The numeric value associated with the tick mark.public void setTickMark(ChartPoint2D pstart, ChartPoint2D 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 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 setTickStart(ChartPoint2D pstart)
pstart
- Sets the starting position of the tick mark.public void setTickStop(ChartPoint2D pstop)
pstop
- Sets the ending position of the tick mark.public void setTickType(int nticktype)
nticktype
- The axis tick mark type, either TICK_MINOR or TICK_MAJOR.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |