public class SynapseGroupNodeSimple extends SynapseGroupNode implements SynapseGroupArrow
Modifier and Type | Field and Description |
---|---|
protected static java.awt.Color |
DEFAULT_COLOR |
interactionBox, networkPanel, outlinedObjects, SYNAPSE_VISIBILITY_CHANGED, synapseGroup
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
Constructor and Description |
---|
SynapseGroupNodeSimple(NetworkPanel networkPanel,
SynapseGroup group)
Create a Synapse Group PNode.
|
SynapseGroupNodeSimple(NetworkPanel networkPanel,
SynapseGroup group,
float thickness) |
Modifier and Type | Method and Description |
---|---|
void |
determineProperEndPoints()
Determines what the end points should be depending on what this arrow
connects.
|
java.awt.geom.Point2D |
getEndPt() |
SynapseGroup |
getGroup() |
java.awt.geom.Point2D |
getOpposingDefaultPosition(NeuronGroup ng)
Returns a default position...
|
float |
getRequiredSpacing() |
NeuronGroup |
getSource() |
NeuronGroupNode |
getSourceNode() |
NeuronGroupNode.Port |
getStartPort() |
java.awt.geom.Point2D |
getStartPt() |
NeuronGroup |
getTarget() |
NeuronGroupNode |
getTargetNode() |
void |
layout(java.awt.geom.Point2D src,
java.awt.geom.Point2D tar)
Lays out the arrow(s) between the two specified points.
|
void |
layoutChildren()
Override PNode layoutChildren method in order to properly set the
positions of children nodes.
|
void |
layoutChildrenQuiet(java.awt.geom.Point2D pt1,
java.awt.geom.Point2D pt2)
Lays out the child nodes of the class implementing this interface in
a way that expressly ensures that layoutChildren() will not be called
concurrently until this method has fully completed.
|
java.awt.geom.Point2D |
midpoint(java.awt.geom.Point2D src,
java.awt.geom.Point2D tar)
Returns the midpoint for for
|
void |
removeFromParent()
TODO: Not sure why below is needed.
|
void |
setEndPt(java.awt.geom.Point2D.Float endPt) |
void |
setStartPort(NeuronGroupNode.Port startPort) |
void |
setStartPt(java.awt.geom.Point2D.Float startPt) |
getInteractionBox, getInteractionBoxes, getNetworkPanel, getSynapseGroup, propertyChange, updateConstituentNodes, updateText
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, lerp, localToGlobal, localToGlobal, localToGlobal, localToParent, localToParent, localToParent, lower, lower, lowerBelow, lowerToBottom, lowerToBottom, offset, paint, paintAfterChildren, parentBoundsChanged, parentToLocal, parentToLocal, parentToLocal, pick, pickAfterChildren, print, print, raise, raise, raiseAbove, raiseToTop, raiseToTop, removeAllChildren, removeChild, removeChild, removeChildren, 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
public SynapseGroupNodeSimple(NetworkPanel networkPanel, SynapseGroup group)
networkPanel
- parent panelgroup
- the synapse grouppublic SynapseGroupNodeSimple(NetworkPanel networkPanel, SynapseGroup group, float thickness)
public void layoutChildren()
layoutChildren
in class org.piccolo2d.PNode
public void layoutChildrenQuiet(java.awt.geom.Point2D pt1, java.awt.geom.Point2D pt2)
SynapseGroupArrow
layoutChildrenQuiet
in interface SynapseGroupArrow
pt1
- pt2
- public void layout(java.awt.geom.Point2D src, java.awt.geom.Point2D tar)
SynapseGroupArrow
SynapseGroupArrow.layoutChildrenQuiet(Point2D, Point2D)
should call this method.layout
in interface SynapseGroupArrow
src
- tar
- public java.awt.geom.Point2D midpoint(java.awt.geom.Point2D src, java.awt.geom.Point2D tar)
SynapseGroupArrow
midpoint
in interface SynapseGroupArrow
src
- tar
- public void determineProperEndPoints()
SynapseGroupArrow
determineProperEndPoints
in interface SynapseGroupArrow
public void removeFromParent()
removeFromParent
in class org.piccolo2d.PNode
public java.awt.geom.Point2D getStartPt()
getStartPt
in interface SynapseGroupArrow
public void setStartPt(java.awt.geom.Point2D.Float startPt)
public java.awt.geom.Point2D getEndPt()
getEndPt
in interface SynapseGroupArrow
public void setEndPt(java.awt.geom.Point2D.Float endPt)
public NeuronGroupNode.Port getStartPort()
public void setStartPort(NeuronGroupNode.Port startPort)
public java.awt.geom.Point2D getOpposingDefaultPosition(NeuronGroup ng)
getOpposingDefaultPosition
in interface SynapseGroupArrow
ng
- public SynapseGroup getGroup()
getGroup
in interface SynapseGroupArrow
public NeuronGroupNode getSourceNode()
public NeuronGroupNode getTargetNode()
public NeuronGroup getSource()
public NeuronGroup getTarget()
public float getRequiredSpacing()
getRequiredSpacing
in interface SynapseGroupArrow