|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kiml.ui.util.KimlUiUtil
public final class KimlUiUtil
Utility methods used for the KIML UI.
Method Summary | |
---|---|
static Insets |
calcInsets(IFigure parent,
IFigure child)
Determines the insets for a parent figure, relative to the given child. |
static Rectangle |
getAbsoluteBounds(IFigure figure)
Calculates the absolute bounds of the given figure. |
static Point |
getAbsolutePoint(Connection connection,
int index)
Calculates an absolute position for one of the bend points of the given connection. |
static Object |
getOption(EditPart editPart,
String optionId)
Retrieves a layout option from the given edit part by using the layout inspector associated with the edit part type. |
static Object |
getOption(ILayoutInspector inspector,
String optionId)
Retrieves a layout option from the given layout inspector by querying the option for the edit part's class name and its domain model name. |
static LayoutOptionData |
getOptionData(LayoutProviderData[] providerDataArray,
String displayName)
Retrieves a suitable layout option data instance that matches the given user friendly display name. |
static boolean |
isNoLayout(EditPart editPart)
Determines whether the given edit part should not be layouted. |
static void |
runModelChange(Runnable runnable,
TransactionalEditingDomain editingDomain,
String label)
Performs the model changes specified in the given runnable in a safe context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Insets calcInsets(IFigure parent, IFigure child)
parent
- the figure of a parent edit partchild
- the figure of a child edit part
public static Rectangle getAbsoluteBounds(IFigure figure)
figure
- a figure
public static Point getAbsolutePoint(Connection connection, int index)
connection
- a connection figureindex
- the index in the point list
public static void runModelChange(Runnable runnable, TransactionalEditingDomain editingDomain, String label)
runnable
- a runnable that performs model changeseditingDomain
- the editing domain for the changeslabel
- a user friendly label shown for the undo actionpublic static Object getOption(EditPart editPart, String optionId)
editPart
- an edit partoptionId
- layout option identifier
null
public static Object getOption(ILayoutInspector inspector, String optionId)
inspector
- a layout inspector for an edit partoptionId
- layout option identifier
null
public static boolean isNoLayout(EditPart editPart)
editPart
- an edit part
public static LayoutOptionData getOptionData(LayoutProviderData[] providerDataArray, String displayName)
providerDataArray
- array of applicable layout provider datadisplayName
- display name of the layout option as seen by the user
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |