|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kaom.karma.ptolemy.figurecreation.FigureProvider
public class FigureProvider
Class for generating draw2d Figures out of svg documents and EditorIcons.
Constructor Summary | |
---|---|
FigureProvider()
|
Method Summary | |
---|---|
IFigure |
createAccumulator()
A custom svg of an Accumulator since the ptolemy one is bugged. |
IFigure |
createDirector()
Method holding a figure description used by directors. |
IFigure |
createFigureFromIcon(EditorIcon icon)
Creates a draw2d ImageFigure out of an ptolemy EditorIcon. |
IFigure |
createFigureFromSvg(Document doc)
Create a draw2d figure out of an svg Document. |
IFigure |
createInputPort()
Create a figure for an entity representing an ptolemy input port. |
IFigure |
createMonitorValue(EObject object)
Method for creating a custom monitorvalue figure. |
IFigure |
createOutputPort()
Create a figure for an entity representing an ptolemy output port. |
IFigure |
createValueFigure(EObject object,
String valueAttribute,
EditPart part)
A figure that displays a value. |
IFigure |
getDefaultFigure()
builds a default figure for this diagram. |
IFigure |
getErrorFigure()
A figure to display if things go haywire. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FigureProvider()
Method Detail |
---|
public IFigure createFigureFromIcon(EditorIcon icon)
icon
- the EditorIcon to display in draw2d
public IFigure createInputPort()
public IFigure createOutputPort()
public IFigure createFigureFromSvg(Document doc)
doc
- the Document holding the svg description
public IFigure getDefaultFigure()
public IFigure createDirector()
public IFigure createAccumulator()
public IFigure createMonitorValue(EObject object)
object
- the modelelement
public IFigure createValueFigure(EObject object, String valueAttribute, EditPart part)
object
- the model elementvalueAttribute
- name of the annotation holding the valuepart
- the editpart of the model element
public IFigure getErrorFigure()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |