|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mindfusion.diagramming.AnchorPoint
public final class AnchorPoint
Represent a point where an arrow can connect to a node. A set of anchor
points is represented by the AnchorPattern
class. Such a set can
be assigned to a node by calling the DiagramNode.setAnchorPattern(com.mindfusion.diagramming.AnchorPattern)
method.
Constructor Summary | |
---|---|
AnchorPoint(float x,
float y)
Initializes a new AnchorPoint instance by setting its relative position in nodes. |
|
AnchorPoint(float x,
float y,
boolean allowIncoming,
boolean allowOutgoing)
Initializes a new AnchorPoint instance by setting its relative position in nodes and specifying whether it will allow outgoing or incoming arrows. |
|
AnchorPoint(float x,
float y,
boolean allowIncoming,
boolean allowOutgoing,
java.awt.Color color,
short column)
Initializes a new AnchorPoint instance by setting its relative position in nodes and specifying whether it will allow outgoing or incoming arrows. |
|
AnchorPoint(float x,
float y,
boolean allowIncoming,
boolean allowOutgoing,
java.awt.Color color,
short column,
java.lang.Object tag)
Initializes a new AnchorPoint instance by setting its relative position in nodes and specifying whether it will allow outgoing or incoming arrows. |
|
AnchorPoint(float x,
float y,
boolean allowIncoming,
boolean allowOutgoing,
int markStyle)
Initializes a new AnchorPoint instance by setting its relative position in nodes and specifying whether it will allow outgoing or incoming arrows. |
|
AnchorPoint(float x,
float y,
boolean allowIncoming,
boolean allowOutgoing,
int markStyle,
java.awt.Color color)
Initializes a new AnchorPoint instance by setting its relative position in nodes and specifying whether it will allow outgoing or incoming arrows. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates a clone of the anchor point. |
boolean |
getAllowIncoming()
Gets a value indicating whether this anchor point accepts incoming arrows. |
boolean |
getAllowOutgoing()
Gets a value indicating whether this anchor point accepts outgoing arrows. |
java.awt.Color |
getColor()
Gets the color used to draw this anchor point. |
short |
getColumn()
Gets the column to which this anchor point is related. |
int |
getMarkStyle()
Gets a value indicating what mark is drawn at the position of this anchor point. |
java.lang.Object |
getTag()
Gets a custom data object assigned to this anchor point. |
float |
getX()
Gets the X position of the anchor point. |
float |
getY()
Gets the Y position of the anchor point. |
void |
readExternal(java.io.ObjectInput in)
|
void |
setAllowIncoming(boolean value)
Sets a value indicating whether this anchor point accepts incoming arrows. |
void |
setAllowOutgoing(boolean value)
Sets a value indicating whether this anchor point accepts outgoing arrows. |
void |
setColor(java.awt.Color value)
Sets the color used to draw this anchor point. |
void |
setColumn(short value)
Sets the column to which this anchor point is related. |
void |
setMarkStyle(int value)
Sets a value indicating what mark is drawn at the position of this anchor point. |
java.lang.Object |
setTag(java.lang.Object tag)
Assigns a custom data object to this anchor point. |
void |
setX(float value)
Sets the X position of the anchor point. |
void |
setY(float value)
Sets the Y position of the anchor point. |
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnchorPoint(float x, float y)
x
- The horizontal position of the anchor point specified as
percents of the node width.y
- The vertical position of the anchor point specified as
percents of the node height.public AnchorPoint(float x, float y, boolean allowIncoming, boolean allowOutgoing)
x
- The horizontal position of the anchor point specified as
percents of the node width.y
- The vertical position of the anchor point specified as
percents of the node height.allowIncoming
- true
if this point should accept
incoming arrows, otherwise false
.allowOutgoing
- true
if this point should accept
outgoing arrows, otherwise false
.public AnchorPoint(float x, float y, boolean allowIncoming, boolean allowOutgoing, int markStyle)
x
- The horizontal position of the anchor point specified as
percents of the node width.y
- The vertical position of the anchor point specified as
percents of the node height.allowIncoming
- true
if this point should accept
incoming arrows, otherwise false
.allowOutgoing
- true
if this point should accept
outgoing arrows, otherwise false
.markStyle
- One of the MarkStyle
constants.public AnchorPoint(float x, float y, boolean allowIncoming, boolean allowOutgoing, int markStyle, java.awt.Color color)
x
- The horizontal position of the anchor point specified as
percents of the node width.y
- The vertical position of the anchor point specified as
percents of the node height.allowIncoming
- true
if this point should accept
incoming arrows, otherwise false
.allowOutgoing
- true
if this point should accept
outgoing arrows, otherwise false
.markStyle
- One of the MarkStyle
constants.color
- A Color
object representing
the color of the anchor point mark.public AnchorPoint(float x, float y, boolean allowIncoming, boolean allowOutgoing, java.awt.Color color, short column)
x
- The horizontal position of the anchor point specified as
percents of the node width.y
- The vertical position of the anchor point specified as
percents of the node height.allowIncoming
- true
if this point should accept
incoming arrows, otherwise false
.allowOutgoing
- true
if this point should accept
outgoing arrows, otherwise false
.color
- A Color
object representing
the color of the anchor point mark.column
- An index of a table column relatively to which the
anchor point x position should be calculated.public AnchorPoint(float x, float y, boolean allowIncoming, boolean allowOutgoing, java.awt.Color color, short column, java.lang.Object tag)
x
- The horizontal position of the anchor point specified as
percents of the node width.y
- The vertical position of the anchor point specified as
percents of the node height.allowIncoming
- true
if this point should accept
incoming arrows, otherwise false
.allowOutgoing
- true
if this point should accept
outgoing arrows, otherwise false
.color
- A Color
object representing
the color of the anchor point mark.column
- An index of a table column relatively to which the
anchor point x position should be calculated.tag
- A custom data object associated with the anchor point.Method Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
AnchorPoint
instance.public float getX()
public void setX(float value)
value
- A float value specifying the point position as percents
of the node width.public float getY()
public void setY(float value)
value
- A float value specifying the point position as percents
of the node height.public short getColumn()
public void setColumn(short value)
value
- An integer value specifying the column index.public boolean getAllowIncoming()
true
if incoming arrows can connect to this point,
or false
otherwise.public void setAllowIncoming(boolean value)
true
if incoming arrows can connect to
this point, or otherwise false
.
public boolean getAllowOutgoing()
true
if outgoing arrows can connect to this point,
or false
otherwise.public void setAllowOutgoing(boolean value)
true
if outgoing arrows can connect to
this point, or otherwise false
.
public int getMarkStyle()
MarkStyle
constants.public void setMarkStyle(int value)
value
- One of the MarkStyle
constants.public java.awt.Color getColor()
Color
object representing the anchor point color.public void setColor(java.awt.Color value)
value
- A Color
object representing the anchor point color.public java.lang.Object getTag()
Object
containing custom data.public java.lang.Object setTag(java.lang.Object tag)
DiagramListener.serializeTag(com.mindfusion.diagramming.SerializeTagEvent)
event.
tag
- An Object
containing custom data.public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |