|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.cockpit.modeler.skins.LinkDescriptor
public class LinkDescriptor
Control or data link descriptor.
| Field Summary | |
|---|---|
static int |
DECORATION_ARROW
Decoration: Arrow |
static int |
DECORATION_NONE
Decoration: None |
static int |
DEFAULT_STROKE_WIDTH
Default stroke width |
static int |
LINETYPE_DOTTED
Line type: Dotted line |
static int |
LINETYPE_SOLID
Line type: Solid line |
| Constructor Summary | |
|---|---|
LinkDescriptor()
Default constructor. |
|
| Method Summary | |
|---|---|
java.awt.Color |
getColor()
Gets the link color. |
java.awt.Color |
getColor2()
Gets the link color 2. |
java.lang.String |
getColor2Str()
Gets the link color 2 (colon-separated RGBA value). |
java.awt.Color |
getColor3()
Gets the link color 3. |
java.lang.String |
getColor3Str()
Gets the link color 3 (colon-separated RGBA value). |
java.awt.Color |
getColor4()
Gets the link color 4. |
java.lang.String |
getColor4Str()
Gets the link color 4 (colon-separated RGBA value). |
java.lang.String |
getColorStr()
Gets the link color (colon-separated RGBA value). |
int |
getEndDecoration()
Gets the end decoration. |
java.lang.String |
getEndDecorationStr()
Gets the end decoration (string value). |
int |
getLineType()
Gets the line type. |
java.lang.String |
getLineTypeStr()
Gets the line type (string value). |
java.lang.String |
getLinkType()
Gets the link type. |
int |
getStartDecoration()
Gets the start decoration. |
java.lang.String |
getStartDecorationStr()
Gets the start decoration (string value). |
java.awt.Stroke |
getStroke()
Gets the frame stroke. |
int |
getStrokeWidth()
Gets the stroke width. |
boolean |
hasStrokeWidth()
Determines if the stroke width should be persisted. |
boolean |
initialize(java.lang.String skinResPath)
Initializes the descriptor. |
void |
setColor(java.awt.Color color)
Sets the link color. |
void |
setColor2(java.awt.Color color2)
Sets the link color 2. |
void |
setColor2Str(java.lang.String s)
Sets the link color 2 (colon-separated RGBA value). |
void |
setColor3(java.awt.Color color3)
Sets the link color 3. |
void |
setColor3Str(java.lang.String s)
Sets the link color 3 (colon-separated RGBA value). |
void |
setColor4(java.awt.Color color4)
Sets the link color 4. |
void |
setColor4Str(java.lang.String s)
Sets the link color 4 (colon-separated RGBA value). |
void |
setColorStr(java.lang.String s)
Sets the link color (colon-separated RGBA value). |
void |
setEndDecoration(int endDecoration)
Sets the end decoration. |
void |
setEndDecorationStr(java.lang.String endDecorationStr)
Sets the end decoration. |
void |
setLineType(int lineType)
Sets the line type. |
void |
setLineTypeStr(java.lang.String lineTypeStr)
Sets the line type. |
void |
setLinkType(java.lang.String linkType)
Sets the link type. |
void |
setStartDecoration(int startDecoration)
Sets the start decoration. |
void |
setStartDecorationStr(java.lang.String startDecorationStr)
Sets the start decoration. |
void |
setStrokeWidth(int strokeWidth)
Sets the stroke width. |
boolean |
validate(java.lang.String descriptorDir,
java.util.List errorMsgs)
Validates the descriptor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_STROKE_WIDTH
public static final int LINETYPE_SOLID
public static final int LINETYPE_DOTTED
public static final int DECORATION_NONE
public static final int DECORATION_ARROW
| Constructor Detail |
|---|
public LinkDescriptor()
| Method Detail |
|---|
public boolean validate(java.lang.String descriptorDir,
java.util.List errorMsgs)
descriptorDir - Path to the directory containing the descriptorerrorMsgs - List of strings that holds error messages
public boolean initialize(java.lang.String skinResPath)
skinResPath - Resource path to the resource folder containing the descriptor
public java.lang.String getLinkType()
public void setLinkType(java.lang.String linkType)
public java.awt.Color getColor()
public void setColor(java.awt.Color color)
public java.lang.String getColorStr()
public void setColorStr(java.lang.String s)
public java.awt.Color getColor2()
public void setColor2(java.awt.Color color2)
public java.lang.String getColor2Str()
public void setColor2Str(java.lang.String s)
public java.awt.Color getColor3()
public void setColor3(java.awt.Color color3)
public java.lang.String getColor3Str()
public void setColor3Str(java.lang.String s)
public java.awt.Color getColor4()
public void setColor4(java.awt.Color color4)
public java.lang.String getColor4Str()
public void setColor4Str(java.lang.String s)
public boolean hasStrokeWidth()
public int getStrokeWidth()
public void setStrokeWidth(int strokeWidth)
strokeWidth - The stroke width in pixel/10 or 0 for no strokepublic int getLineType()
LINETYPE_SOLID/LINETYPE_DOTTEDpublic void setLineType(int lineType)
lineType - LINETYPE_SOLID/LINETYPE_DOTTEDpublic java.lang.String getLineTypeStr()
public void setLineTypeStr(java.lang.String lineTypeStr)
lineTypeStr - "solid"/"dotted"public int getStartDecoration()
DECORATION_NONE/DECORATION_ARROWpublic void setStartDecoration(int startDecoration)
startDecoration - DECORATION_NONE/DECORATION_ARROWpublic java.lang.String getStartDecorationStr()
public void setStartDecorationStr(java.lang.String startDecorationStr)
startDecorationStr - "none"/"arrow"public int getEndDecoration()
DECORATION_NONE/DECORATION_ARROWpublic void setEndDecoration(int endDecoration)
endDecoration - DECORATION_NONE/DECORATION_ARROWpublic java.lang.String getEndDecorationStr()
public void setEndDecorationStr(java.lang.String endDecorationStr)
endDecorationStr - "none"/"arrow"public java.awt.Stroke getStroke()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||