public class PSDBlock
extends java.lang.Object
Constructor and Description |
---|
PSDBlock(java.lang.String dataElement)
constructor to initialize the block
|
Modifier and Type | Method and Description |
---|---|
void |
drawBlock(double startX,
java.awt.Color thisColor,
java.awt.Graphics2D g)
Draws the data-element block on top of the the lifeline
|
java.lang.String |
getDataElement()
Returns the name of the data-element of this block
|
java.util.Set<PSDArrow> |
getInArrows()
Returns the arrows that end in this block
|
java.util.Set<PSDArrow> |
getOutArrows()
Returns the arrows that originate from this block
|
int |
getSimilarIndex()
returns the similarIndex
|
boolean |
isInBlock(java.awt.Point p,
java.util.Map<java.lang.String,PSDLifeLine> lifeLines,
double scale)
Returns true if point p is in this block
|
void |
setEndAt(double endAt)
Sets the end position of this block
|
void |
setInArrows(java.util.Set<PSDArrow> inArrows)
Sets the arrows that end in this block
|
void |
setOutArrows(java.util.Set<PSDArrow> outArrows)
Sets the arrows that originate from this block
|
void |
setSimilarIndex(int similarIndex)
sets similarIndex
|
void |
setStartAt(double startAt)
Sets the starting position of this block
|
public PSDBlock(java.lang.String dataElement)
dataElement
- Stringpublic java.lang.String getDataElement()
public void setStartAt(double startAt)
startAt
- doublepublic void setEndAt(double endAt)
endAt
- doublepublic void setSimilarIndex(int similarIndex)
similarIndex
- intpublic int getSimilarIndex()
public java.util.Set<PSDArrow> getInArrows()
public void setInArrows(java.util.Set<PSDArrow> inArrows)
inArrows
- Setpublic java.util.Set<PSDArrow> getOutArrows()
public void setOutArrows(java.util.Set<PSDArrow> outArrows)
outArrows
- Setpublic boolean isInBlock(java.awt.Point p, java.util.Map<java.lang.String,PSDLifeLine> lifeLines, double scale)
p
- PointlifeLines
- Mapscale
- doublepublic void drawBlock(double startX, java.awt.Color thisColor, java.awt.Graphics2D g)
startX
- doublethisColor
- Colorg
- Graphics2D