|
|||||||||
| 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.GraphObj
com.quinncurtis.chart3djava.Axis
com.quinncurtis.chart3djava.LogAxis
public class LogAxis
The LogAxis class implements a logarithmic axis where the major tick marks are placed at logarithmic intervals and the minor tick marks are placed between major tick marks using a linear interval.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
LogAxis()
The default LogAxis constructor. |
|
LogAxis(PhysicalCoordinates transform,
int axtype)
This constructor creates a new LogAxis object of the specified type and scales it to match the minimum and maximum values of the specified PhysicalCoordinates object. |
|
LogAxis(PhysicalCoordinates transform,
int axtype,
double minval,
double maxval)
This constructor creates a new LogAxis object of a specified type, and scales it to match the specified minimum and maximum values. |
|
| Method Summary | |
|---|---|
void |
calcAutoAxis()
This method uses the current minimum and maximum values in the chartObjScale object to determine the minimum and maximum value for the axis, and the appropriate tick mark spacing. |
void |
calcAutoAxis(double rmin,
double rmax)
This auto-axis method uses the supplied axis extents and calculates the appropriate ancillary properties. |
int |
calcAxisLabelsDecimalPos()
A dummy method. |
int |
calcAxisLabelsDecimalPos(double r)
Returns an integer value that is the number of digits that should be displayed to the right of the decimal point when labeling the axis tick marks. |
boolean |
checkIntersection(ChartPoint3D testpoint,
NearestPointData np)
The checkIntersection method. |
java.lang.Object |
clone()
Returns an object that is a clone of this LogAxis object. |
void |
copy(LogAxis source)
Copies the source axis. |
void |
draw(java.awt.Graphics2D g2)
The draw method for this class. |
int |
errorCheck(int nerror)
Checks the current axis object for common errors. |
AxisLabels |
getCompatibleAxisLabels()
This method returns an AxisLabels object that is compatible with this LogAxis object. |
int |
getLogTickFormat()
Returns the value of the logTickFormat field. |
void |
setAxisTicks(double tickorigin,
int nlogtickformat)
This method is used to initialize the minor and major tick mark spacing, and the tick mark origin. |
void |
setAxisTicks(double origin,
int nlogtickformat,
double minorticklength,
double majorticklength,
int tickdir)
This method is used to initialize the minor and major tick mark spacing, and the tick mark origin. |
void |
setLogTickFormat(int nlogtickformat)
This method specifies which minor tick marks are flagged for labels. |
| 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 LogAxis()
public LogAxis(PhysicalCoordinates transform,
int axtype)
transform - Sets the minimum and maximum value of the axis to the associated minimum
and maximum value of the coordinate system transform.axtype - Specifies if the axis is an x-axis (X_AXIS), or a y-axis (Y_AXIS).
public LogAxis(PhysicalCoordinates transform,
int axtype,
double minval,
double maxval)
transform - Places the axes in the coordinate system defined by transform.axtype - Specifies if the axis is an x-axis (X_AXIS), or a y-axis (Y_AXIS).minval - Sets the minimum value for the axis.maxval - Sets the maximum value for the axis.| Method Detail |
|---|
public int errorCheck(int nerror)
errorCheck in class Axisnerror - Current error state
public void copy(LogAxis source)
source - The source axis object.public java.lang.Object clone()
clone in class GraphObjpublic void calcAutoAxis()
calcAutoAxis in class Axis
public void calcAutoAxis(double rmin,
double rmax)
rmin - The axis minimum valuermax - The axis maximum value
public void setAxisTicks(double tickorigin,
int nlogtickformat)
tickorigin - The tick marks start at this value.nlogtickformat - This parameter specifies which minor tick marks are flagged for labels.
The values are interpreted as follows: 0 No minor tick mark labels 1 Place a label at tick mark 0 in
each decade. 2 Place a label at minor tick marks 1, 3 and 5 in each decade. 3 Place a label at minor
tick marks 0, 1, 2, 3 and 5 in each decade. 4 Place a label at minor tick marks 0, 1, 2, 3, 4 and 5 in
each decade. 5 Place a label at minor tick marks 0, 1, 2, 3, 4, 5 and 6 in each decade. 6 Place a
label at minor tick marks 0, 1, 2, 3, 4, 5, 6 and 7 in each decade. 7 Place a label at minor tick
marks 0, 1, 2, 3, 4, 5, 6, 7 and 8 in each decade. 8 Place a label at minor tick
marks 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9 in each decade.
public void setAxisTicks(double origin,
int nlogtickformat,
double minorticklength,
double majorticklength,
int tickdir)
origin - The tick marks start at this value.nlogtickformat - This parameter specifies which minor tick marks are flagged for labels.
The values are interpreted as follows: 0 No minor tick mark labels 1 Place a label at tick mark 0 in
each decade. 2 Place a label at minor tick marks 1, 3 and 5 in each decade. 3 Place a label at minor
tick marks 0, 1, 2, 3 and 5 in each decade. 4 Place a label at minor tick marks 0, 1, 2, 3, 4 and 5
in each decade. 5 Place a label at minor tick marks 0, 1, 2, 3, 4, 5 and 6 in each decade. 6 Place
a label at minor tick marks 0, 1, 2, 3, 4, 5, 6 and 7 in each decade. 7 Place a label at minor tick
marks 0, 1, 2, 3, 4, 5, 6, 7 and 8 in each decade. 8 Place a label at minor tick
marks 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9 in each decade.minorticklength - The length of minor tick marks, in window device coordinates.majorticklength - The length of major tick marks, in window device coordinates.tickdir - The direction of the tick marks. Use one of the tick mark direction constants:
AXIS_MIN, AXIS_CENTER, or AXIS_MAX.public int calcAxisLabelsDecimalPos()
calcAxisLabelsDecimalPos in class Axispublic int calcAxisLabelsDecimalPos(double r)
r - The numeric value, in physical coordinates, of the tick mark.
public void draw(java.awt.Graphics2D g2)
draw in class GraphObjg2 - The graphics context.public AxisLabels getCompatibleAxisLabels()
getCompatibleAxisLabels in class Axis
public boolean checkIntersection(ChartPoint3D testpoint,
NearestPointData np)
checkIntersection in class Axistestpoint - The test pointnp - Nearest point information for data based objects.
public void setLogTickFormat(int nlogtickformat)
nlogtickformat - This parameter specifies which minor tick marks are flagged for labels.
The values are interpreted as follows: 0 No minor tick mark labels 1 Place a label at tick mark 0 in
each decade. 2 Place a label at minor tick marks 1, 3 and 5 in each decade. 3 Place a label at minor
tick marks 0, 1, 2, 3 and 5 in each decade. 4 Place a label at minor tick marks 0, 1, 2, 3, 4 and 5
in each decade. 5 Place a label at minor tick marks 0, 1, 2, 3, 4, 5 and 6 in each decade. 6 Place
a label at minor tick marks 0, 1, 2, 3, 4, 5, 6 and 7 in each decade. 7 Place a label at minor tick
marks 0, 1, 2, 3, 4, 5, 6, 7 and 8 in each decade. 8 Place a label at minor tick
marks 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9 in each decade.public int getLogTickFormat()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||