|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.graphiti.pattern.AbstractBasePattern
public abstract class AbstractBasePattern
The Class AbstractBasePattern.
Field Summary | |
---|---|
private IFeatureProvider |
featureProvider
|
Constructor Summary | |
---|---|
AbstractBasePattern()
|
Method Summary | |
---|---|
PictogramElement |
add(IAddContext context)
Adds the. |
boolean |
canAdd(IAddContext context)
Can add. |
protected Object |
getBusinessObjectForPictogramElement(PictogramElement pe)
Gets the business object for pictogram element. |
protected Diagram |
getDiagram()
Gets the diagram. |
protected IDiagramEditor |
getDiagramEditor()
Gets the diagram editor. |
IFeatureProvider |
getFeatureProvider()
Gets the feature provider. |
protected IMappingProvider |
getMappingProvider()
Gets the mapping provider. |
protected void |
link(PictogramElement pe,
Object businessObject)
Link. |
protected void |
link(PictogramElement pe,
Object[] businessObjects)
Link. |
protected Color |
manageColor(IColorConstant colorConstant)
A convenient method for the color handling which simply calls Graphiti.getGaService().manageColor(...) . |
protected Color |
manageColor(int red,
int green,
int blue)
A convenient method for the color handling which simply calls Graphiti.getGaService().manageColor(...) . |
void |
setFeatureProvider(IFeatureProvider featureProvider)
Sets the feature provider. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private IFeatureProvider featureProvider
Constructor Detail |
---|
public AbstractBasePattern()
Method Detail |
---|
public PictogramElement add(IAddContext context)
context
- the add context
public boolean canAdd(IAddContext context)
context
- the add context
public IFeatureProvider getFeatureProvider()
getFeatureProvider
in interface IFeatureProviderHolder
public void setFeatureProvider(IFeatureProvider featureProvider)
featureProvider
- the new featureProviderprotected Object getBusinessObjectForPictogramElement(PictogramElement pe)
pe
- the pictogram element
protected IDiagramEditor getDiagramEditor()
protected IMappingProvider getMappingProvider()
protected void link(PictogramElement pe, Object businessObject)
pe
- the pictogram elementbusinessObject
- the business objectprotected void link(PictogramElement pe, Object[] businessObjects)
pe
- the pictogram elementbusinessObjects
- the business objectsprotected Diagram getDiagram()
protected Color manageColor(IColorConstant colorConstant)
Graphiti.getGaService().manageColor(...)
.
colorConstant
- the color constant
protected Color manageColor(int red, int green, int blue)
Graphiti.getGaService().manageColor(...)
.
red
- the redgreen
- the greenblue
- the blue
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |