Package com.inductiveautomation.rm.shape
Class RMPainterShape
- java.lang.Object
- 
- com.inductiveautomation.rm.base.RMListenerList
- 
- com.inductiveautomation.rm.base.RMObject
- 
- com.inductiveautomation.rm.shape.RMShape
- 
- com.inductiveautomation.rm.shape.RMPainterShape
 
 
 
 
- 
- All Implemented Interfaces:
- Archivable,- DeepChangeListener,- RMPropertyChanger,- RMTypes,- java.beans.PropertyChangeListener,- java.lang.Cloneable,- java.util.EventListener
 
 public class RMPainterShape extends RMShape A shape that references another shape and acts.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypesRMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
 
- 
 - 
Field Summary- 
Fields inherited from class com.inductiveautomation.rm.shape.RMShapeBINDING_PROP_NAME, STROKE_BORDER, STROKE_DOUBLE, STROKE_HIDDEN, STROKE_SHAPE
 
- 
 - 
Constructor SummaryConstructors Constructor Description RMPainterShape()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddOpsForPath(java.awt.geom.PathIterator aPathIterator)Adds operations for path.voidaddPainter(RMPaintbot aPainter)Adds a given painter to painters list.voidaddPainter(RMPaintbot aPainter, int anIndex)Adds a given painter to painter list at given index.RMPainterShapeclone()Standard clone implementation.doublecomputePrefHeight(float aWidth)Override to get preferred height from instructions.doublecomputePrefWidth(float aHeight)Override to get preferred width from instructions.voidcurveTo(float anX1, float aY1, float anX2, float aY2, float anX3, float aY3)Paint a bezier curve with the given control points and end point.voidforward(float aDistance)Adds a forward instruction to painter.RMPainterShapefromXML(RXArchiver anArchiver, RXElement anElement)XML Unarchival.RMRectgetBoundsMarked()Returns the marked bounds.RMRectgetExecutionBounds()Returns the total bounds from execution.floatgetExecutionTime()Returns the total execution time of all painter shape operations.RMPaintbotgetPainter()Returns the first painter.RMPaintbotgetPainter(int anIndex)Returns the specific painter at given index.intgetPainterCount()Returns the number of painters.RMShapegetPaintShape()Returns the paint shape.floatgetTime()Returns the time.voidlineTo(float anX, float aY)Paint a line to given coordinates.voidmoveTo(float anX, float aY)Move to.voidpaintShape(RMShapePainter aPntr)Paint shape.voidquadTo(float anX1, float aY1, float anX2, float aY2)Paint a parabolic curve with the given control point and end point.voidsetPaintColor(java.awt.Color aColor)Sets the paint color for path operations.voidsetPaintSpeed(float aSpeed)Sets the paint speed for path operations.voidsetPaintStrokeWidth(float aWidth)Sets the paint stroke width for path operations.voidsetParent(RMParentShape aShape)Override to make sure there is a child animator.voidsetTime(int aTime)Override to trigger act.RXElementtoXML(RXArchiver anArchiver)XML Archival.voidturn(float anAngle)Adds a turn instruction to painter.- 
Methods inherited from class com.inductiveautomation.rm.shape.RMShapeacceptsChildren, acceptsMouse, addBinding, addBinding, addDeepChangeListener, addMouseListener, animUpdate, bounds, childrenSuperSelectImmediately, cloneDeep, computePrefHeight, computePrefWidth, contains, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertedVectorFromShape, convertedVectorToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copyShape, createDivideShapeRemainder, deepChange, divideShapeFromEdge, divideShapeFromTop, get, get, getAlignment, getAlignmentX, getAlignmentY, getAncestor, getAncestorCount, getAncestorInCommon, getAnimator, getAnimator, getAutosizing, getAutosizingDefault, getBestHeight, getBestHeight, getBestWidth, getBestWidth, getBinding, getBinding, getBindingCount, getBindings, getBounds, getBoundsInside, getBoundsMarkedDeep, getChild, getChildAnimator, getChildAnimator, getChildClipShape, getChildCount, getChildren, getClipShape, getColor, getDashArrayString, getDashPhase, getDatasetEntity, getDatasetKey, getDisplayedFill, getDisplayedStroke, getDocument, getEffect, getEventAdapter, getFill, getFont, 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, isFontSet, isHittable, isLocked, isMinHeightSet, isMinWidthSet, isPrefHeightSet, isPrefWidthSet, isRoot, isRSS, isShowing, isUnderlined, isUseFill, isUseStroke, isViewing, isVisible, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, offsetXY, page, pageMax, paint, paintShapeAll, paintShapeChildren, paintShapeOver, propertyChange, put, removeBinding, removeBinding, removeDeepChangeListener, removeFromParent, removeMouseListener, repaint, repaint, resolvePageReferences, rpgAll, rpgBindings, rpgShape, setAlignment, setAlignmentX, setAlignmentY, setAutosizing, setBestHeight, setBestSize, setBounds, setBounds, setColor, setDashArrayString, setDashPhase, setEffect, setEnabled, setFill, setFont, setFormat, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHeight, setHover, setLayoutInfo, setLocked, setMinHeight, setMinSize, setMinWidth, setName, setOpacity, setOutline, setPrefHeight, setPrefWidth, setRoll, setScaleX, setScaleXY, setScaleY, setShowing, setSize, setSize, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setStrokeStyle, setStrokeWidth, setTextColor, setTimeline, setUnderlined, setURL, setUseFill, setUseStroke, setVisible, setWidth, setX, setXY, setXY, setXYP, setY, shapeHidden, shapeShown, superSelectable, toString, undoerDisable, undoerEnable, undoerSetUndoTitle, width, x, y
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
 
