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 TypeFieldDescriptiondoubledoublebooleanbooleanbooleanbooleanbooleanbooleanbooleanstatic final booleanbooleanboolean that states if min/max are defaults or real limitsbooleanReverse direction of world coord relative to local coorddoublemajor tic intervalsdoublemaximum limit of the axisdoubleminimum limit of the axisdoubleminor tic intervalsintmax number of tic label layers.booleandouble[][]booleanintaxis type identifier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandoubleReturns the current maximum scale value of the current view.doubleReturns the current min scale value.getClone()getFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.doubleReturns the interval between the minor ticsdoubleGets the maximum value for an axis scale.doubleRetruns the interval between the major ticsdoubleGets the minimum value for an Axis Scale.intbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidreadProperties(BufferedReader in, String endTag) voidreadRatingFunction(BufferedReader reader, String line) voidvoidsetActualMaxScaleValue(double val) voidsetActualMinScaleValue(double val) voidsetAutoComputeMajorTics(boolean m) voidsetAutoComputeMinorTics(boolean m) voidsetAutomaticMax(boolean m) voidsetAutomaticMin(boolean m) voidsetAutomaticViewMax(boolean m) voidsetAutomaticViewMin(boolean m) booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidsetMajorTicInterval(double interval) Sets the spacing between the minor ticsvoidsetMaxScaleValue(double val) voidsetMinorTicInterval(double interval) Sets the spacing between each of the Major TicsvoidsetMinScaleValue(double val) Sets the new minimum scale value for an axis.voidsetNumTicLevels(int level) voidsetReversed(boolean m) voidsetSwapXYAxis(boolean b) booleanvoidwriteProperties(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:
canSwapXYAxisin interfaceScaleProperties
-
swapXYAxis
public boolean swapXYAxis()- Specified by:
swapXYAxisin interfaceScaleProperties
-
setSwapXYAxis
public void setSwapXYAxis(boolean b) - Specified by:
setSwapXYAxisin interfaceScaleProperties
-
writeProperties
-
readProperties
-
readRatingFunction
-
getClone
-
set
-
getMajorTicInterval
public double getMajorTicInterval()Description copied from interface:ScalePropertiesReturns the interval between the minor tics- Specified by:
getMajorTicIntervalin interfaceScaleProperties
-
getMaxScaleValue
public double getMaxScaleValue()Description copied from interface:ScalePropertiesGets the maximum value for an axis scale. The axis is bounded on the top by the maximum scale value- Specified by:
getMaxScaleValuein interfaceScaleProperties
-
getMinScaleValue
public double getMinScaleValue()Description copied from interface:ScalePropertiesGets the minimum value for an Axis Scale. The scale for an axis is bounded on the bottom by the minimum scale value- Specified by:
getMinScaleValuein interfaceScaleProperties- See Also:
-
getMinorTicInterval
public double getMinorTicInterval()Description copied from interface:ScalePropertiesRetruns the interval between the major tics- Specified by:
getMinorTicIntervalin interfaceScaleProperties
-
setMajorTicInterval
public void setMajorTicInterval(double interval) Description copied from interface:ScalePropertiesSets the spacing between the minor tics- Specified by:
setMajorTicIntervalin interfaceScaleProperties- Parameters:
interval- The spacing to use between minor tics
-
setMaxScaleValue
public void setMaxScaleValue(double val) - Specified by:
setMaxScaleValuein interfaceScaleProperties
-
setMinScaleValue
public void setMinScaleValue(double val) Description copied from interface:ScalePropertiesSets the new minimum scale value for an axis. This either limits or extends the minimum value for the axis- Specified by:
setMinScaleValuein interfaceScaleProperties
-
setMinorTicInterval
public void setMinorTicInterval(double interval) Description copied from interface:ScalePropertiesSets the spacing between each of the Major Tics- Specified by:
setMinorTicIntervalin interfaceScaleProperties- Parameters:
interval- the interval to use for the major tics
-
setActualMaxScaleValue
public void setActualMaxScaleValue(double val) - Specified by:
setActualMaxScaleValuein interfaceScaleProperties
-
setActualMinScaleValue
public void setActualMinScaleValue(double val) - Specified by:
setActualMinScaleValuein interfaceScaleProperties
-
getActualMinScaleValue
public double getActualMinScaleValue()Description copied from interface:ScalePropertiesReturns 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:
getActualMinScaleValuein interfaceScaleProperties
-
getActualMaxScaleValue
public double getActualMaxScaleValue()Description copied from interface:ScalePropertiesReturns 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:
getActualMaxScaleValuein interfaceScaleProperties
-
isAutomaticMin
public boolean isAutomaticMin()- Specified by:
isAutomaticMinin interfaceScaleProperties
-
isAutomaticMax
public boolean isAutomaticMax()- Specified by:
isAutomaticMaxin interfaceScaleProperties
-
setAutomaticMin
public void setAutomaticMin(boolean m) - Specified by:
setAutomaticMinin interfaceScaleProperties
-
setAutomaticMax
public void setAutomaticMax(boolean m) - Specified by:
setAutomaticMaxin interfaceScaleProperties
-
isAutomaticViewMax
public boolean isAutomaticViewMax()- Specified by:
isAutomaticViewMaxin interfaceScaleProperties
-
isAutomaticViewMin
public boolean isAutomaticViewMin()- Specified by:
isAutomaticViewMinin interfaceScaleProperties
-
setAutomaticViewMax
public void setAutomaticViewMax(boolean m) - Specified by:
setAutomaticViewMaxin interfaceScaleProperties
-
setAutomaticViewMin
public void setAutomaticViewMin(boolean m) - Specified by:
setAutomaticViewMinin interfaceScaleProperties
-
isReversed
public boolean isReversed()- Specified by:
isReversedin interfaceScaleProperties
-
setReversed
public void setReversed(boolean m) - Specified by:
setReversedin interfaceScaleProperties
-
isAutoComputeMajorTics
public boolean isAutoComputeMajorTics()- Specified by:
isAutoComputeMajorTicsin interfaceScaleProperties
-
isAutoComputeMinorTics
public boolean isAutoComputeMinorTics()- Specified by:
isAutoComputeMinorTicsin interfaceScaleProperties
-
setAutoComputeMajorTics
public void setAutoComputeMajorTics(boolean m) - Specified by:
setAutoComputeMajorTicsin interfaceScaleProperties
-
setAutoComputeMinorTics
public void setAutoComputeMinorTics(boolean m) - Specified by:
setAutoComputeMinorTicsin interfaceScaleProperties
-
getNumTicLevels
public int getNumTicLevels()- Specified by:
getNumTicLevelsin interfaceScaleProperties
-
setNumTicLevels
public void setNumTicLevels(int level) - Specified by:
setNumTicLevelsin interfaceScaleProperties
-
getFieldObject
Description copied from interface:FieldAccessorThis method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObjectin interfaceFieldAccessor- Parameters:
fld- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessorThis allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObjectin 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
-