Class JSliderShape
- java.lang.Object
-
- All Implemented Interfaces:
Archivable
,DeepChangeListener
,RMPropertyChanger
,RMTypes
,java.beans.PropertyChangeListener
,java.lang.Cloneable
,java.util.EventListener
public class JSliderShape extends JComponentShape
An RMShape subclass for JSlider.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypes
RMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
-
-
Field Summary
-
Fields inherited from class com.inductiveautomation.rm.shape.RMShape
BINDING_PROP_NAME, STROKE_BORDER, STROKE_DOUBLE, STROKE_HIDDEN, STROKE_SHAPE
-
-
Constructor Summary
Constructors Constructor Description JSliderShape()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configureComponent(JBuilder aBldr, javax.swing.JComponent aComp)
Configures the component.void
fromXMLShape(RXArchiver anArchiver, RXElement anElement)
XML unarchival.java.lang.Class<? extends javax.swing.JComponent>
getComponentClass()
Returns the component class for this component shape.int
getMajorTickSpacing()
Returns the major tick spacing.double
getMaximum()
Returns the maximum.double
getMinimum()
Returns the minimum.int
getMinorTickSpacing()
Returns the minor tick spacing.int
getOrientation()
Returns the orientation of the JSeparator.boolean
getPaintLabels()
Returns whether paints labels.boolean
getPaintTicks()
Returns whether paints ticks.boolean
getPaintTrack()
Returns whether paints track.boolean
getSnapToTicks()
Returns whether snaps to ticks.double
getValue()
Returns the value.void
setMajorTickSpacing(int aValue)
Sets the major tick spacing.void
setMaximum(double aValue)
Sets the maximum.void
setMinimum(double aValue)
Sets the minimum.void
setMinorTickSpacing(int aValue)
Sets the minor tick spacing.void
setOrientation(int aValue)
Resets the orientation of the separator component and resizes the shape.void
setPaintLabels(boolean aValue)
Sets whether paints labels.void
setPaintTicks(boolean aValue)
Sets whether paints ticks.void
setPaintTrack(boolean aValue)
Sets whether paints track.void
setSnapToTicks(boolean aValue)
Sets whether snaps to ticks.void
setValue(double aValue)
Sets the value.RXElement
toXMLShape(RXArchiver anArchiver)
XML archival.-
Methods inherited from class com.inductiveautomation.rm.swing.shape.JComponentShape
acceptsMouse, clone, createComponent, createComponentDeep, dispatchEventToComponent, firePropertyChange, getAction, getAutoscrolls, getBackground, getBorder, getClientProperty, getComponent, getFont, getForeground, getItemDisplayKey, getRealClassName, getSendActionOnFocusLost, getToolTipText, isEnabled, isFontSet, isOpaque, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, paintShape, putClientProperty, setAction, setAutoscrolls, setBackground, setBorder, setEnabled, setFont, setForeground, setItemDisplayKey, setOpaque, setRealClassName, setSendActionOnFocusLost, setToolTipText, toXMLChildren
-
Methods inherited from class com.inductiveautomation.rm.shape.RMParentShape
addChild, addChild, addChild, addChild, addLayoutChild, bringShapesToFront, cloneDeep, computePrefHeight, computePrefWidth, divideShapeFromTop, fromXML, fromXMLChildren, getBoundsOfChildren, getChild, getChildArray, getChildContaining, getChildCount, getChildLast, getChildren, getChildrenIntersecting, getChildrenWithClass, getChildrenWithClass, getChildWithClass, getChildWithName, getLayout, getNeedsLayout, getSourceURL, indexOfChild, isHittable, isShowing, isSourceURLSet, layout, layoutChildren, relayout, removeChild, removeChild, removeChildren, removeLayoutChild, rpgAll, rpgChildren, sendShapesToBack, setHeight, setLayout, setNeedsLayout, setSourceURL, setWidth, toXML
-
Methods inherited from class com.inductiveautomation.rm.shape.RMShape
acceptsChildren, addBinding, addBinding, addDeepChangeListener, addMouseListener, animUpdate, bounds, childrenSuperSelectImmediately, contains, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertedVectorFromShape, convertedVectorToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copyShape, createDivideShapeRemainder, deepChange, divideShapeFromEdge, get, get, getAlignment, getAlignmentX, getAlignmentY, getAncestor, getAncestorCount, getAncestorInCommon, getAnimator, getAnimator, getAutosizing, getAutosizingDefault, getBestHeight, getBestHeight, getBestWidth, getBestWidth, getBinding, getBinding, getBindingCount, getBindings, getBounds, getBoundsInside, getBoundsMarked, getBoundsMarkedDeep, getChildAnimator, getChildAnimator, getChildClipShape, getClipShape, getColor, getDashArrayString, getDashPhase, getDatasetEntity, getDatasetKey, getDisplayedFill, getDisplayedStroke, getDocument, getEffect, getEventAdapter, getFill, getFormat, getFrame, getFrameHeight, getFrameMaxX, getFrameMaxY, getFrameWidth, getFrameX, getFrameXY, getFrameY, getHeight, getHover, getLayoutInfo, getMaskPath, getMaxX, getMaxY, getMinHeight, getMinHeight, getMinWidth, getMinWidth, getName, getOpacity, getOpacityDeep, getOutline, getPageBreak, getPageBreakMax, getPageBreakPage, getPageBreakPageMax, getPageShape, getParent, getParent, getPath, getPathInBounds, getPrefHeight, getPrefHeight, getPrefWidth, getPrefWidth, getPropertyNameMapped, getPropertyNames, getPropertyNames, getRoll, getRootShape, getRSS, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSkewX, getSkewY, getStroke, getStrokeColor, getStrokeOnTop, getStrokeStyle, getStrokeWidth, getTextColor, getTimeline, getTimeline, getTransform, getTransformFromShape, getTransformInverse, getTransformToShape, getUndoer, getURL, getVisbileBounds, getVisibleBounds, getVisibleBounds, getVisibleBounds, getWidth, getX, getXY, getXYP, getY, height, indexOf, intersects, isAncestor, isAnimProperty, isDeletable, isDescendant, isEditing, isEnabled, isHittable, isLocked, isMinHeightSet, isMinWidthSet, isPrefHeightSet, isPrefWidthSet, isRoot, isRSS, isShowing, isUnderlined, isUseFill, isUseStroke, isViewing, isVisible, offsetXY, page, pageMax, paint, paintShapeAll, paintShapeChildren, paintShapeOver, propertyChange, put, removeBinding, removeBinding, removeDeepChangeListener, removeFromParent, removeMouseListener, repaint, repaint, resolvePageReferences, rpgBindings, rpgShape, setAlignment, setAlignmentX, setAlignmentY, setAutosizing, setBestHeight, setBestSize, setBounds, setBounds, setColor, setDashArrayString, setDashPhase, setEffect, setEnabled, setFill, setFormat, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHover, setLayoutInfo, setLocked, setMinHeight, setMinSize, setMinWidth, setName, setOpacity, setOutline, setParent, setPrefHeight, setPrefWidth, setRoll, setScaleX, setScaleXY, setScaleY, setShowing, setSize, setSize, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setStrokeStyle, setStrokeWidth, setTextColor, setTime, setTimeline, setUnderlined, setURL, setUseFill, setUseStroke, setVisible, setX, setXY, setXY, setXYP, setY, shapeHidden, shapeShown, superSelectable, toString, undoerDisable, undoerEnable, undoerSetUndoTitle, width, x, y
-
Methods inherited from class com.inductiveautomation.rm.base.RMObject
addPropertyChangeListener, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
-
Methods inherited from class com.inductiveautomation.rm.base.RMListenerList
addListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
-
-
-
-
Method Detail
-
getMinimum
public double getMinimum()
Returns the minimum.
-
setMinimum
public void setMinimum(double aValue)
Sets the minimum.
-
getMaximum
public double getMaximum()
Returns the maximum.
-
setMaximum
public void setMaximum(double aValue)
Sets the maximum.
-
getValue
public double getValue()
Returns the value.
-
setValue
public void setValue(double aValue)
Sets the value.
-
getPaintLabels
public boolean getPaintLabels()
Returns whether paints labels.
-
setPaintLabels
public void setPaintLabels(boolean aValue)
Sets whether paints labels.
-
getPaintTicks
public boolean getPaintTicks()
Returns whether paints ticks.
-
setPaintTicks
public void setPaintTicks(boolean aValue)
Sets whether paints ticks.
-
getPaintTrack
public boolean getPaintTrack()
Returns whether paints track.
-
setPaintTrack
public void setPaintTrack(boolean aValue)
Sets whether paints track.
-
getSnapToTicks
public boolean getSnapToTicks()
Returns whether snaps to ticks.
-
setSnapToTicks
public void setSnapToTicks(boolean aValue)
Sets whether snaps to ticks.
-
getMinorTickSpacing
public int getMinorTickSpacing()
Returns the minor tick spacing.
-
setMinorTickSpacing
public void setMinorTickSpacing(int aValue)
Sets the minor tick spacing.
-
getMajorTickSpacing
public int getMajorTickSpacing()
Returns the major tick spacing.
-
setMajorTickSpacing
public void setMajorTickSpacing(int aValue)
Sets the major tick spacing.
-
getOrientation
public int getOrientation()
Returns the orientation of the JSeparator.
-
setOrientation
public void setOrientation(int aValue)
Resets the orientation of the separator component and resizes the shape.
-
getComponentClass
public java.lang.Class<? extends javax.swing.JComponent> getComponentClass()
Returns the component class for this component shape.- Overrides:
getComponentClass
in classJComponentShape
-
configureComponent
protected void configureComponent(JBuilder aBldr, javax.swing.JComponent aComp)
Configures the component.- Overrides:
configureComponent
in classJComponentShape
-
toXMLShape
public RXElement toXMLShape(RXArchiver anArchiver)
XML archival.- Overrides:
toXMLShape
in classJComponentShape
-
fromXMLShape
public void fromXMLShape(RXArchiver anArchiver, RXElement anElement)
XML unarchival.- Overrides:
fromXMLShape
in classJComponentShape
-
-