public class IOPortController extends AttributeController
| Modifier and Type | Class and Description |
|---|---|
class |
IOPortController.EntityPortRenderer
Render the ports of components as triangles.
|
AttributeController.AccessIconController.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(diva.graph.GraphController controller)
Create a port controller associated with the specified graph
controller.
|
IOPortController(diva.graph.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, setConfigurationgetConfigureMenuFactory_drawChildren, _getCompositeFigure, _hide, _isPropertySet, _renderNode, addNode, drawNode, getLocation, hasLocation, locateFigure, setLocation, setSnapResolutionpublic static final double MULTIPORT_CONNECTION_SPACING
public IOPortController(diva.graph.GraphController controller)
controller - The associated graph controller.public IOPortController(diva.graph.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 AttributeControllerprotected java.lang.String _moveToLastDescription()
_moveToLastDescription in class AttributeController