public class ExternalIOPortController extends AttributeController
Red (johnr) |
Red (eal) |
Modifier and Type | Class and Description |
---|---|
class |
ExternalIOPortController.PortRenderer
Render the external ports of a graph as a 5-sided tab thingy.
|
AttributeController.Access
IconController.IconRenderer
Modifier and Type | Field and Description |
---|---|
protected EditIconAction |
_editIconAction
The action that handles edit custom icon.
|
static IOPort |
_GENERIC_INOUT
Prototype inout port.
|
static IOPort |
_GENERIC_INOUT_MULTIPORT
Prototype inout multiport.
|
static IOPort |
_GENERIC_INPUT
Prototype input port.
|
static IOPort |
_GENERIC_INPUT_MULTIPORT
Prototype input multiport.
|
static IOPort |
_GENERIC_OUTPUT
Prototype output port.
|
static IOPort |
_GENERIC_OUTPUT_MULTIPORT
Prototype output multiport.
|
protected static java.awt.Font |
_labelFont
The font used to label a port.
|
protected RemoveIconAction |
_removeIconAction
The action that handles removing a custom icon.
|
static java.lang.Integer[] |
IOPORT_COORDINATES
Polygon coordinates for input output port.
|
static java.lang.Integer[] |
IPORT_COORDINATES
Polygon coordinates for input port.
|
static java.lang.Integer[] |
MULTI_IOPORT_COORDINATES
Polygon coordinates for input multiport.
|
static java.lang.Integer[] |
MULTI_IPORT_COORDINATES
Polygon coordinates for input output multiport.
|
static java.lang.Integer[] |
MULTI_OPORT_COORDINATES
Polygon coordinates for output multiport.
|
static java.lang.Integer[] |
OPORT_COORDINATES
Polygon coordinates for output port.
|
_appearanceMenuActionFactory, _listenToAction, _renameAction, FULL, PARTIAL
_configureAction, _configureMenuFactory, _menuCreator, _menuFactory
_configuration
_decoratable, CLASS_ELEMENT_HIGHLIGHT_COLOR
Constructor and Description |
---|
ExternalIOPortController(GraphController controller)
Create a port controller associated with the specified graph
controller.
|
ExternalIOPortController(GraphController controller,
AttributeController.Access access)
Create a port controller associated with the specified graph
controller.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
_hide(java.lang.Object node)
Override the base class to return true if the specified node
contains an attribute named "_hideInside".
|
protected java.lang.String |
_portTooltip(Port port)
Given a port, return a reasonable tooltip message for that port.
|
void |
locateFigure(java.lang.Object node)
Move the node's figure to the location specified in the node's
semantic object, if that object is an instance of Locatable.
|
void |
setConfiguration(Configuration configuration)
Set the configuration.
|
_getComponentType, _moveToFirstDescription, _moveToLastDescription, addHotKeys, renderDecoratorHighlight, renderHighlight
getConfigureMenuFactory
_drawChildren, _getCompositeFigure, _isPropertySet, _renderNode, addNode, drawNode, getLocation, hasLocation, setLocation, setSnapResolution
addNode, addNode, addNode, clearNode, drawNode, getController, getNodeInteractor, getNodeRenderer, removeNode, setNodeInteractor, setNodeRenderer
public static final IOPort _GENERIC_INPUT
public static final IOPort _GENERIC_OUTPUT
public static final IOPort _GENERIC_INOUT
public static final IOPort _GENERIC_INPUT_MULTIPORT
public static final IOPort _GENERIC_OUTPUT_MULTIPORT
public static final IOPort _GENERIC_INOUT_MULTIPORT
public static java.lang.Integer[] IOPORT_COORDINATES
public static java.lang.Integer[] IPORT_COORDINATES
public static java.lang.Integer[] OPORT_COORDINATES
public static java.lang.Integer[] MULTI_IPORT_COORDINATES
public static java.lang.Integer[] MULTI_OPORT_COORDINATES
public static java.lang.Integer[] MULTI_IOPORT_COORDINATES
protected EditIconAction _editIconAction
protected static java.awt.Font _labelFont
protected RemoveIconAction _removeIconAction
public ExternalIOPortController(GraphController controller)
controller
- The associated graph controller.public ExternalIOPortController(GraphController controller, AttributeController.Access access)
controller
- The associated graph controller.access
- The access level.public void locateFigure(java.lang.Object node)
locateFigure
in class LocatableNodeController
node
- The object to locate.public void setConfiguration(Configuration configuration)
setConfiguration
in class AttributeController
configuration
- The configuration.protected boolean _hide(java.lang.Object node)
_hide
in class LocatableNodeController
node
- The nodeprotected java.lang.String _portTooltip(Port port)
port
- The port.