public class Range extends ScaleElement
filling, outline, RelativeCoordinates, RelativeStroke| Constructor and Description |
|---|
Range()
Initializes a new instance of the
Range class. |
| Modifier and Type | Method and Description |
|---|---|
void |
arrange(double x,
double y,
double w,
double h,
RenderContext context)
Sets the location and size of this component relative to its parent.
|
Alignment |
getAlignment()
Gets the alignment of this range relative to the scale it is associated with.
|
boolean |
getAutoSize()
Gets a value indicating whether the start and end width of the
range will be automatically adjusted to match the width of the scale.
|
boolean |
getCapEnd()
Gets a value indicating whether to draw a stroke the beginning of this range.
|
boolean |
getCapStart()
Gets a value indicating whether to draw a stroke the beginning of this range.
|
Length |
getEndWidth()
Gets the width of this range at its end.
|
double |
getMaxValue()
Gets the end value of this range.
|
double |
getMinValue()
Gets the start value of this range.
|
Length |
getOffset()
Gets the offset of the range from the position calculated according to its alignment.
|
Length |
getStartWidth()
Gets the width of this range at its start.
|
boolean |
getStrokeInside()
Gets a value indicating whether to draw a stroke at the inside of this range.
|
boolean |
getStrokeOutside()
Gets a value indicating whether to draw a stroke at the outside of this range.
|
boolean |
hitTestObj(java.awt.geom.Point2D p)
Checks whether the specified point lies within the visual element.
|
void |
measure(double maxWidth,
double maxHeight,
RenderContext context)
Measures the desired size of this component.
|
void |
setAlignment(Alignment value)
Sets the alignment of this range relative to the scale it is associated with.
|
void |
setAutoSize(boolean value)
Sets a value indicating whether the start and end width of the
range will be automatically adjusted to match the width of the scale.
|
void |
setCapEnd(boolean value)
Sets a value indicating whether to draw a stroke the beginning of this range.
|
void |
setCapStart(boolean value)
Sets a value indicating whether to draw a stroke the beginning of this range.
|
void |
setEndWidth(Length value)
Sets the width of this range at its end.
|
void |
setMaxValue(double value)
Sets the end value of this range.
|
void |
setMinValue(double value)
Sets the start value of this range.
|
void |
setOffset(Length value)
Sets the offset of the range from the position calculated according to its alignment.
|
void |
setStartWidth(Length value)
Sets the width of this range at its start.
|
void |
setStrokeInside(boolean value)
Sets a value indicating whether to draw a stroke at the inside of this range.
|
void |
setStrokeOutside(boolean value)
Sets a value indicating whether to draw a stroke at the outside of this range.
|
addScaleElementListener, hitTest, onClicked, removeScaleElementListenerdrawaddVisualElementListener, getEffectiveFill, 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 Range()
Range 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 arrange(double x,
double y,
double w,
double h,
RenderContext context)
VisualElementarrange in class VisualElementContainerx - A double value specifying horizontal position.y - A double value specifying vertical position.w - A double value specifying the component's width.h - A double value specifying the component's height.context - A RenderContext instance.public boolean hitTestObj(java.awt.geom.Point2D p)
VisualElementhitTestObj in class VisualElementContainerpublic double getMinValue()
public void setMinValue(double value)
public double getMaxValue()
public void setMaxValue(double value)
public Alignment getAlignment()
public void setAlignment(Alignment value)
public Length getStartWidth()
public void setStartWidth(Length value)
public Length getEndWidth()
public void setEndWidth(Length value)
public Length getOffset()
public void setOffset(Length value)
public boolean getCapStart()
public void setCapStart(boolean value)
public boolean getCapEnd()
public void setCapEnd(boolean value)
public boolean getStrokeInside()
public void setStrokeInside(boolean value)
public boolean getStrokeOutside()
public void setStrokeOutside(boolean value)
public boolean getAutoSize()
If this property is set to true the values of StartWidth
and EndWidth properties are ignored.
public void setAutoSize(boolean value)
If this property is set to true the values of StartWidth
and EndWidth properties are ignored.