Class PipelineBlock
java.lang.Object
com.inductiveautomation.ignition.designer.blockandconnector.model.impl.AbstractBlock
com.inductiveautomation.ignition.alarming.designer.workspace.PropertySetBlock
com.inductiveautomation.ignition.alarming.designer.workspace.PipelineBlock
- All Implemented Interfaces:
Block
-
Field Summary
FieldsFields inherited from class com.inductiveautomation.ignition.alarming.designer.workspace.PropertySetBlock
LOCATION
Fields inherited from class com.inductiveautomation.ignition.designer.blockandconnector.model.impl.AbstractBlock
listeners
-
Constructor Summary
ConstructorsConstructorDescriptionPipelineBlock
(ObservablePropertySet backingSet, PipelineBlockPrototype prototype) -
Method Summary
Modifier and TypeMethodDescriptionCopy the settings of this block into a new block instance.The valid origins and terminus points for connectors coming into or out of this blockvoid
getConnections
(PipelineBlockModel model, List<Connection> connections) 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)getId()
Each block in a model is identified by a UUIDThe upper left-most point of the block in the diagram.void
initUI
(BlockComponent parent) Used to initialize the display of a block.boolean
void
setLocation
(Point newLocation) Don't forget to fire a change so that the UI knows the block has movedvoid
setMirrored
(boolean mirrored) Methods inherited from class com.inductiveautomation.ignition.designer.blockandconnector.model.impl.AbstractBlock
addBlockListener, equals, fireBlockMoved, fireUIChanged, hashCode, removeBlockListener
-
Field Details
-
MIRRORED
-
-
Constructor Details
-
PipelineBlock
-
-
Method Details
-
isMirrored
public boolean isMirrored() -
setMirrored
public void setMirrored(boolean mirrored) -
getBackingSet
- Specified by:
getBackingSet
in classPropertySetBlock
-
getOutput
- Specified by:
getOutput
in classPropertySetBlock
-
getConnections
- Specified by:
getConnections
in classPropertySetBlock
-
getPrototype
-
getId
Description copied from interface:Block
Each block in a model is identified by a UUID -
getLocation
Description copied from interface:Block
The upper left-most point of the block in the diagram. The size of the block is determined by the block's ui -
setLocation
Description copied from interface:Block
Don't forget to fire a change so that the UI knows the block has moved -
copy
Description copied from interface:Block
Copy the settings of this block into a new block instance. Any outgoing connections originating at this block should also be copied. If the destination of those connections is in the id set, it should point to the new block.- Parameters:
newIds
- 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.
-
getAnchorPoints
Description copied from interface:Block
The valid origins and terminus points for connectors coming into or out of this block -
getDefaultDropAnchor
Description copied from interface:Block
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)- Parameters:
oppositeAnchor
- The anchor point that would be the opposite anchor on the connector being hovered over this block.
-
initUI
Description copied from interface:Block
Used to initialize the display of a block. The block component is just a JPanel, so you can add whatever you want to it and set its layout manager. The block's size will be the preferred size of the contents that you add.
-