|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.keg.custom.KEGFigureProvider
public class KEGFigureProvider
The figure provider for KEG figures.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface de.cau.cs.kieler.karma.IRenderingProvider |
---|
IRenderingProvider.CollapseStatus |
Constructor Summary | |
---|---|
KEGFigureProvider()
|
Method Summary | |
---|---|
IBorderItemLocator |
getBorderItemLocatorByString(String input,
IFigure parentFigure,
Object locator,
EObject object,
IRenderingProvider.CollapseStatus collapseStatus)
Returns a BorderItemLocator according to a given string. |
IFigure |
getDefaultFigure()
|
LayoutManager |
getDefaultLayoutManager()
|
IFigure |
getFigureByString(String input,
IFigure oldFigure,
EObject object,
EditPart editPart)
Returns a figure according to a given string. |
LayoutManager |
getLayoutManagerByString(String input,
LayoutManager oldLayoutManager,
EObject object)
Returns a LayoutManager according to a given string. |
Dimension |
getSizeByString(String input,
EObject object,
EditPart part)
Returns the size of a figure according to a given string. |
static void |
setBackgroundColor(Color color)
Sets the current background color. |
static void |
setForegroundColor(Color color)
Sets the current foreground color. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KEGFigureProvider()
Method Detail |
---|
public IFigure getFigureByString(String input, IFigure oldFigure, EObject object, EditPart editPart)
getFigureByString
in interface IRenderingProvider
input
- a string representation of the figureoldFigure
- the old figureobject
- the model elementeditPart
- the corresponding editPart
public IFigure getDefaultFigure()
public LayoutManager getLayoutManagerByString(String input, LayoutManager oldLayoutManager, EObject object)
getLayoutManagerByString
in interface IRenderingProvider
input
- a string representation of the LayoutManageroldLayoutManager
- the old LayoutManagerobject
- the model element
public LayoutManager getDefaultLayoutManager()
public IBorderItemLocator getBorderItemLocatorByString(String input, IFigure parentFigure, Object locator, EObject object, IRenderingProvider.CollapseStatus collapseStatus)
getBorderItemLocatorByString
in interface IRenderingProvider
input
- a string representation of the BorderItemLocatorparentFigure
- the parentFigurelocator
- the old BorderItemLocatorobject
- the model element
public Dimension getSizeByString(String input, EObject object, EditPart part)
null
.
The string input is the same as the one for
getFigureByString
.
getSizeByString
in interface IRenderingProvider
input
- a string representation of the figureobject
- the model elementpart
- the corresponding editPart
null
if no fixed size shall be setpublic static void setForegroundColor(Color color)
color
- the colorpublic static void setBackgroundColor(Color color)
color
- the color
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |