public class IOPortController extends AttributeController
Modifier and Type | Class and Description |
---|---|
class |
IOPortController.EntityPortRenderer
Render the ports of components as triangles.
|
AttributeController.Access
IconController.IconRenderer
Modifier and Type | Field and Description |
---|---|
static double |
MULTIPORT_CONNECTION_SPACING
The spacing between individual connections to a multiport.
|
_appearanceMenuActionFactory, _listenToAction, _renameAction, FULL, PARTIAL
_configureAction, _configureMenuFactory, _menuCreator, _menuFactory
_configuration
_decoratable, CLASS_ELEMENT_HIGHLIGHT_COLOR
Constructor and Description |
---|
IOPortController(GraphController controller)
Create a port controller associated with the specified graph
controller.
|
IOPortController(GraphController controller,
AttributeController.Access access)
Create a port controller associated with the
specified graph controller.
|
Modifier and Type | Method and Description |
---|---|
protected static int |
_getCardinality(Port port)
Deprecated.
Use public getCardinality() method instead
|
protected java.lang.String |
_getComponentType()
Get the class label of the component.
|
protected static int |
_getDirection(int portRotation)
Deprecated.
Use public getDirection() method instead
|
protected java.lang.String |
_moveToFirstDescription()
The text used in the MoveAction.TO_FIRST action menu choice.
|
protected java.lang.String |
_moveToLastDescription()
The text used in the MoveAction.TO_LAST action menu choice.
|
static int |
getCardinality(Port port)
Return one of {-270, -180, -90, 0, 90, 180, 270} specifying
the orientation of a port.
|
static int |
getDirection(int portRotation)
Return the direction associated with the specified angle,
which is assumed to be one of {-270, -180, -90, 0, 90, 180, 270}.
|
addHotKeys, renderDecoratorHighlight, renderHighlight, setConfiguration
getConfigureMenuFactory
_drawChildren, _getCompositeFigure, _hide, _isPropertySet, _renderNode, addNode, drawNode, getLocation, hasLocation, locateFigure, setLocation, setSnapResolution
addNode, addNode, addNode, clearNode, drawNode, getController, getNodeInteractor, getNodeRenderer, removeNode, setNodeInteractor, setNodeRenderer
public static final double MULTIPORT_CONNECTION_SPACING
public IOPortController(GraphController controller)
controller
- The associated graph controller.public IOPortController(GraphController controller, AttributeController.Access access)
controller
- The associated graph controller.access
- The access level.public static int getCardinality(Port port)
port
- The port.public static int getDirection(int portRotation)
portRotation
- The angle@Deprecated protected static int _getCardinality(Port port)
port
- The port.getCardinality(Port)
protected java.lang.String _getComponentType()
_getComponentType
in class AttributeController
@Deprecated protected static int _getDirection(int portRotation)
portRotation
- The anglegetDirection(int)
protected java.lang.String _moveToFirstDescription()
_moveToFirstDescription
in class AttributeController
protected java.lang.String _moveToLastDescription()
_moveToLastDescription
in class AttributeController