Agentflow
V3.1

pe.pase
Class PASEProcessLink

java.lang.Object
  extended by pe.pase.PASEProcessLink
All Implemented Interfaces:
java.io.Serializable

public class PASEProcessLink
extends java.lang.Object
implements java.io.Serializable

Process link presentation data model. The class holds the information about the link and the line. The link inforamtion involves id of the start process, id of the end process, label of the link, the inflection points, and a instance of ProLinkTerm. The line information involves the color, pattern, width.

Version:
1.1.2
Author:
yschen
See Also:
ProLinkTerm, Serialized Form

Constructor Summary
PASEProcessLink(java.lang.String from, java.lang.String to)
          Constructor.
 
Method Summary
 void _setProperty(java.lang.String property, java.lang.String value)
          Set the property
 java.awt.Color getColor()
          Get color of the line
 java.lang.String getFromProcessID()
          Get the id of process which is the origin of the link.
 java.util.Vector getInflectionPointList()
          Get the inflection point list
 java.lang.String getLabel()
          Get the label of link
 java.lang.String getLinkCondition()
          Get link condition
 ProLinkTerm getLinkTerm()
          Get the link term
 int getPatternIdx()
          Get pattern index of the line
 java.lang.String getPropertys()
          Pack the properties into a string.
 boolean getRectJoint()
          Rect-joint
 boolean getRotateLabel()
          whether the lable is rotated
 boolean getSingleLine()
          Replace m_lineProperty
 java.lang.String getToProcessID()
          Get the id of process which is the destination of the link.
 int getWidthIdx()
          Get width index of the line
 void setColor(java.awt.Color color)
          Set color of the line
 void setFromProcessID(java.lang.String from)
           
 void setInflectionPointList(java.util.Vector v)
          Set the inflection point list
 void setLabel(java.lang.String label)
          Set the label of link
 void setLinkTerm(ProLinkTerm term)
          Set the link term
 void setPatternIdx(int idx)
          Set pattern index of the line
 void setPropertys(java.lang.String propertyList)
          Parse the specified property string and set the properties
 void setRectJoint(boolean value)
           
 void setRotateLabel(boolean bRotate)
          set the lable is rotated.
 void setSingleLine(boolean value)
           
 void setToProcessID(java.lang.String to)
           
 void setWidthIdx(int idx)
          Set width index of the line
 java.lang.String toString()
          Represent the string format of the PASEProcess instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PASEProcessLink

public PASEProcessLink(java.lang.String from,
                       java.lang.String to)
Constructor. Construct a instance of PASEProcessLink with the specified parameters.

Parameters:
form - the given from-process id
to - the given to-process id
Since:
version 1.1.0
Method Detail

_setProperty

public void _setProperty(java.lang.String property,
                         java.lang.String value)
Set the property

Parameters:
property - the given property name
value - the given property value
Since:
version 1.1.0

getColor

public java.awt.Color getColor()
Get color of the line

Returns:
the color
Since:
version 1.1.0

getFromProcessID

public java.lang.String getFromProcessID()
Get the id of process which is the origin of the link.

Returns:
the process id
Since:
version 1.1.0

getInflectionPointList

public java.util.Vector getInflectionPointList()
Get the inflection point list

Returns:
the inflection point list. (element in Vector is the Point instance)
Since:
version 1.1.0

getLabel

public java.lang.String getLabel()
Get the label of link

Returns:
the label string
Since:
version 1.1.0

getLinkCondition

public java.lang.String getLinkCondition()
Get link condition

Returns:
the link condition string
Since:
version 1.1.0

getLinkTerm

public ProLinkTerm getLinkTerm()
Get the link term

Returns:
the ProLinkTerm instance
Since:
version 1.1.0
See Also:
ProLinkTerm

getPatternIdx

public int getPatternIdx()
Get pattern index of the line

Returns:
the pattern index
Since:
version 1.1.0

getPropertys

public java.lang.String getPropertys()
Pack the properties into a string.

Returns:
the string
Since:
version 1.1.0

getRectJoint

public boolean getRectJoint()
Rect-joint

Since:
3.0

getRotateLabel

public boolean getRotateLabel()
whether the lable is rotated

Returns:
true if the label is rotated.
Since:
version 1.2

getSingleLine

public boolean getSingleLine()
Replace m_lineProperty

Since:
3.0

getToProcessID

public java.lang.String getToProcessID()
Get the id of process which is the destination of the link.

Returns:
the process id
Since:
version 1.1.0

getWidthIdx

public int getWidthIdx()
Get width index of the line

Returns:
the width index
Since:
version 1.1.0

setColor

public void setColor(java.awt.Color color)
Set color of the line

Parameters:
color - the given color
Since:
version 1.1.0

setFromProcessID

public void setFromProcessID(java.lang.String from)

setInflectionPointList

public void setInflectionPointList(java.util.Vector v)
Set the inflection point list

Parameters:
v - the given inflection point list. (element in Vector is the Point instance)
Since:
version 1.1.0

setLabel

public void setLabel(java.lang.String label)
Set the label of link

Parameters:
label - the given label
Since:
version 1.1.0

setLinkTerm

public void setLinkTerm(ProLinkTerm term)
Set the link term

Parameters:
term - the given ProLinkTerm instance
Since:
version 1.1.0
See Also:
ProLinkTerm

setPatternIdx

public void setPatternIdx(int idx)
Set pattern index of the line

Parameters:
idx - the given index
Since:
version 1.1.0

setPropertys

public void setPropertys(java.lang.String propertyList)
Parse the specified property string and set the properties

Parameters:
propertyList - the given string
Since:
version 1.1.0

setRectJoint

public void setRectJoint(boolean value)

setRotateLabel

public void setRotateLabel(boolean bRotate)
set the lable is rotated.

Since:
version 1.2

setSingleLine

public void setSingleLine(boolean value)

setToProcessID

public void setToProcessID(java.lang.String to)

setWidthIdx

public void setWidthIdx(int idx)
Set width index of the line

Parameters:
idx - the given width index
Since:
version 1.1.0

toString

public java.lang.String toString()
Represent the string format of the PASEProcess instance

Overrides:
toString in class java.lang.Object
Returns:
from =[form process id] ;to =[to process id] ;label =[label string]
Since:
version 1.1.0

Agentflow
V3.1

Submit a bug or feature
Copyright 1999-2010 Flowring , Inc. 12F., No.120, Sec2, Gongdao 5th Rd.,
Hsinchu City 300, Taiwan (R.O.C.) All Rights Reserved.