public abstract class BaseScale extends ScaleElement
filling, outline, RelativeCoordinates, RelativeStroke| Modifier | Constructor and Description |
|---|---|
protected |
BaseScale()
Initializes a new instance of the
BaseScale class. |
| Modifier and Type | Method and Description |
|---|---|
void |
addBaseScaleListener(BaseScaleListener listener) |
void |
beginInit() |
void |
endInit() |
FunctionDelegate |
getCustomFunction()
Gets the function to be used for distribution of values along the scale when
FunctionType is set to Custom. |
Brush |
getEffectiveFill(RenderContext context) |
Pen |
getEffectiveStroke(RenderContext context) |
Length |
getEndWidth()
Gets the width of the scale bar at its end.
|
double |
getFunctionArgument()
Gets the argument passed to custom functions.
|
FunctionType |
getFunctionType()
Gets the type of the function used to calculate the distribution of values along the scale.
|
double |
getLogarithmBase()
Gets the logarithm base when
FunctionType
is set to Logarithmic. |
MajorTickSettings |
getMajorTickSettings()
Gets the settings for the major ticks and their associated labels.
|
double |
getMaxValue()
Gets the maximal value displayed by the scale.
|
MiddleTickSettings |
getMiddleTickSettings()
Gets the settings for the middle ticks and their associated labels.
|
MinorTickSettings |
getMinorTickSettings()
Gets the settings for the minor ticks and their associated labels.
|
double |
getMinValue()
Gets the minimal value displayed by the scale.
|
com.mindfusion.common.ObservableList<Pointer> |
getPointers()
Gets a collection with the pointers displayed in the scale.
|
com.mindfusion.common.ObservableList<Range> |
getRanges()
Gets a collection with the ranges displayed in the scale.
|
FunctionDelegate |
getReversedCustomFunction()
Gets the reversed version of the function specified through
CustomFunction. |
com.mindfusion.common.ObservableList<ScaleElement> |
getScaleChildren()
Gets a collection with elements displayed in the scale.
|
Length |
getStartWidth()
Gets the width of the scale bar at its beginning.
|
abstract double |
getValueFromPoint(java.awt.geom.Point2D point)
Returns the value corresponding to the specified point.
|
protected void |
onPointerClicked(GaugeMouseEvent e)
Raises the
pointerClicked event. |
protected void |
onQueryLabelValue(QueryLabelValueEvent e)
Raises the
queryLabelValue event. |
protected void |
onScaleGeometryClicked(GaugeMouseEvent e)
Raises the
scaleGeometryClicked event. |
void |
removeBaseScaleListener(BaseScaleListener listener) |
void |
setCustomFunction(FunctionDelegate value)
Sets the function to be used for distribution of values along the scale when
FunctionType is set to Custom. |
void |
setEndWidth(Length value)
Sets the width of the scale bar at its end.
|
void |
setFunctionArgument(double value)
Sets the argument passed to custom functions.
|
void |
setFunctionType(FunctionType value)
Sets the type of the function used to calculate the distribution of values along the scale.
|
void |
setLogarithmBase(double value)
Sets the logarithm base when
FunctionType
is set to Logarithmic. |
void |
setMajorTickSettings(MajorTickSettings value)
Sets the settings for the major ticks and their associated labels.
|
void |
setMaxValue(double value)
Sets the maximal value displayed by the scale.
|
void |
setMiddleTickSettings(MiddleTickSettings value)
Sets the settings for the middle ticks and their associated labels.
|
void |
setMinorTickSettings(MinorTickSettings value)
Sets the settings for the minor ticks and their associated labels.
|
void |
setMinValue(double value)
Sets the minimal value displayed by the scale.
|
void |
setPointers(com.mindfusion.common.ObservableList<Pointer> value)
Sets a collection with the pointers displayed in the scale.
|
void |
setRanges(com.mindfusion.common.ObservableList<Range> value)
Sets a collection with the ranges displayed in the scale.
|
void |
setReversedCustomFunction(FunctionDelegate value)
Sets the reversed version of the function specified through
CustomFunction. |
void |
setScaleChildren(com.mindfusion.common.ObservableList<ScaleElement> value)
Sets a collection with elements displayed in the scale.
|
void |
setStartWidth(Length value)
Sets the width of the scale bar at its beginning.
|
addScaleElementListener, hitTest, onClicked, removeScaleElementListenerarrange, draw, hitTestObj, measureaddVisualElementListener, getFill, getMargin, getName, getStroke, onInvalidated, onPostpaint, onPrepaint, onQueryAmbientPropertyValue, removeVisualElementListener, setFill, setMargin, setName, setStroke, toStringadd, associateJComponent, createController, dissociateJComponent, effectiveMeasuredHeight, effectiveMeasuredWidth, getActualHeight, getActualWidth, getDesiredHeight, getDesiredWidth, getGridColumn, getGridRow, getHeight, getHitTestVisibility, getHorizontalAlignment, getParent, getRectInParent, getToolTip, getVerticalAlignment, getVisibility, getWidth, getXInParent, getYInParent, invalidate, invalidate, invalidate, invalidateLayout, invalidateLayout, localToRoot, rootToLocal, setActualHeight, setActualWidth, setDesiredHeight, setDesiredWidth, setGridColumn, setGridRow, setHeight, setHitTestVisibility, setHorizontalAlignment, setParent, setToolTip, setVerticalAlignment, setVisibility, setWidth, setXInParent, setYInParent, visitprotected BaseScale()
BaseScale class.public void beginInit()
public void endInit()
public abstract double getValueFromPoint(java.awt.geom.Point2D point)
public Brush getEffectiveFill(RenderContext context)
getEffectiveFill in class VisualElementpublic Pen getEffectiveStroke(RenderContext context)
public void addBaseScaleListener(BaseScaleListener listener)
public void removeBaseScaleListener(BaseScaleListener listener)
protected void onPointerClicked(GaugeMouseEvent e)
pointerClicked event.e - An object, containing the event data.protected void onScaleGeometryClicked(GaugeMouseEvent e)
scaleGeometryClicked event.e - An object, containing the event data.protected void onQueryLabelValue(QueryLabelValueEvent e)
queryLabelValue event.e - An object, containing the event data.public com.mindfusion.common.ObservableList<Pointer> getPointers()
public void setPointers(com.mindfusion.common.ObservableList<Pointer> value)
public com.mindfusion.common.ObservableList<Range> getRanges()
public void setRanges(com.mindfusion.common.ObservableList<Range> value)
public com.mindfusion.common.ObservableList<ScaleElement> getScaleChildren()
public void setScaleChildren(com.mindfusion.common.ObservableList<ScaleElement> value)
public double getMinValue()
public void setMinValue(double value)
public double getMaxValue()
public void setMaxValue(double value)
public MajorTickSettings getMajorTickSettings()
public void setMajorTickSettings(MajorTickSettings value)
public MiddleTickSettings getMiddleTickSettings()
public void setMiddleTickSettings(MiddleTickSettings value)
public MinorTickSettings getMinorTickSettings()
public void setMinorTickSettings(MinorTickSettings value)
public Length getStartWidth()
public void setStartWidth(Length value)
public Length getEndWidth()
public void setEndWidth(Length value)
public FunctionType getFunctionType()
public void setFunctionType(FunctionType value)
public double getFunctionArgument()
public void setFunctionArgument(double value)
public double getLogarithmBase()
FunctionType
is set to Logarithmic.public void setLogarithmBase(double value)
FunctionType
is set to Logarithmic.public FunctionDelegate getCustomFunction()
FunctionType is set to Custom.public void setCustomFunction(FunctionDelegate value)
FunctionType is set to Custom.public FunctionDelegate getReversedCustomFunction()
CustomFunction.public void setReversedCustomFunction(FunctionDelegate value)
CustomFunction.