Package hec.geometry
Class AxisProp
java.lang.Object
hec.geometry.AxisProp
- All Implemented Interfaces:
ScaleProperties
,AsciiSerializable
,FieldAccessor
,Serializable
properties for Axis objects.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptiondouble
double
boolean
boolean
boolean
boolean
boolean
boolean
boolean
static final boolean
boolean
boolean that states if min/max are defaults or real limitsboolean
Reverse direction of world coord relative to local coorddouble
major tic intervalsdouble
maximum limit of the axisdouble
minimum limit of the axisdouble
minor tic intervalsint
max number of tic label layers.boolean
double[][]
boolean
int
axis type identifier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
double
Returns the current maximum scale value of the current view.double
Returns the current min scale value.getClone()
getFieldObject
(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.double
Returns the interval between the minor ticsdouble
Gets the maximum value for an axis scale.double
Retruns the interval between the major ticsdouble
Gets the minimum value for an Axis Scale.int
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
readProperties
(BufferedReader in, String endTag) void
readRatingFunction
(BufferedReader reader, String line) void
void
setActualMaxScaleValue
(double val) void
setActualMinScaleValue
(double val) void
setAutoComputeMajorTics
(boolean m) void
setAutoComputeMinorTics
(boolean m) void
setAutomaticMax
(boolean m) void
setAutomaticMin
(boolean m) void
setAutomaticViewMax
(boolean m) void
setAutomaticViewMin
(boolean m) boolean
setFieldObject
(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.void
setMajorTicInterval
(double interval) Sets the spacing between the minor ticsvoid
setMaxScaleValue
(double val) void
setMinorTicInterval
(double interval) Sets the spacing between each of the Major Ticsvoid
setMinScaleValue
(double val) Sets the new minimum scale value for an axis.void
setNumTicLevels
(int level) void
setReversed
(boolean m) void
setSwapXYAxis
(boolean b) boolean
void
writeProperties
(BufferedWriter writer, String endTag)
-
Field Details
-
DEFAULT_IS_REVERSED
public static final boolean DEFAULT_IS_REVERSED- See Also:
-
name
-
label
-
isDefaultLimits
public boolean isDefaultLimitsboolean that states if min/max are defaults or real limits -
min
public double minminimum limit of the axis -
max
public double maxmaximum limit of the axis -
isReversed
public boolean isReversedReverse direction of world coord relative to local coord -
majortic
public double majorticmajor tic intervals -
minortic
public double minorticminor tic intervals -
type
public int typeaxis type identifier -
numTicLabelLayers
public int numTicLabelLayersmax number of tic label layers. -1 is unrestricted. Most important for time series axis. -
actmax
public double actmax -
actmin
public double actmin -
automax
public boolean automax -
automin
public boolean automin -
autoviewmax
public boolean autoviewmax -
autoviewmin
public boolean autoviewmin -
autocomputeMajorTics
public boolean autocomputeMajorTics -
autocomputeMinorTics
public boolean autocomputeMinorTics -
ratingFunction
public double[][] ratingFunction -
rateData
public boolean rateData -
swapAxis
public boolean swapAxis -
canSwapAxis
public boolean canSwapAxis
-
-
Constructor Details
-
AxisProp
public AxisProp()Default Constructor -
AxisProp
Copy Constructor
-
-
Method Details
-
canSwapXYAxis
public boolean canSwapXYAxis()- Specified by:
canSwapXYAxis
in interfaceScaleProperties
-
swapXYAxis
public boolean swapXYAxis()- Specified by:
swapXYAxis
in interfaceScaleProperties
-
setSwapXYAxis
public void setSwapXYAxis(boolean b) - Specified by:
setSwapXYAxis
in interfaceScaleProperties
-
writeProperties
-
readProperties
-
readRatingFunction
-
getClone
-
set
-
getMajorTicInterval
public double getMajorTicInterval()Description copied from interface:ScaleProperties
Returns the interval between the minor tics- Specified by:
getMajorTicInterval
in interfaceScaleProperties
-
getMaxScaleValue
public double getMaxScaleValue()Description copied from interface:ScaleProperties
Gets the maximum value for an axis scale. The axis is bounded on the top by the maximum scale value- Specified by:
getMaxScaleValue
in interfaceScaleProperties
-
getMinScaleValue
public double getMinScaleValue()Description copied from interface:ScaleProperties
Gets the minimum value for an Axis Scale. The scale for an axis is bounded on the bottom by the minimum scale value- Specified by:
getMinScaleValue
in interfaceScaleProperties
- See Also:
-
getMinorTicInterval
public double getMinorTicInterval()Description copied from interface:ScaleProperties
Retruns the interval between the major tics- Specified by:
getMinorTicInterval
in interfaceScaleProperties
-
setMajorTicInterval
public void setMajorTicInterval(double interval) Description copied from interface:ScaleProperties
Sets the spacing between the minor tics- Specified by:
setMajorTicInterval
in interfaceScaleProperties
- Parameters:
interval
- The spacing to use between minor tics
-
setMaxScaleValue
public void setMaxScaleValue(double val) - Specified by:
setMaxScaleValue
in interfaceScaleProperties
-
setMinScaleValue
public void setMinScaleValue(double val) Description copied from interface:ScaleProperties
Sets the new minimum scale value for an axis. This either limits or extends the minimum value for the axis- Specified by:
setMinScaleValue
in interfaceScaleProperties
-
setMinorTicInterval
public void setMinorTicInterval(double interval) Description copied from interface:ScaleProperties
Sets the spacing between each of the Major Tics- Specified by:
setMinorTicInterval
in interfaceScaleProperties
- Parameters:
interval
- the interval to use for the major tics
-
setActualMaxScaleValue
public void setActualMaxScaleValue(double val) - Specified by:
setActualMaxScaleValue
in interfaceScaleProperties
-
setActualMinScaleValue
public void setActualMinScaleValue(double val) - Specified by:
setActualMinScaleValue
in interfaceScaleProperties
-
getActualMinScaleValue
public double getActualMinScaleValue()Description copied from interface:ScaleProperties
Returns the current min scale value. This value represents the mininum value of the current view. This value must be greater than the minimum scale value- Specified by:
getActualMinScaleValue
in interfaceScaleProperties
-
getActualMaxScaleValue
public double getActualMaxScaleValue()Description copied from interface:ScaleProperties
Returns the current maximum scale value of the current view. This number must be less than the maximum scale value and greater than the Actual Min Scale value.- Specified by:
getActualMaxScaleValue
in interfaceScaleProperties
-
isAutomaticMin
public boolean isAutomaticMin()- Specified by:
isAutomaticMin
in interfaceScaleProperties
-
isAutomaticMax
public boolean isAutomaticMax()- Specified by:
isAutomaticMax
in interfaceScaleProperties
-
setAutomaticMin
public void setAutomaticMin(boolean m) - Specified by:
setAutomaticMin
in interfaceScaleProperties
-
setAutomaticMax
public void setAutomaticMax(boolean m) - Specified by:
setAutomaticMax
in interfaceScaleProperties
-
isAutomaticViewMax
public boolean isAutomaticViewMax()- Specified by:
isAutomaticViewMax
in interfaceScaleProperties
-
isAutomaticViewMin
public boolean isAutomaticViewMin()- Specified by:
isAutomaticViewMin
in interfaceScaleProperties
-
setAutomaticViewMax
public void setAutomaticViewMax(boolean m) - Specified by:
setAutomaticViewMax
in interfaceScaleProperties
-
setAutomaticViewMin
public void setAutomaticViewMin(boolean m) - Specified by:
setAutomaticViewMin
in interfaceScaleProperties
-
isReversed
public boolean isReversed()- Specified by:
isReversed
in interfaceScaleProperties
-
setReversed
public void setReversed(boolean m) - Specified by:
setReversed
in interfaceScaleProperties
-
isAutoComputeMajorTics
public boolean isAutoComputeMajorTics()- Specified by:
isAutoComputeMajorTics
in interfaceScaleProperties
-
isAutoComputeMinorTics
public boolean isAutoComputeMinorTics()- Specified by:
isAutoComputeMinorTics
in interfaceScaleProperties
-
setAutoComputeMajorTics
public void setAutoComputeMajorTics(boolean m) - Specified by:
setAutoComputeMajorTics
in interfaceScaleProperties
-
setAutoComputeMinorTics
public void setAutoComputeMinorTics(boolean m) - Specified by:
setAutoComputeMinorTics
in interfaceScaleProperties
-
getNumTicLevels
public int getNumTicLevels()- Specified by:
getNumTicLevels
in interfaceScaleProperties
-
setNumTicLevels
public void setNumTicLevels(int level) - Specified by:
setNumTicLevels
in interfaceScaleProperties
-
getFieldObject
Description copied from interface:FieldAccessor
This method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObject
in interfaceFieldAccessor
- Parameters:
fld
- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessor
This allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObject
in interfaceFieldAccessor
- Parameters:
fld
- The java field object representing the member field to be setfobj
- The data to set in that field- Returns:
- returns true if successful
-