- 
 
- 
- 
- 
Method Detail- 
getTimepublic float getTime() Returns the time.
 - 
setTimepublic void setTime(int aTime) Override to trigger act.
 - 
getPaintShapepublic RMShape getPaintShape() Returns the paint shape.
 - 
setPaintColorpublic void setPaintColor(java.awt.Color aColor) Sets the paint color for path operations.
 - 
setPaintStrokeWidthpublic void setPaintStrokeWidth(float aWidth) Sets the paint stroke width for path operations.
 - 
setPaintSpeedpublic void setPaintSpeed(float aSpeed) Sets the paint speed for path operations.
 - 
forwardpublic void forward(float aDistance) Adds a forward instruction to painter.
 - 
turnpublic void turn(float anAngle) Adds a turn instruction to painter.
 - 
moveTopublic void moveTo(float anX, float aY)Move to.
 - 
lineTopublic void lineTo(float anX, float aY)Paint a line to given coordinates.
 - 
quadTopublic void quadTo(float anX1, float aY1, float anX2, float aY2)Paint a parabolic curve with the given control point and end point.
 - 
curveTopublic void curveTo(float anX1, float aY1, float anX2, float aY2, float anX3, float aY3)Paint a bezier curve with the given control points and end point.
 - 
paintShapepublic void paintShape(RMShapePainter aPntr) Paint shape.- Overrides:
- paintShapein class- RMShape
 
 - 
getPainterpublic RMPaintbot getPainter() Returns the first painter.
 - 
getPainterCountpublic int getPainterCount() Returns the number of painters.
 - 
getPainterpublic RMPaintbot getPainter(int anIndex) Returns the specific painter at given index.
 - 
addPainterpublic void addPainter(RMPaintbot aPainter) Adds a given painter to painters list.
 - 
addPainterpublic void addPainter(RMPaintbot aPainter, int anIndex) Adds a given painter to painter list at given index.
 - 
addOpsForPathpublic void addOpsForPath(java.awt.geom.PathIterator aPathIterator) Adds operations for path.
 - 
getExecutionTimepublic float getExecutionTime() Returns the total execution time of all painter shape operations.
 - 
getExecutionBoundspublic RMRect getExecutionBounds() Returns the total bounds from execution.
 - 
getBoundsMarkedpublic RMRect getBoundsMarked() Returns the marked bounds.- Overrides:
- getBoundsMarkedin class- RMShape
 
 - 
computePrefWidthpublic double computePrefWidth(float aHeight) Override to get preferred width from instructions.
 - 
computePrefHeightpublic double computePrefHeight(float aWidth) Override to get preferred height from instructions.
 - 
setParentpublic void setParent(RMParentShape aShape) Override to make sure there is a child animator.
 - 
clonepublic RMPainterShape clone() Standard clone implementation.
 - 
toXMLpublic RXElement toXML(RXArchiver anArchiver) XML Archival.- Specified by:
- toXMLin interface- Archivable
- Overrides:
- toXMLin class- RMShape
 
 - 
fromXMLpublic RMPainterShape fromXML(RXArchiver anArchiver, RXElement anElement) XML Unarchival.- Specified by:
- fromXMLin interface- Archivable
- Overrides:
- fromXMLin class- RMShape
 
 
- 
 
-