public class RangeSliderRailComponent extends ContainerComponent
eventListenerList
Constructor and Description |
---|
RangeSliderRailComponent() |
Modifier and Type | Method and Description |
---|---|
void |
addSliderListener(SliderListener listener) |
void |
arrangeComponents(java.awt.geom.Rectangle2D.Float availableSpace,
java.awt.Graphics2D g2d)
ContentComponent.arrangeComponents override.
|
void |
draw(java.awt.Graphics2D g2d,
RenderOptions options)
ComponentBase.draw override.
|
protected void |
fireOnBatchValueChanged(ValueChangedEventArgs<java.lang.Float> e) |
protected void |
fireOnEndValueChanged(ValueChangedEventArgs<java.lang.Float> e) |
protected void |
fireOnStartValueChanged(ValueChangedEventArgs<java.lang.Float> e) |
CursorHint |
getCursor(java.awt.geom.Point2D point)
ComponentBase.getCursor override.
|
XDimension2D.Double |
getDesiredSize(XDimension2D.Double availableSize,
java.awt.Graphics2D g2d)
ContentComponent.GetDesiredSize override.
|
float |
getEndValue()
Gets the currently selected end value.
|
float |
getMaximum()
Gets the maximum value of the rail.
|
float |
getMinimum()
Gets the minimum value of the rail.
|
Brush |
getRailBrush()
Gets the brush used to fill the rail.
|
Pen |
getRailPen()
Gets the pen used to draw the rail outline.
|
float |
getRailThickness()
Gets the rail thickness.
|
float |
getStartValue()
Gets the currently selected start value.
|
Brush |
getThumbBrush()
Gets the brush of the rail's thumbs.
|
Pen |
getThumbPen()
Gets the border pen of the rail's thumbs.
|
float |
getTickSize()
Gets the size of the tick in the middle of the rail.
|
Brush |
getValueBrush()
Gets the brush used to fill the portion of the rail between
StartValue and EndValue.
|
void |
onMouseDown(java.awt.geom.Point2D point)
ComponentBase.onMouseDown override.
|
void |
onMouseMove(java.awt.geom.Point2D point)
ComponentBase.onMouseMove override.
|
void |
onMouseUp(java.awt.geom.Point2D point)
ComponentBase.onMouseUp override.
|
void |
removeSliderListener(SliderListener listener) |
protected boolean |
serializeSubcomponents()
ComponentBase.serializeSubcomponents override.
|
void |
setEndValue(float value)
Sets the currently selected end value.
|
void |
setMaximum(float value)
Sets the maximum value of the rail.
|
void |
setMinimum(float value)
Sets the minimum value of the rail.
|
void |
setRailBrush(Brush value)
Sets the brush used to fill the rail.
|
void |
setRailPen(Pen value)
Sets the pen used to draw the rail outline.
|
void |
setRailThickness(float value)
Sets the rail thickness.
|
void |
setStartValue(float value)
Sets the currently selected start value.
|
void |
setThumbBrush(Brush value)
Sets the brush of the rail's thumbs.
|
void |
setThumbPen(Pen value)
Sets the border pen of the rail's thumbs.
|
void |
setTickSize(float value)
Sets the size of the tick in the middle of the rail.
|
void |
setValueBrush(Brush value)
Sets the brush used to fill the portion of the rail between
StartValue and EndValue.
|
accept, addChild, getChildCount, getComponents, loadComponents, loadComponents, loadFromJson, loadFromXml, readExternal, saveComponents, saveComponents, saveToJson, saveToXml, writeExternal
addComponentEventListener, addComponentMouseEventListener, addComponentValidationEventListener, confirmValidating, contains, createOutlinePath, find, getBounds, getDocumentBounds, getFocusable, getGridColumn, getGridRow, getHeight, getHorizontalAlignment, getIsEnabled, getIsFocused, getIsHitTestVisible, getIsInteractive, getName, getParent, getParentHost, getVerticalAlignment, getVisible, getWidth, invalidate, invalidateLayout, onAddedToParent, onContextChanged, onGotFocus, onGotFocus, onKeyDown, onKeyPress, onKeyUp, onLostFocus, onLostFocus, onMouseDown, onMouseMove, onMouseUp, onRemovedFromParent, onUnitChanged, onValidated, onValidating, onZoomChanged, raiseValidated, removeComponentEventListener, removeComponentMouseEventListener, removeComponentValidationEventListener, setBounds, setFocusable, setGridColumn, setGridRow, setHeight, setHorizontalAlignment, setIsEnabled, setIsFocused, setIsHitTestVisible, setIsInteractive, setName, setParent, setVerticalAlignment, setVisible, setWidth, toDocument, toLocal, toParent
protected boolean serializeSubcomponents()
serializeSubcomponents
in class ComponentBase
public void draw(java.awt.Graphics2D g2d, RenderOptions options)
draw
in class ContainerComponent
g2d
- The drawing target.options
- A RenderOptions object specifying the drawing context.public void arrangeComponents(java.awt.geom.Rectangle2D.Float availableSpace, java.awt.Graphics2D g2d)
arrangeComponents
in class ContainerComponent
availableSpace
- The space available for arrangement.g2d
- A relevant Graphics2D object.public void onMouseDown(java.awt.geom.Point2D point)
onMouseDown
in class ComponentBase
point
- A Point2D.Float instance that specifies the current mouse position.public void onMouseMove(java.awt.geom.Point2D point)
onMouseMove
in class ComponentBase
point
- A Point2D.Float instance that specifies the current mouse position.public void onMouseUp(java.awt.geom.Point2D point)
onMouseUp
in class ComponentBase
point
- A Point2D.Float instance that specifies the current mouse position.public XDimension2D.Double getDesiredSize(XDimension2D.Double availableSize, java.awt.Graphics2D g2d)
getDesiredSize
in class ComponentBase
availableSize
- The available size.g2d
- A relevant Graphics2D object.public CursorHint getCursor(java.awt.geom.Point2D point)
getCursor
in class ComponentBase
point
- A Point2D.Float instance that specifies the current mouse position, in document coordinates.protected void fireOnStartValueChanged(ValueChangedEventArgs<java.lang.Float> e)
protected void fireOnEndValueChanged(ValueChangedEventArgs<java.lang.Float> e)
protected void fireOnBatchValueChanged(ValueChangedEventArgs<java.lang.Float> e)
public void addSliderListener(SliderListener listener)
public void removeSliderListener(SliderListener listener)
public Pen getRailPen()
public void setRailPen(Pen value)
public Brush getRailBrush()
public void setRailBrush(Brush value)
public float getRailThickness()
public void setRailThickness(float value)
public float getTickSize()
public void setTickSize(float value)
public float getMinimum()
public void setMinimum(float value)
public float getMaximum()
public void setMaximum(float value)
public float getStartValue()
public void setStartValue(float value)
public float getEndValue()
public void setEndValue(float value)
public Brush getValueBrush()
public void setValueBrush(Brush value)
public Brush getThumbBrush()
public void setThumbBrush(Brush value)
public Pen getThumbPen()
public void setThumbPen(Pen value)