|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--draw2d.Figure
|
+--draw2d.Rectangle
|
+--draw2d.Port
A Port is the anchor for a draw2d.Connection. A draw2d.Connection must have a start and a end Port.
Version: 0.9.14
Author: Andreas Herz
Defined in Port.js
| Field Summary | |
Object |
connectedUIRepresentation
|
Object |
currentUIRepresentation
|
Object |
disconnectedUIRepresentation
|
Object |
hideIfConnected
|
Object |
uiRepresentationAdded
|
| Constructor Summary | |
draw2d.Port
( disconnectedUIRepresentation, connectedUIRepresentation)
|
|
| Method Summary | |
void
|
attachMoveListener( <draw2d.Figure> figure)
|
void
|
detachMoveListener( <draw2d.Figure> figure)
|
draw2d.Point
|
getAbsoluteBounds()
Returns the absolute y-position of the port. |
draw2d.Point
|
getAbsolutePosition()
Returns the absolute y-position of the port. |
int
|
getAbsoluteX()
Returns the absolute x-position of the port. |
int
|
getAbsoluteY()
Returns the absolute y-position of the port. |
draw2d.Color
|
getBackgroundColor()
Returns the background color of this port. |
draw2d.Color
|
getColor()
Returns the foreground color of the port. |
draw2d.ArrayList
|
getConnections()
Returns a array of Connection of all related connections to this port.
|
int
|
getCoronaWidth()
Returns the corona width of the Port. |
int
|
getLineWidth()
Returns the line with of the port border. |
String
|
getName()
Return the name of this port. |
draw2d.Node
|
getParent()
Return the parentNode draw2d.Node of this port. |
Object
|
isOver( iX , iY)
|
void
|
onOtherFigureMoved( <draw2d.Figure> figure)
Callback method of the movemoent of a figure |
void
|
setBackgroundColor( <draw2d.Color> color)
Set the background color of the port |
void
|
setColor( <draw2d.Color> color)
Set the foreground color of the port |
void
|
setCoronaWidth( <int> width)
Set the corona width of the Port. |
void
|
setDimension( <int> width, height)
Set the dimension of this port. |
void
|
setHideIfConnected( flag)
Hide the port if a connector has been attach to this. |
void
|
setLineWidth( width)
Set the foreground color of the port |
void
|
setName( <String> name)
Set the name of this port. |
void
|
setPosition( <int> xPos, <int> yPos)
Set the position of this port |
void
|
setUiRepresentation( <draw2d.Figure> figure)
Set the representation of this port. |
<static> void
|
setZOrderBaseIndex( <int> index)
Set the common z-index of the window element. |
| Methods inherited from class draw2d.Rectangle |
getWidth, getHeight
|
| Field Detail |
Object connectedUIRepresentation
Object currentUIRepresentation
Object disconnectedUIRepresentation
Object hideIfConnected
Object uiRepresentationAdded
| Constructor Detail |
draw2d.Port( disconnectedUIRepresentation, connectedUIRepresentation)
uiRepresentation - The figure to paint this Port. This parameter is optional.
| Method Detail |
void attachMoveListener( <draw2d.Figure> figure)
figure - The figure to monitor
void detachMoveListener( <draw2d.Figure> figure)
figure - The figure to remove the monitor
draw2d.Point getAbsoluteBounds()
draw2d.Point getAbsolutePosition()
int getAbsoluteX()
int getAbsoluteY()
draw2d.Color getBackgroundColor()
draw2d.Color getColor()
draw2d.ArrayList getConnections()
Connection of all related connections to this port.int getCoronaWidth()
int getLineWidth()
String getName()
draw2d.Node getParent()
Object isOver( iX , iY)
void onOtherFigureMoved( <draw2d.Figure> figure)
figure - The figure which has been moved
void setBackgroundColor( <draw2d.Color> color)
color - The new background color of the port.
void setColor( <draw2d.Color> color)
color - The new foreground color of the port.
void setCoronaWidth( <int> width)
width - The new corona width of the port
void setDimension( <int> width, height)
width - The new width of the object
heightThe - new height of the object
void setHideIfConnected( flag)
void setLineWidth( width)
color - The new foreground color of the port.
void setName( <String> name)
name - The new name of this port.
void setPosition( <int> xPos, <int> yPos)
xPos - The new x position of the port.
yPos - The new y position of the port.
void setUiRepresentation( <draw2d.Figure> figure)
figure - The new UI representation of this port.
<static> void setZOrderBaseIndex( <int> index)
index - The z-order for all new port objects.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||