public class GridLimits
extends java.lang.Object
Constructor and Description |
---|
GridLimits()
Constructor for the GridLimits object
|
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getColor()
Returns the color of the grid lines
|
boolean |
getGridLimitsSwitch()
Returns the boolean value that specifies if this GridLimits object will
be used to define marks on axis and minimal and maximal values
|
boolean |
getMajorTicksOnX()
Returns the boolean value that defines if the major sticks number
parameter will be used on the graph panel
|
boolean |
getMajorTicksOnY()
Returns the boolean value that defines if the major sticks number
parameter will be used on the graph panel
|
double |
getMaxX()
Returns the internal maximal x-value
|
double |
getMaxY()
Returns the internal maximal y-value
|
double |
getMinX()
Returns the internal minimal x-value
|
double |
getMinY()
Returns the internal minimal y-value
|
java.text.DecimalFormat |
getNumberFormatX()
Returns the format for x-axis
|
java.text.DecimalFormat |
getNumberFormatY()
Returns the format for y-axis
|
int |
getNumMajorTicksX()
Returns the number of major ticks on the x-axis
|
int |
getNumMajorTicksY()
Returns the number of major ticks on the y-axis
|
int |
getNumMinorTicksX()
Returns the number of minor ticks on the x-axis
|
int |
getNumMinorTicksY()
Returns the number of minor ticks on the y-axis
|
void |
initialize()
Initializes all internal parameters in the initial state
|
void |
initializeX()
Initializes all internal parameters for x-axis in the initial state
|
void |
initializeY()
Initializes all internal parameters for y-axis in the initial state
|
boolean |
isSetXmax()
Returns the boolean value that defines will the internal maximal x-value
be used in the graph panel
|
boolean |
isSetXmin()
Returns the boolean value that defines will the internal minimal x-value
be used in the graph panel
|
boolean |
isSetYmax()
Returns the boolean value that defines will the internal maximal y-value
be used in the graph panel
|
boolean |
isSetYmin()
Returns the boolean value that defines will the internal minimal y-value
be used in the graph panel
|
void |
setColor(java.awt.Color clr)
Sets the color color of the grid lines
|
void |
setGridLimitsSwitch(boolean gridLimitsSwitchOnYesIn)
Sets the boolean value that specifies if this GridLimits object will be
used to define marks on axis and minimal and maximal values
|
void |
setLimitsAndTicksX(double vMin,
double vMax,
double step)
Sets the minimal value, maximal value, step, and number of minor ticks
on the x-axis.
|
void |
setLimitsAndTicksX(double vMin,
double vMax,
double step,
int nMinorTicksIn)
Sets the minimal value, maximal value, step, and number of minor ticks
on the x-axis
|
void |
setLimitsAndTicksX(double vMin,
double step,
int nStep)
Sets the minimal value, step, and number of steps on the x-axis.
|
void |
setLimitsAndTicksX(double vMin,
double step,
int nStep,
int nMinorTicksIn)
Sets the minimal value, step, number of steps, and number of minor ticks
on the x-axis
|
void |
setLimitsAndTicksY(double vMin,
double vMax,
double step)
Sets the minimal value, maximal value, step, and number of minor ticks
on the y-axis.
|
void |
setLimitsAndTicksY(double vMin,
double vMax,
double step,
int nMinorTicksIn)
Sets the minimal value, maximal value, step, and number of minor ticks
on the y-axis
|
void |
setLimitsAndTicksY(double vMin,
double step,
int nStep)
Sets the minimal value, step, and number of steps on the y-axis.
|
void |
setLimitsAndTicksY(double vMin,
double step,
int nStep,
int nMinorTicksIn)
Sets the minimal value, step, number of steps, and number of minor ticks
on the y-axis
|
void |
setMajorTicksOnX(boolean majorTicksOnXIn)
Sets the boolean value that defines if the major sticks number parameter
will be used on the graph panel
|
void |
setMajorTicksOnY(boolean majorTicksOnYIn)
Sets the boolean value that defines if the major sticks number parameter
will be used on the graph panel
|
void |
setNumberFormatX(java.text.DecimalFormat numberFormatX_In)
Sets the numberFormatX attribute of the GridLimits object
|
void |
setNumberFormatY(java.text.DecimalFormat numberFormatY_In)
Sets the numberFormatY attribute of the GridLimits object
|
void |
setNumMajorTicksX(int nMajorTicksXIn)
Sets the sets the number of major ticks on the x-axis
|
void |
setNumMajorTicksY(int nMajorTicksYIn)
Sets the number of major ticks on the y-axis
|
void |
setNumMinorTicksX(int nMinorTicksXIn)
Sets the number of minor ticks on the x-axis
|
void |
setNumMinorTicksY(int nMinorTicksYIn)
Sets the number of minor ticks on the y-axis
|
void |
setSmartLimits()
Sets the limits by using smart procedure for both x and y-axises
|
void |
setSmartLimitsX()
Sets the limits by using smart procedure for x-axis.
|
void |
setSmartLimitsY()
Sets the limits by using smart procedure for x-axis This method will be
defined in the sub-class.
|
void |
setXmax(double xMax)
Sets the maximal x-value
|
void |
setXmaxOn(boolean ixMaxIn)
Sets the boolean value that defines will the internal maximal x-value be
used in the graph panel
|
void |
setXmin(double xMin)
Sets the minimal x-value
|
void |
setXminOn(boolean ixMinIn)
Sets the boolean value that defines will the internal minimal x-value be
used in the graph panel
|
void |
setYmax(double yMax)
Sets the maximal y-value
|
void |
setYmaxOn(boolean iyMaxIn)
Sets the boolean value that defines will the internal maximal y-value be
used in the graph panel
|
void |
setYmin(double yMin)
Sets the minimal y-value
|
void |
setYminOn(boolean iyMinIn)
Sets the boolean value that defines will the internal minimal y-value be
used in the graph panel
|
public void setSmartLimits()
public void setSmartLimitsX()
public void setSmartLimitsY()
public void setNumberFormatX(java.text.DecimalFormat numberFormatX_In)
numberFormatX_In
- The new format for x-axispublic void setNumberFormatY(java.text.DecimalFormat numberFormatY_In)
numberFormatY_In
- The new format for x-axispublic java.text.DecimalFormat getNumberFormatX()
public java.text.DecimalFormat getNumberFormatY()
public void setXmin(double xMin)
xMin
- The new minimal x-valuepublic void setYmin(double yMin)
yMin
- The new minimal y-valuepublic void setXmax(double xMax)
xMax
- The new maximal x-valuepublic void setYmax(double yMax)
yMax
- The new maximal y-valuepublic void setXminOn(boolean ixMinIn)
ixMinIn
- The boolean valuepublic void setYminOn(boolean iyMinIn)
iyMinIn
- The boolean valuepublic void setXmaxOn(boolean ixMaxIn)
ixMaxIn
- The boolean valuepublic void setYmaxOn(boolean iyMaxIn)
iyMaxIn
- The boolean valuepublic boolean isSetXmin()
public boolean isSetYmin()
public boolean isSetXmax()
public boolean isSetYmax()
public double getMinX()
public double getMinY()
public double getMaxX()
public double getMaxY()
public void initialize()
public void initializeX()
public void initializeY()
public boolean getGridLimitsSwitch()
public void setGridLimitsSwitch(boolean gridLimitsSwitchOnYesIn)
gridLimitsSwitchOnYesIn
- The boolean valuepublic java.awt.Color getColor()
public void setColor(java.awt.Color clr)
clr
- The new color the grid linespublic void setNumMajorTicksX(int nMajorTicksXIn)
nMajorTicksXIn
- The number of major ticks on the x-axispublic int getNumMajorTicksX()
public void setNumMajorTicksY(int nMajorTicksYIn)
nMajorTicksYIn
- The number of major ticks on the y-axispublic int getNumMajorTicksY()
public void setNumMinorTicksX(int nMinorTicksXIn)
nMinorTicksXIn
- The number of minor ticks on the x-axispublic int getNumMinorTicksX()
public void setNumMinorTicksY(int nMinorTicksYIn)
nMinorTicksYIn
- The number of minor ticks on the y-axispublic int getNumMinorTicksY()
public void setMajorTicksOnX(boolean majorTicksOnXIn)
majorTicksOnXIn
- The boolean valuepublic boolean getMajorTicksOnX()
public void setMajorTicksOnY(boolean majorTicksOnYIn)
majorTicksOnYIn
- The boolean valuepublic boolean getMajorTicksOnY()
public void setLimitsAndTicksX(double vMin, double step, int nStep, int nMinorTicksIn)
vMin
- The new minimal valuestep
- The new stepnStep
- The new number of stepsnMinorTicksIn
- The new number of minor tickspublic void setLimitsAndTicksX(double vMin, double step, int nStep)
vMin
- The new minimal valuestep
- The new stepnStep
- The new number of stepspublic void setLimitsAndTicksY(double vMin, double step, int nStep, int nMinorTicksIn)
vMin
- The new minimal valuestep
- The new stepnStep
- The new number of stepsnMinorTicksIn
- The new number of minor tickspublic void setLimitsAndTicksY(double vMin, double step, int nStep)
vMin
- The new minimal valuestep
- The new stepnStep
- The new number of stepspublic void setLimitsAndTicksX(double vMin, double vMax, double step, int nMinorTicksIn)
vMin
- The new new minimal valuevMax
- The new new maximal valuestep
- The new stepnMinorTicksIn
- The new number of minor tickspublic void setLimitsAndTicksX(double vMin, double vMax, double step)
vMin
- The new minimal valuevMax
- The new maximal valuestep
- The new steppublic void setLimitsAndTicksY(double vMin, double vMax, double step, int nMinorTicksIn)
vMin
- The new new minimal valuevMax
- The new new maximal valuestep
- The new stepnMinorTicksIn
- The new number of minor tickspublic void setLimitsAndTicksY(double vMin, double vMax, double step)
vMin
- The new minimal valuevMax
- The new maximal valuestep
- The new step