|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.graphiti.pattern.AbstractBasePattern
org.eclipse.graphiti.pattern.AbstractPattern
org.eclipse.graphiti.pattern.TypedPattern
public abstract class TypedPattern
This class provides the basis for all specific pattern types. It provides
functionality to tag a shape as being created and maintained by a specific
pattern type. Type type is identified using a special Property
with
the key PROPERTY_KEY_PATTERN_TYPE.
Field Summary | |
---|---|
protected static java.lang.String |
PROPERTY_KEY_PATTERN_TYPE
Constant indication the type of pattern, e.g. |
Fields inherited from class org.eclipse.graphiti.pattern.AbstractPattern |
---|
EMPTY_STRING_ARRAY |
Fields inherited from interface org.eclipse.graphiti.func.ICreate |
---|
EMPTY |
Fields inherited from interface org.eclipse.graphiti.func.IDirectEditing |
---|
TYPE_CUSTOM, TYPE_DROPDOWN, TYPE_DROPDOWN_READ_ONLY, TYPE_MULTILINETEXT, TYPE_NONE, TYPE_TEXT |
Constructor Summary | |
---|---|
TypedPattern()
Constructor to be used when no configuration data is needed. |
|
TypedPattern(IPatternConfiguration patternConfiguration)
Constructor to be used when configuration data is needed. |
Method Summary | |
---|---|
protected java.lang.String |
getPatternType(PropertyContainer patternRootShape)
Returns the property that indicates that the given root shape of the pattern is created and maintained by a specific pattern type if it is set for the given shape or one of its parents. |
protected void |
setPatternType(PropertyContainer patternRootShape,
java.lang.String patternType)
Sets the property that indicates that the given root shape of the pattern is created and maintained by a specific pattern type. |
Methods inherited from class org.eclipse.graphiti.pattern.AbstractBasePattern |
---|
add, canAdd, getBusinessObjectForPictogramElement, getDiagram, getDiagramBehavior, getFeatureProvider, getMappingProvider, link, link, manageColor, manageColor, manageFont, manageFont, setFeatureProvider |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.graphiti.pattern.IPattern |
---|
add, canAdd, setFeatureProvider |
Field Detail |
---|
protected static final java.lang.String PROPERTY_KEY_PATTERN_TYPE
Constructor Detail |
---|
public TypedPattern()
public TypedPattern(IPatternConfiguration patternConfiguration)
Method Detail |
---|
protected void setPatternType(PropertyContainer patternRootShape, java.lang.String patternType)
patternRootShape
- The PropertyContainer
object that is used as root
shape of the pattern.patternType
- The String
type of the pattern.protected java.lang.String getPatternType(PropertyContainer patternRootShape)
ContainerShape
in the shape hierarchy
is asked if there is no parent the GraphicsAlgorithm
parent is
asked.
patternRootShape
- The PropertyContainer
object that is used as root
shape of the pattern.
String
type of the pattern.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |