Class PSDArrow
- java.lang.Object
-
- org.processmining.plugins.psd.model.PSDArrow
-
- Direct Known Subclasses:
PSDPatternArrow,PSDSequenceArrow
public class PSDArrow extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PSDArrow(java.lang.String source, java.lang.String destination)constructor to initialize arrow
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddrawArrow(java.util.Map<java.lang.String,PSDLifeLine> lifeLines, java.awt.Color thisColor, java.awt.Graphics2D g)Draws the arrowjava.lang.StringgetDestination()Returns the name of the data element instance in which the arrow ends.PSDBlockgetDestinationBlock()Returns the block in which the arrow ends.doublegetEndAt()Returns the end position of the arrowjava.lang.StringgetSource()Returns the name of the data element instance from which the arrow originates.PSDBlockgetSourceBlock()Returns the block from which the arrow originates.doublegetStartAt()Returns the starting position of the arrowbooleanisOnLine(java.awt.Point p, java.util.Map<java.lang.String,PSDLifeLine> lifeLines, double scale)Returns true if point p is on the line of the arrow (or at most 2 pixels away)voidsetDestinationBlock(PSDBlock destinationBlock)Sets the block in which the arrow ends to destinationBlockvoidsetEndAt(double endAt)Sets the end position of the arrow.voidsetSourceBlock(PSDBlock sourceBlock)Sets the block from which the arrow originates to sourceBlockvoidsetStartAt(double startAt)Sets the starting position of the arrow.
-
-
-
Method Detail
-
getSource
public java.lang.String getSource()
Returns the name of the data element instance from which the arrow originates.- Returns:
- String
-
getDestination
public java.lang.String getDestination()
Returns the name of the data element instance in which the arrow ends.- Returns:
- String
-
getStartAt
public double getStartAt()
Returns the starting position of the arrow- Returns:
- double
-
getEndAt
public double getEndAt()
Returns the end position of the arrow- Returns:
- double
-
setStartAt
public void setStartAt(double startAt)
Sets the starting position of the arrow.- Parameters:
startAt- double
-
setEndAt
public void setEndAt(double endAt)
Sets the end position of the arrow.- Parameters:
endAt- double
-
getSourceBlock
public PSDBlock getSourceBlock()
Returns the block from which the arrow originates.- Returns:
- PSDBlock
-
setSourceBlock
public void setSourceBlock(PSDBlock sourceBlock)
Sets the block from which the arrow originates to sourceBlock- Parameters:
sourceBlock- PSDBlock
-
getDestinationBlock
public PSDBlock getDestinationBlock()
Returns the block in which the arrow ends.- Returns:
- PSDBlock
-
setDestinationBlock
public void setDestinationBlock(PSDBlock destinationBlock)
Sets the block in which the arrow ends to destinationBlock- Parameters:
destinationBlock- PSDBlock
-
drawArrow
public void drawArrow(java.util.Map<java.lang.String,PSDLifeLine> lifeLines, java.awt.Color thisColor, java.awt.Graphics2D g)
Draws the arrow- Parameters:
lifeLines- MapthisColor- Colorg- Graphics2D
-
isOnLine
public boolean isOnLine(java.awt.Point p, java.util.Map<java.lang.String,PSDLifeLine> lifeLines, double scale)Returns true if point p is on the line of the arrow (or at most 2 pixels away)- Parameters:
p- PointlifeLines- Mapscale- double- Returns:
- boolean
-
-