Class RJThumbWheelShape
- java.lang.Object
-
- com.inductiveautomation.rm.base.RMListenerList
-
- com.inductiveautomation.rm.base.RMObject
-
- com.inductiveautomation.rm.shape.RMShape
-
- com.inductiveautomation.rm.shape.RMParentShape
-
- com.inductiveautomation.rm.swing.shape.JComponentShape
-
- com.inductiveautomation.rm.swing.shape.RJThumbWheelShape
-
- All Implemented Interfaces:
Archivable
,DeepChangeListener
,RMPropertyChanger
,RMTypes
,java.beans.PropertyChangeListener
,java.lang.Cloneable
,java.util.EventListener
public class RJThumbWheelShape extends JComponentShape
An RMShape subclass for RJThumbWheel.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypes
RMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
-
-
Field Summary
Fields Modifier and Type Field Description static byte
ABSOLUTE_BOUNDED
static byte
ABSOLUTE_WRAPPED
static byte
TYPE_LINEAR
static byte
TYPE_RADIAL
-
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 RJThumbWheelShape()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configureComponent(JBuilder aBldr, javax.swing.JComponent aComp)
Override to configure attributes for this class.void
fromXMLShape(RXArchiver anArchiver, RXElement anElement)
XML unarchival.float
getAbsoluteMax()
Returns the largest value permitted by the thumbwheel (even when outside visible range).float
getAbsoluteMin()
Returns the smallest value permitted by the thumbwheel (even when outside visible range).byte
getAbsoluteMode()
Returns the thumbhweel absolute mode (ABSOLUTE_BOUNDED or ABSOLUTE_WRAPPED).java.lang.Class<? extends javax.swing.JComponent>
getComponentClass()
Returns the component class for this component shape.int
getOrientation()
Returns the orientation (SwingConstants.VERTICAL or SwingConstants.HORIZONTAL).float
getRound()
Returns the value that thumbwheel values are rounded to.byte
getType()
Returns the type (radial or linear).float
getValue()
Returns the value.float
getVisibleMax()
Returns the largest value in the visible range (ie, on the right side) of the thumbhweel.float
getVisibleMin()
Returns the smallest value in the visible range (ie, on the left side) of the thumbhweel.void
setAbsoluteMax(float aValue)
Sets the largest value permitted by the thumbwheel (even when outside visible range).void
setAbsoluteMin(float aValue)
Sets the smallest value permitted by the thumbwheel (even when outside visible range).void
setAbsoluteMode(byte aValue)
Sets the thumbhweel absolute mode (ABSOLUTE_BOUNDED or ABSOLUTE_WRAPPED).void
setOrientation(int aValue)
Returns the orientation (SwingConstants.VERTICAL or SwingConstants.HORIZONTAL).void
setRound(float aValue)
Sets the value that thumbwheel values are rounded to.void
setType(byte aType)
Sets the type (radial or linear).void
setValue(float aValue)
Sets the value.void
setVisibleMax(float aValue)
Sets the largest value in the visible range (ie, on the right side) of the thumbhweel.void
setVisibleMin(float aValue)
Sets the smallest value in the visible range (ie, on the left side) of the thumbhweel.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
-
-
-
-
Field Detail
-
TYPE_RADIAL
public static final byte TYPE_RADIAL
- See Also:
- Constant Field Values
-
TYPE_LINEAR
public static final byte TYPE_LINEAR
- See Also:
- Constant Field Values
-
ABSOLUTE_BOUNDED
public static final byte ABSOLUTE_BOUNDED
- See Also:
- Constant Field Values
-
ABSOLUTE_WRAPPED
public static final byte ABSOLUTE_WRAPPED
- See Also:
- Constant Field Values
-
-
Method Detail
-
getValue
public float getValue()
Returns the value.
-
setValue
public void setValue(float aValue)
Sets the value.
-
getRound
public float getRound()
Returns the value that thumbwheel values are rounded to.
-
setRound
public void setRound(float aValue)
Sets the value that thumbwheel values are rounded to.
-
getVisibleMin
public float getVisibleMin()
Returns the smallest value in the visible range (ie, on the left side) of the thumbhweel.
-
setVisibleMin
public void setVisibleMin(float aValue)
Sets the smallest value in the visible range (ie, on the left side) of the thumbhweel.
-
getVisibleMax
public float getVisibleMax()
Returns the largest value in the visible range (ie, on the right side) of the thumbhweel.
-
setVisibleMax
public void setVisibleMax(float aValue)
Sets the largest value in the visible range (ie, on the right side) of the thumbhweel.
-
getAbsoluteMin
public float getAbsoluteMin()
Returns the smallest value permitted by the thumbwheel (even when outside visible range).
-
setAbsoluteMin
public void setAbsoluteMin(float aValue)
Sets the smallest value permitted by the thumbwheel (even when outside visible range).
-
getAbsoluteMax
public float getAbsoluteMax()
Returns the largest value permitted by the thumbwheel (even when outside visible range).
-
setAbsoluteMax
public void setAbsoluteMax(float aValue)
Sets the largest value permitted by the thumbwheel (even when outside visible range).
-
getAbsoluteMode
public byte getAbsoluteMode()
Returns the thumbhweel absolute mode (ABSOLUTE_BOUNDED or ABSOLUTE_WRAPPED).
-
setAbsoluteMode
public void setAbsoluteMode(byte aValue)
Sets the thumbhweel absolute mode (ABSOLUTE_BOUNDED or ABSOLUTE_WRAPPED).
-
getOrientation
public int getOrientation()
Returns the orientation (SwingConstants.VERTICAL or SwingConstants.HORIZONTAL).
-
setOrientation
public void setOrientation(int aValue)
Returns the orientation (SwingConstants.VERTICAL or SwingConstants.HORIZONTAL).
-
getType
public byte getType()
Returns the type (radial or linear).
-
setType
public void setType(byte aType)
Sets the type (radial or linear).
-
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)
Override to configure attributes for this class.- 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
-
-