|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.core.kivi.AbstractEffect
de.cau.cs.kieler.core.model.graphiti.GraphitiHighlightEffect
public class GraphitiHighlightEffect
A simple transient highlighting effect. Can change line colors, line styles, and line widths for Shapes and NodeFigures.
Constructor Summary | |
---|---|
GraphitiHighlightEffect(EObject eObject,
org.eclipse.graphiti.ui.editor.DiagramEditor editor)
Create a new instance for the given edit part using the given color. |
|
GraphitiHighlightEffect(EObject eObject,
org.eclipse.graphiti.ui.editor.DiagramEditor editor,
Color highlightColor)
Create a new instance for the given edit part using the given color. |
|
GraphitiHighlightEffect(EObject eObject,
org.eclipse.graphiti.ui.editor.DiagramEditor editor,
Color highlightColor,
boolean children)
Create a new instance for the given edit part using the given color. |
|
GraphitiHighlightEffect(EObject eObject,
org.eclipse.graphiti.ui.editor.DiagramEditor editor,
Color highlightColor,
Color background)
Create a new instance for the given edit part using the given color. |
|
GraphitiHighlightEffect(EObject eObject,
org.eclipse.graphiti.ui.editor.DiagramEditor editor,
Color highlightColor,
Color background,
boolean children)
Create a new instance for the given edit part using the given color. |
|
GraphitiHighlightEffect(EObject eObject,
org.eclipse.graphiti.ui.editor.DiagramEditor editor,
Color highlightColor,
Color background,
int lineStyle)
Create a new instance for the given edit part using the given color. |
|
GraphitiHighlightEffect(EObject eObject,
org.eclipse.graphiti.ui.editor.DiagramEditor editor,
Color highlightColor,
int lineStyle)
Create a new instance for the given edit part using the given color. |
|
GraphitiHighlightEffect(EObject eObject,
org.eclipse.graphiti.ui.editor.DiagramEditor editor,
int lineStyle)
Create a new instance for the given edit part using the given color. |
Method Summary | |
---|---|
void |
execute()
Execute the effect. |
boolean |
isMergeable()
Determines whether this effect can be merged with previously scheduled effects. |
IEffect |
merge(IEffect other)
Merge this effect with another effect. |
void |
setChangeWidth(boolean change)
Specify whether the outline width is increased during highlight or not. |
void |
setColor(Color c)
Set the color to use for highlighting. |
void |
setWidthIncrease(int newIncrease)
Set the line width increase. |
void |
setWidthMaximum(int newMaximum)
Set the maximum line width. |
void |
undo()
Attempt to undo the effect. |
Methods inherited from class de.cau.cs.kieler.core.kivi.AbstractEffect |
---|
schedule, scheduleUndo, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GraphitiHighlightEffect(EObject eObject, org.eclipse.graphiti.ui.editor.DiagramEditor editor)
eObject
- the EObject to highlighteditor
- the editor to highlight inpublic GraphitiHighlightEffect(EObject eObject, org.eclipse.graphiti.ui.editor.DiagramEditor editor, int lineStyle)
eObject
- the EObject to highlighteditor
- the editor to highlight inlineStyle
- the line style to use for borders (black/white mode)public GraphitiHighlightEffect(EObject eObject, org.eclipse.graphiti.ui.editor.DiagramEditor editor, Color highlightColor, int lineStyle)
eObject
- the EObject to highlighteditor
- the editor to highlight inhighlightColor
- the color to use for highlightinglineStyle
- the line style to use for borders (black/white mode)public GraphitiHighlightEffect(EObject eObject, org.eclipse.graphiti.ui.editor.DiagramEditor editor, Color highlightColor, Color background, int lineStyle)
eObject
- the EObject to highlighteditor
- the editor to highlight inhighlightColor
- the color to use for highlightingbackground
- the color to use for painting the backgroundlineStyle
- the line style to use for borders (black/white mode)public GraphitiHighlightEffect(EObject eObject, org.eclipse.graphiti.ui.editor.DiagramEditor editor, Color highlightColor)
eObject
- the EObject to highlighteditor
- the editor to highlight inhighlightColor
- the color to highlight the state withpublic GraphitiHighlightEffect(EObject eObject, org.eclipse.graphiti.ui.editor.DiagramEditor editor, Color highlightColor, Color background)
eObject
- the EObject to highlighteditor
- the editor to highlight inhighlightColor
- the color to highlight the state withbackground
- the color to use for painting the backgroundpublic GraphitiHighlightEffect(EObject eObject, org.eclipse.graphiti.ui.editor.DiagramEditor editor, Color highlightColor, boolean children)
eObject
- the EObject to highlighteditor
- the editor to highlight inhighlightColor
- the color to highlight the state withchildren
- true if labels should be highlighted in the given color as
wellpublic GraphitiHighlightEffect(EObject eObject, org.eclipse.graphiti.ui.editor.DiagramEditor editor, Color highlightColor, Color background, boolean children)
eObject
- the EObject to highlighteditor
- the editor to highlight inhighlightColor
- the color to highlight the state withbackground
- the color to use for painting the backgroundchildren
- true if labels should be highlighted in the given color as
wellMethod Detail |
---|
public void execute()
public void undo()
AbstractEffect
undo
in interface IEffect
undo
in class AbstractEffect
public void setColor(Color c)
c
- the colorpublic void setChangeWidth(boolean change)
change
- true if width shall be increasedpublic void setWidthIncrease(int newIncrease)
newIncrease
- new line width increase in pixelpublic void setWidthMaximum(int newMaximum)
newMaximum
- new maximum line width in pixelpublic boolean isMergeable()
AbstractEffect
isMergeable
in interface IEffect
isMergeable
in class AbstractEffect
public IEffect merge(IEffect other)
AbstractEffect
merge
in interface IEffect
merge
in class AbstractEffect
other
- the effect to merge with
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |