public class LinearScale extends BaseScale
filling, outline, RelativeCoordinates, RelativeStroke| Constructor and Description |
|---|
LinearScale()
Initializes a new instance of the
LinearScale class. |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(RenderContext context)
Draws this component in specified
RenderContext. |
Length |
getLeft()
Gets the distance between the left of this scale and the left of its container.
|
com.mindfusion.common.Orientation |
getOrientation()
Gets the orientation of the scale.
|
Alignment |
getScaleAlignment()
Gets the alignment of the scale.
|
Length |
getScaleLength()
Gets the length of the scale.
|
Length |
getTop()
Gets the distance between the top of the scale and the top of its container.
|
double |
getValueFromPoint(java.awt.geom.Point2D point)
Returns the value corresponding to the specified point.
|
void |
measure(double maxWidth,
double maxHeight,
RenderContext context)
Measures the desired size of this component.
|
void |
setLeft(Length value)
Sets the distance between the left of this scale and the left of its container.
|
void |
setOrientation(com.mindfusion.common.Orientation value)
Sets the orientation of the scale.
|
void |
setScaleAlignment(Alignment value)
Sets the alignment of the scale.
|
void |
setScaleLength(Length value)
Sets the length of the scale.
|
void |
setTop(Length value) |
addBaseScaleListener, beginInit, endInit, getCustomFunction, getEffectiveFill, getEffectiveStroke, getEndWidth, getFunctionArgument, getFunctionType, getLogarithmBase, getMajorTickSettings, getMaxValue, getMiddleTickSettings, getMinorTickSettings, getMinValue, getPointers, getRanges, getReversedCustomFunction, getScaleChildren, getStartWidth, onPointerClicked, onQueryLabelValue, onScaleGeometryClicked, removeBaseScaleListener, setCustomFunction, setEndWidth, setFunctionArgument, setFunctionType, setLogarithmBase, setMajorTickSettings, setMaxValue, setMiddleTickSettings, setMinorTickSettings, setMinValue, setPointers, setRanges, setReversedCustomFunction, setScaleChildren, setStartWidthaddScaleElementListener, hitTest, onClicked, removeScaleElementListenerarrange, hitTestObjaddVisualElementListener, 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, visitpublic LinearScale()
LinearScale class.public void measure(double maxWidth,
double maxHeight,
RenderContext context)
VisualElementmeasure in class VisualElementContainermaxWidth - The maximum width provided by parent component.maxHeight - The maximum height provided by parent component.context - A RenderContext instance.public void draw(RenderContext context)
VisualElementContainerRenderContext.draw in class VisualElementContainercontext - A RenderContext instance.public double getValueFromPoint(java.awt.geom.Point2D point)
getValueFromPoint in class BaseScalepoint - The point to test.MinValue
or MaxValue if the specified point cannot be associated with a value.public Length getLeft()
public void setLeft(Length value)
public Length getTop()
public void setTop(Length value)
public Length getScaleLength()
public void setScaleLength(Length value)
public com.mindfusion.common.Orientation getOrientation()
public void setOrientation(com.mindfusion.common.Orientation value)
public Alignment getScaleAlignment()
All Inner* values align a vertical scale to the left side and a horizontal scale to the top side of the control. All Outer* values align a vertical scale to the right side and a horizontal scale to the bottom side of the control. All Center* values center the scale along its length.
public void setScaleAlignment(Alignment value)
All Inner* values align a vertical scale to the left side and a horizontal scale to the top side of the control. All Outer* values align a vertical scale to the right side and a horizontal scale to the bottom side of the control. All Center* values center the scale along its length.