public class IltLinkPort extends IlEnum
There are two kinds of link connection ports: those having a direction where links go out as a parallel bundle, and those without direction where the links go out from a specific point.
A link connection port is described by
Modifier and Type | Class and Description |
---|---|
static class |
IltLinkPort.LinkPortArrayEditor
Static property editor for the
IltLinkPort enum
class. |
static class |
IltLinkPort.LinkPortEditor
Static property editor for the
IltLinkPort enum
class. |
Modifier and Type | Field and Description |
---|---|
static IltLinkPort |
Bottom
The port at the center of the bottom side of nodes.
|
static IltLinkPort |
Center
The undirected port at the center of nodes.
|
static IltLinkPort |
Left
The port at the center of the left side of nodes.
|
static IlEnumInfo |
metainfo
Contains metainformation about this
IlEnum class. |
static IltLinkPort |
Right
The port at the center of the right side of nodes.
|
static IltLinkPort |
Top
The port at the center of the top side of nodes.
|
Constructor and Description |
---|
IltLinkPort(String name,
double fx,
double fy)
Creates a new link connection port without direction.
|
IltLinkPort(String name,
double fx,
double fy,
float rx,
float ry,
double dist)
Creates a new link connection port with direction.
|
Modifier and Type | Method and Description |
---|---|
double |
getFx()
Returns the main point's x coordinate, relative to the bounding box.
|
double |
getFy()
Returns the main point's y coordinate, relative to the bounding box.
|
IltNodeSide |
getNodeSide()
Deprecated.
This function will probably change in the next JTGO release.
|
double |
getOffset()
Returns the offset between adjacent outgoing links.
|
float |
getRx()
Returns the outgoing direction's x coordinate.
|
float |
getRy()
Returns the outgoing direction's y coordinate.
|
public static IlEnumInfo metainfo
IlEnum
class.public static IltLinkPort Top
public static IltLinkPort Bottom
public static IltLinkPort Left
public static IltLinkPort Right
public static IltLinkPort Center
public IltLinkPort(String name, double fx, double fy)
fx
- main point's x coordinate, relative to the bounding box (0 = left, 1 = right)fy
- main point's y coordinate, relative to the bounding box (0 = top, 1 = bottom)public IltLinkPort(String name, double fx, double fy, float rx, float ry, double dist)
fx
- main point's x coordinate, relative to the bounding box (0 = left, 1 = right)fy
- main point's y coordinate, relative to the bounding box (0 = top, 1 = bottom)rx
- outgoing direction's x coordinatery
- outgoing direction's y coordinatedist
- distance between adjacent outgoing linkspublic double getFx()
public double getFy()
public float getRx()
1
= right, -1
= leftpublic float getRy()
1
= bottom, -1
= toppublic double getOffset()
@Deprecated public IltNodeSide getNodeSide()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.