abstract class AbstractSensorNode
extends org.piccolo2d.PNode
FILL_STRATEGY_ASPECT_COVER, FILL_STRATEGY_ASPECT_FIT, FILL_STRATEGY_EXACT_FIT, PROPERTY_BOUNDS, PROPERTY_CHILDREN, PROPERTY_CHILDREN_PICKABLE, PROPERTY_CLIENT_PROPERTIES, PROPERTY_CODE_BOUNDS, PROPERTY_CODE_CHILDREN, PROPERTY_CODE_CHILDREN_PICKABLE, PROPERTY_CODE_CLIENT_PROPERTIES, PROPERTY_CODE_FULL_BOUNDS, PROPERTY_CODE_PAINT, PROPERTY_CODE_PARENT, PROPERTY_CODE_PICKABLE, PROPERTY_CODE_TRANSFORM, PROPERTY_CODE_TRANSPARENCY, PROPERTY_CODE_VISIBLE, PROPERTY_FULL_BOUNDS, PROPERTY_PAINT, PROPERTY_PARENT, PROPERTY_PICKABLE, PROPERTY_TRANSFORM, PROPERTY_TRANSPARENCY, PROPERTY_VISIBLE, SCENE_GRAPH_DELEGATE
Modifier | Constructor and Description |
---|---|
protected |
AbstractSensorNode(VisionWorld visionWorld,
Sensor sensor)
Create a new abstract sensor node with the specified sensor.
|
Modifier and Type | Method and Description |
---|---|
void |
edit()
Edit the sensor for this sensor node.
|
protected javax.swing.JPopupMenu |
getContextMenu()
Return the context menu for this sensor node.
|
java.awt.Paint |
getMouseoverPaint()
Return the mouseover paint for this sensor node.
|
java.awt.Paint |
getOutlinePaint()
Return the outline paint for this sensor node.
|
java.awt.Stroke |
getOutlineStroke()
Return the outline stroke for this sensor node.
|
java.awt.Paint |
getSelectedPaint()
Return the selected paint for this sensor node.
|
Sensor |
getSensor()
Return the sensor for this sensor node.
|
protected java.lang.String |
getToolTipText()
Return the tool tip text for this sensor node.
|
protected boolean |
isMouseover()
Return true if the mouse is over this sensor node.
|
protected boolean |
isSelected()
Return true if this sensor node is selected.
|
protected void |
paint(org.piccolo2d.util.PPaintContext paintContext) |
protected void |
setMouseover(boolean mouseover)
Set to true if the mouse is over this sensor node.
|
void |
setMouseoverPaint(java.awt.Paint mouseoverPaint)
Set the mouseover paint for this sensor node to
mouseoverPaint . |
void |
setOutlinePaint(java.awt.Paint outlinePaint)
Set the outline paint for this sensor node to
outlinePaint . |
void |
setOutlineStroke(java.awt.Stroke outlineStroke)
Set the outline stroke for this sensor node to
outlineStroke
. |
void |
setSelected(boolean selected)
Set to true if this sensor node is selected.
|
void |
setSelectedPaint(java.awt.Paint selectedPaint)
Set the selected paint for this sensor node to
selectedPaint
. |
addActivity, addAttribute, addChild, addChild, addChildren, addInputEventListener, addPropertyChangeListener, addPropertyChangeListener, animateToBounds, animateToColor, animateToPositionScaleRotation, animateToRelativePosition, animateToTransform, animateToTransparency, animateTransformToBounds, centerBoundsOnPoint, centerFullBoundsOnPoint, clone, computeFullBounds, endResizeBounds, findIntersectingNodes, fireChildPropertyChange, firePropertyChange, fullIntersects, fullPaint, fullPick, getAllNodes, getAllNodes, getAttribute, getAttribute, getBooleanAttribute, getBounds, getBoundsChanged, getBoundsReference, getBoundsVolatile, getChild, getChildBoundsInvalid, getChildBoundsVolatile, getChildPaintInvalid, getChildrenCount, getChildrenIterator, getChildrenPickable, getChildrenReference, getClientProperties, getClientPropertyKeysEnumeration, getDoubleAttribute, getFullBounds, getFullBoundsInvalid, getFullBoundsReference, getGlobalBounds, getGlobalFullBounds, getGlobalRotation, getGlobalScale, getGlobalToLocalTransform, getGlobalTranslation, getHeight, getInputEventListeners, getIntegerAttribute, getInverseTransform, getListenerList, getLocalToGlobalTransform, getName, getOccluded, getOffset, getPaint, getPaintInvalid, getParent, getPickable, getPropertyChangeParentMask, getRoot, getRotation, getScale, getTransform, getTransformReference, getTransparency, getUnionOfChildrenBounds, getVisible, getWidth, getX, getXOffset, getY, getYOffset, globalToLocal, globalToLocal, globalToLocal, indexOfChild, internalUpdateBounds, intersects, invalidateFullBounds, invalidateLayout, invalidatePaint, isAncestorOf, isDescendentOf, isDescendentOfRoot, isOpaque, layoutChildren, lerp, localToGlobal, localToGlobal, localToGlobal, localToParent, localToParent, localToParent, lower, lower, lowerBelow, lowerToBottom, lowerToBottom, offset, paintAfterChildren, parentBoundsChanged, parentToLocal, parentToLocal, parentToLocal, pick, pickAfterChildren, print, print, raise, raise, raiseAbove, raiseToTop, raiseToTop, removeAllChildren, removeChild, removeChild, removeChildren, removeFromParent, removeInputEventListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaintFrom, reparent, replaceWith, resetBounds, rotate, rotateAboutPoint, rotateAboutPoint, rotateInPlace, scale, scaleAboutPoint, scaleAboutPoint, setBounds, setBounds, setBoundsChanged, setChildBoundsInvalid, setChildBoundsVolatile, setChildPaintInvalid, setChildrenPickable, setFullBoundsInvalid, setGlobalRotation, setGlobalScale, setGlobalTranslation, setHeight, setName, setOccluded, setOffset, setOffset, setPaint, setPaintInvalid, setParent, setPickable, setPropertyChangeParentMask, setRotation, setScale, setTransform, setTransparency, setVisible, setWidth, setX, setY, signalBoundsChanged, startResizeBounds, toImage, toImage, toImage, toImage, transformBy, translate, validateFullBounds, validateFullPaint
protected AbstractSensorNode(VisionWorld visionWorld, Sensor sensor)
visionWorld
- vision world, must not be nullsensor
- sensor, must not be nullprotected java.lang.String getToolTipText()
protected javax.swing.JPopupMenu getContextMenu()
public final Sensor getSensor()
public final void edit()
protected final boolean isMouseover()
protected final void setMouseover(boolean mouseover)
mouseover
- true if the mouse is over this sensor nodeprotected final boolean isSelected()
public final void setSelected(boolean selected)
selected
- true if this sensor node is selectedpublic final java.awt.Paint getMouseoverPaint()
public final void setMouseoverPaint(java.awt.Paint mouseoverPaint)
mouseoverPaint
.mouseoverPaint
- mouseover paint for this sensor nodepublic final java.awt.Paint getOutlinePaint()
public final void setOutlinePaint(java.awt.Paint outlinePaint)
outlinePaint
.outlinePaint
- outline paint for this sensor nodepublic final java.awt.Stroke getOutlineStroke()
public final void setOutlineStroke(java.awt.Stroke outlineStroke)
outlineStroke
.outlineStroke
- outline stroke for this sensor node, must not be
nullpublic final java.awt.Paint getSelectedPaint()
public final void setSelectedPaint(java.awt.Paint selectedPaint)
selectedPaint
.selectedPaint
- selected paint for this sensor nodeprotected final void paint(org.piccolo2d.util.PPaintContext paintContext)
paint
in class org.piccolo2d.PNode