|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.common.generic.description.DescriptionObjectImpl
org.openbp.common.generic.description.DisplayObjectImpl
org.openbp.cockpit.modeler.skins.Skin
public class Skin
A skins defines how elements of the process model should be presented in the workspace. It maintains a list of symbol descriptors that describe how a particular figure (e. g. an initial node figure) should look like.
| Field Summary |
|---|
| Fields inherited from interface org.openbp.common.generic.Copyable |
|---|
COPY_DEEP, COPY_FIRST_LEVEL, COPY_SHALLOW |
| Constructor Summary | |
|---|---|
Skin()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
addLinkDescriptor(LinkDescriptor linkDescriptor)
Adds a link descriptor. |
void |
addSymbolDescriptor(SymbolDescriptor symbolDescriptor)
Adds a symbol descriptor. |
LinkDescriptor |
getLinkDescriptor(java.lang.String linkType)
Gets a link descriptor by its link type. |
java.util.List |
getLinkDescriptorList()
Gets the list of link descriptors. |
java.lang.String |
getNodeTitleFormat()
Gets the node title format. |
java.lang.String |
getParamTitleFormat()
Gets the parameter title format. |
ResourceCollection |
getResource()
Gets the skin resource. |
java.lang.String |
getResourceName()
Gets the resource name. |
java.lang.String |
getSocketTitleFormat()
Gets the socket title format. |
SymbolDescriptor |
getSymbolDescriptor(java.lang.String nodeType)
Gets a symbol descriptor by its node type. |
java.util.List |
getSymbolDescriptorList()
Gets the list of symbol descriptors. |
void |
initalizeNewProcess(ProcessItem process)
Initalizes the properties of a new process according to the skin's settings. |
boolean |
initialize(java.lang.String skinResPath)
Initializes the descriptor. |
java.lang.Boolean |
isControlAnchorVisible()
Gets the flag if control anchors should be visible. |
java.lang.Boolean |
isControlLinkVisible()
Gets the flag if control links should be visible. |
java.lang.Boolean |
isDataLinkVisible()
Gets the flag if data links should be visible. |
boolean |
isDefaultSkin()
Gets the default skin. |
boolean |
isDisableShadows()
Gets the disable shadows flag. |
java.lang.Boolean |
isNameDisplay()
Gets the flag if technical names should be displayed instead of display names. |
boolean |
isRadialTags()
Gets the radial tags flag. |
boolean |
isValid()
Gets the valid. |
void |
setControlAnchorVisible(java.lang.Boolean controlAnchorVisible)
Sets the flag if control anchors should be visible. |
void |
setControlLinkVisible(java.lang.Boolean controlLinkVisible)
Sets the flag if control links should be visible. |
void |
setDataLinkVisible(java.lang.Boolean dataLinkVisible)
Sets the flag if data links should be visible. |
void |
setDefaultSkin(boolean defaultSkin)
Sets the default skin. |
void |
setDisableShadows(boolean disableShadows)
Sets the disable shadows flag. |
void |
setNameDisplay(java.lang.Boolean nameDisplay)
Sets the flag if technical names should be displayed instead of display names. |
void |
setNodeTitleFormat(java.lang.String nodeTitleFormat)
Sets the node title format. |
void |
setParamTitleFormat(java.lang.String paramTitleFormat)
Sets the parameter title format. |
void |
setRadialTags(boolean radialTags)
Sets the radial tags flag. |
void |
setResourceCollection(ResourceCollection resourceCollection)
Sets the skin resource. |
void |
setResourceName(java.lang.String resourceName)
Sets the resource name. |
void |
setSocketTitleFormat(java.lang.String socketTitleFormat)
Sets the socket title format. |
void |
setValid(boolean valid)
Sets the valid. |
boolean |
validate(java.lang.String descriptorDir,
java.util.List errorMsgs)
Validates the skin. |
| Methods inherited from class org.openbp.common.generic.description.DisplayObjectImpl |
|---|
copyFrom, getDisplayName, getDisplayText, setDisplayName |
| Methods inherited from class org.openbp.common.generic.description.DescriptionObjectImpl |
|---|
clone, compareTo, getDescription, getDescriptionEscape, getDescriptionText, getName, setDescription, setDescriptionEscape, setName, toString, validate |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.openbp.common.generic.description.DescriptionObject |
|---|
clone, getDescription, getDescriptionText, getName, setDescription, setName |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
public Skin()
| 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 void initalizeNewProcess(ProcessItem process)
process - Process to initializepublic java.lang.String getResourceName()
public void setResourceName(java.lang.String resourceName)
public java.lang.Boolean isControlAnchorVisible()
public void setControlAnchorVisible(java.lang.Boolean controlAnchorVisible)
public java.lang.Boolean isControlLinkVisible()
public void setControlLinkVisible(java.lang.Boolean controlLinkVisible)
public java.lang.Boolean isDataLinkVisible()
public void setDataLinkVisible(java.lang.Boolean dataLinkVisible)
public java.lang.Boolean isNameDisplay()
public void setNameDisplay(java.lang.Boolean nameDisplay)
public boolean isRadialTags()
public void setRadialTags(boolean radialTags)
public boolean isDisableShadows()
public void setDisableShadows(boolean disableShadows)
public boolean isDefaultSkin()
public void setDefaultSkin(boolean defaultSkin)
public java.lang.String getParamTitleFormat()
public void setParamTitleFormat(java.lang.String paramTitleFormat)
public java.lang.String getSocketTitleFormat()
public void setSocketTitleFormat(java.lang.String socketTitleFormat)
public java.lang.String getNodeTitleFormat()
public void setNodeTitleFormat(java.lang.String nodeTitleFormat)
public SymbolDescriptor getSymbolDescriptor(java.lang.String nodeType)
nodeType - Type of the node that should be represented by the symbol descriptor
public void addSymbolDescriptor(SymbolDescriptor symbolDescriptor)
symbolDescriptor - The symbol descriptor to addpublic java.util.List getSymbolDescriptorList()
SymbolDescriptor objectspublic LinkDescriptor getLinkDescriptor(java.lang.String linkType)
linkType - Type of the link that should be represented by the link descriptor
public void addLinkDescriptor(LinkDescriptor linkDescriptor)
linkDescriptor - The link descriptor to addpublic java.util.List getLinkDescriptorList()
LinkDescriptor objectspublic boolean isValid()
public void setValid(boolean valid)
public ResourceCollection getResource()
public void setResourceCollection(ResourceCollection resourceCollection)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||