|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.yworks.yfiles.server.graphml.folding.markup.Port
A data object that represents a yFiles FLEX port for EdgeViewState objects.
| Constructor Summary | |
Port()
Creates a new Port object at the center of its owner. |
|
Port(YPoint offset)
Creates a new Port object. |
|
Port(YPoint offset,
java.lang.Object owner)
Creates a new Port object. |
|
| Method Summary | |
YPoint |
getAbsoluteLocation()
Calculates the absolute location of the port. |
YPoint |
getAbsoluteLocation(double x,
double y,
double width,
double height)
Calculates the absolute position by adding the offset to the given bounds of the port owner. |
YPoint |
getOffset()
Returns the offset of the port location relative to the port's owner. |
java.lang.Object |
getOwner()
Returns the owner of the port. |
IPortStyle |
getStyle()
The port style. |
void |
setOffset(YPoint offset)
Sets the offset of the port location relative to the owner's center. |
void |
setOwner(java.lang.Object owner)
Sets the owner of the port. |
void |
setStyle(IPortStyle style)
Sets a new port style for the port. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Port()
public Port(YPoint offset)
offset - The offset of the port location relative to the port owner's center.
public Port(YPoint offset,
java.lang.Object owner)
offset - The offset of the port location relative to the port's owner's center.owner - The owner of the port.| Method Detail |
public IPortStyle getStyle()
public void setStyle(IPortStyle style)
style - The new style.public void setOffset(YPoint offset)
offset - The port's offset relative to the owner's center.public YPoint getOffset()
public YPoint getAbsoluteLocation(double x,
double y,
double width,
double height)
x - The x coordinate of the port owner.y - The y coordinate of the port owner.width - The width of the port owner.height - The height of the port owner.
public YPoint getAbsoluteLocation()
public java.lang.Object getOwner()
public void setOwner(java.lang.Object owner)
owner - The new owner of the port.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||