public class StartBlock extends PropertySetBlock
| Modifier and Type | Field and Description |
|---|---|
static java.util.UUID |
START_ID |
LOCATIONlisteners| Constructor and Description |
|---|
StartBlock(ObservablePropertySet backingSet) |
| Modifier and Type | Method and Description |
|---|---|
Block |
copy(java.util.Map<java.util.UUID,java.util.UUID> newIds)
Copy the settings of this block into a new block instance.
|
java.util.Collection<AnchorPoint> |
getAnchorPoints()
The valid origins and terminus points for connectors coming into or out of this block
|
ObservablePropertySet |
getBackingSet() |
void |
getConnections(PipelineBlockModel model,
java.util.List<Connection> connections) |
AnchorPoint |
getDefaultDropAnchor(AnchorPoint oppositeAnchor)
When a connector is being dropped on this block, what anchor point should it attach to if it isn't specifically
over an anchor's hotspot (may return null)
|
java.util.UUID |
getId()
Each block in a model is identified by a UUID
|
java.awt.Point |
getLocation()
The upper left-most point of the block in the diagram.
|
Property<java.util.UUID> |
getOutput(java.lang.Object anchorId) |
void |
initUI(BlockComponent panel)
Used to initialize the display of a block.
|
void |
setLocation(java.awt.Point newLocation)
Don't forget to fire a change so that the UI knows the block has moved
|
addBlockListener, equals, fireBlockMoved, fireUIChanged, hashCode, removeBlockListenerpublic StartBlock(ObservablePropertySet backingSet)
public ObservablePropertySet getBackingSet()
getBackingSet in class PropertySetBlockpublic Property<java.util.UUID> getOutput(java.lang.Object anchorId)
getOutput in class PropertySetBlockpublic void getConnections(PipelineBlockModel model, java.util.List<Connection> connections)
getConnections in class PropertySetBlockpublic java.util.UUID getId()
Blockpublic java.awt.Point getLocation()
Blockpublic void setLocation(java.awt.Point newLocation)
Blockpublic Block copy(java.util.Map<java.util.UUID,java.util.UUID> newIds)
BlocknewIds - a map of all new ids for copied blocks (including this one). Should be used to point outgoing
connections to blocks in the copied set to their new ids.public java.util.Collection<AnchorPoint> getAnchorPoints()
Blockpublic AnchorPoint getDefaultDropAnchor(AnchorPoint oppositeAnchor)
BlockoppositeAnchor - The anchor point that would be the opposite anchor on the connector being hovered over
this block.public void initUI(BlockComponent panel)
Block