public abstract class DataTypeAddFeature
extends org.eclipse.graphiti.features.impl.AbstractAddFeature
| Constructor and Description |
|---|
DataTypeAddFeature(org.eclipse.graphiti.features.IFeatureProvider fp) |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.graphiti.mm.pictograms.PictogramElement |
add(org.eclipse.graphiti.features.context.IAddContext context) |
boolean |
canAdd(org.eclipse.graphiti.features.context.IAddContext context) |
static int |
getYOffsetForIndex(org.eclipse.graphiti.mm.pictograms.Diagram diagram,
eu.vicci.process.model.sofia.DataType object,
int index) |
org.eclipse.graphiti.mm.pictograms.ContainerShape |
makeShape(org.eclipse.graphiti.util.IColorConstant backgroundColor,
org.eclipse.graphiti.features.context.IAddContext context,
String name) |
org.eclipse.graphiti.mm.pictograms.ContainerShape |
makeShape(int index,
org.eclipse.graphiti.util.IColorConstant backgroundColor,
org.eclipse.graphiti.features.context.IAddContext context,
String name) |
static void |
resizeWholeType(org.eclipse.graphiti.mm.pictograms.Diagram diagram,
org.eclipse.graphiti.mm.pictograms.PictogramElement pe)
takes a
PictogramElement of a DataType and resizes the
whole ComplexType up to it's root |
canExecute, execute, getNameaddGraphicalRepresentation, canUndo, getAllBusinessObjectsForPictogramElement, getBusinessObjectForPictogramElement, getDescription, getDiagram, getDiagramBehavior, getFeatureProvider, getProgressCallback, getUserDecision, hasDoneChanges, isAvailable, layoutPictogramElement, link, link, manageColor, manageColor, manageDefaultFont, manageFont, manageFont, setProgressCallback, toString, updatePictogramElementclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic DataTypeAddFeature(org.eclipse.graphiti.features.IFeatureProvider fp)
public boolean canAdd(org.eclipse.graphiti.features.context.IAddContext context)
public org.eclipse.graphiti.mm.pictograms.PictogramElement add(org.eclipse.graphiti.features.context.IAddContext context)
public org.eclipse.graphiti.mm.pictograms.ContainerShape makeShape(org.eclipse.graphiti.util.IColorConstant backgroundColor,
org.eclipse.graphiti.features.context.IAddContext context,
String name)
backgroundColor - the background for the DataTypecontext - the IAddContext in which the DataType should be addedname - the name of the DataTypepublic org.eclipse.graphiti.mm.pictograms.ContainerShape makeShape(int index,
org.eclipse.graphiti.util.IColorConstant backgroundColor,
org.eclipse.graphiti.features.context.IAddContext context,
String name)
index - the index at which the DataType should be insertedbackgroundColor - the background for the DataTypecontext - the IAddContext in which the DataType should be addedname - the name of the DataTypepublic static int getYOffsetForIndex(org.eclipse.graphiti.mm.pictograms.Diagram diagram,
eu.vicci.process.model.sofia.DataType object,
int index)
index - the index for which to calculate the vertical offset frompublic static void resizeWholeType(org.eclipse.graphiti.mm.pictograms.Diagram diagram,
org.eclipse.graphiti.mm.pictograms.PictogramElement pe)
PictogramElement of a DataType and resizes the
whole ComplexType up to it's rootdiagram - the Diagrampe - The DataType's PictogramElementCopyright © 2018. All rights reserved.