Class RMPaintbot
java.lang.Object
com.inductiveautomation.rm.base.RMListenerList
com.inductiveautomation.rm.base.RMObject
com.inductiveautomation.rm.graphics.RMPaintbot
- All Implemented Interfaces:
- RMPropertyChanger,- Cloneable
An object to process painter shape operations.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classA path construction operation for painting a bezier curve.static classAn op class for moving a shape forward along the path of its current roll.static classAn op class for moving a shape forward along the path of its current roll.static classA path construction operation for painting a line.static classAn inner class for path move to.static classA class representing an operation to an painter shape, like MoveTo or LineTo.static classAn inner class for path construction operations.static classA path construction operation for painting a quadratic curve.static classAn operation to set paint color.static classAn operation to set painting speed.static classAn operation to set stroke width.static classAn op class for turning a shape by a given number of degrees.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddOp(RMPaintbot.Op anOp) Adds a new operation.clone()Standard clone implementation.voidclose()Closes a path.voidcurveTo(double anX1, double aY1, double anX2, double aY2, double anX3, double aY3) Paint a bezier curve with the given control points and end point.voidforward(double aDistance) Adds a forward instruction to cpu.Returns the bounds of the painter shape operations.floatReturns the execution time for painter shape operations.<T extends RMPaintbot.Op>
 TgetLastOpOfClass(Class<T> aClass) Returns the first operation of given class.getOp(int anIndex) Returns the individual operation at given index.intReturns the number of painter shape operations.getOpOfClass(Class aClass) Returns the first operation of given class.getOps()Returns the list of ops.floatReturns the default paint speed.floatgetRoll()Returns this CPU's current roll.doublegetX()Returns this CPU's current x position.doublegetY()Returns this CPU's current y position.voidjump(double aDistance) Adds a Jump instruction to cpu.voidlineTo(double anX, double aY) Paint a line to given coordinates.voidmoveTo(double anX, double aY) Move to.paint(Graphics2D aGraphics, double aTime) Paint.voidquadTo(double anX1, double aY1, double anX2, double aY2) Paint a parabolic curve with the given control point and end point.voidsetPaintColor(Color aColor) Sets the paint color for path operations.voidsetPaintSpeed(double aSpeed) Sets the paint speed for path operations.voidsetPaintStrokeWidth(double aWidth) Sets the paint stroke width for path operations.voidturn(double anAngle) Adds a turn instruction to cpu.Methods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange, toStringMethods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
- 
Constructor Details- 
RMPaintbotpublic RMPaintbot()Creates a new painter shape painter.
 
- 
- 
Method Details- 
getOpCountpublic int getOpCount()Returns the number of painter shape operations.
- 
getOpReturns the individual operation at given index.
- 
getOpsReturns the list of ops.
- 
addOpAdds a new operation.
- 
getOpOfClassReturns the first operation of given class.
- 
getLastOpOfClassReturns the first operation of given class.
- 
setPaintColorSets the paint color for path operations.
- 
setPaintStrokeWidthpublic void setPaintStrokeWidth(double aWidth) Sets the paint stroke width for path operations.
- 
setPaintSpeedpublic void setPaintSpeed(double aSpeed) Sets the paint speed for path operations.
- 
forwardpublic void forward(double aDistance) Adds a forward instruction to cpu.
- 
jumppublic void jump(double aDistance) Adds a Jump instruction to cpu.
- 
turnpublic void turn(double anAngle) Adds a turn instruction to cpu.
- 
moveTopublic void moveTo(double anX, double aY) Move to.
- 
lineTopublic void lineTo(double anX, double aY) Paint a line to given coordinates.
- 
quadTopublic void quadTo(double anX1, double aY1, double anX2, double aY2) Paint a parabolic curve with the given control point and end point.
- 
curveTopublic void curveTo(double anX1, double aY1, double anX2, double aY2, double anX3, double aY3) Paint a bezier curve with the given control points and end point.
- 
closepublic void close()Closes a path.
- 
getPaintSpeedDefaultpublic float getPaintSpeedDefault()Returns the default paint speed.
- 
getXpublic double getX()Returns this CPU's current x position.
- 
getYpublic double getY()Returns this CPU's current y position.
- 
getRollpublic float getRoll()Returns this CPU's current roll.
- 
paintPaint.
- 
getExecutionTimepublic float getExecutionTime()Returns the execution time for painter shape operations.
- 
getBoundsReturns the bounds of the painter shape operations.
- 
cloneStandard clone implementation.- Overrides:
- clonein class- RMListenerList
 
 
-