|
||||||||||
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.gmf.effects.HighlightEffect
public class HighlightEffect
A simple transient highlighting effect. Can change line colors, line styles, and line widths for Shapes and NodeFigures.
Constructor Summary | |
---|---|
HighlightEffect(EObject eObject,
IWorkbenchPart editor)
Create a new instance for the given edit part using the given color. |
|
HighlightEffect(EObject eObject,
IWorkbenchPart editor,
Color highlightColor)
Create a new instance for the given edit part using the given color. |
|
HighlightEffect(EObject eObject,
IWorkbenchPart editor,
Color highlightColor,
boolean children)
Create a new instance for the given edit part using the given color. |
|
HighlightEffect(EObject eObject,
IWorkbenchPart editor,
Color highlightColor,
Color background)
Create a new instance for the given edit part using the given color. |
|
HighlightEffect(EObject eObject,
IWorkbenchPart editor,
Color highlightColor,
Color background,
boolean children)
Create a new instance for the given edit part using the given color. |
|
HighlightEffect(EObject eObject,
IWorkbenchPart editor,
Color highlightColor,
Color background,
boolean children,
boolean persistent)
Create a new instance for the given edit part using the given color. |
|
HighlightEffect(EObject eObject,
IWorkbenchPart editor,
Color highlightColor,
Color background,
int lineStyle)
Create a new instance for the given edit part using the given color. |
|
HighlightEffect(EObject eObject,
IWorkbenchPart editor,
Color highlightColor,
int lineStyle)
Create a new instance for the given edit part using the given color. |
|
HighlightEffect(EObject eObject,
IWorkbenchPart 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 HighlightEffect(EObject eObject, IWorkbenchPart editor)
eObject
- the EObject to highlighteditor
- the editor to highlight inpublic HighlightEffect(EObject eObject, IWorkbenchPart editor, int lineStyle)
eObject
- the EObject to highlighteditor
- the editor to highlight inlineStyle
- the line style to use for borders (black/white mode)public HighlightEffect(EObject eObject, IWorkbenchPart 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 HighlightEffect(EObject eObject, IWorkbenchPart 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 HighlightEffect(EObject eObject, IWorkbenchPart editor, Color highlightColor)
eObject
- the EObject to highlighteditor
- the editor to highlight inhighlightColor
- the color to use for highlightingpublic HighlightEffect(EObject eObject, IWorkbenchPart editor, Color highlightColor, Color background)
eObject
- the EObject to highlighteditor
- the editor to highlight inhighlightColor
- the color to use for highlightingbackground
- the color to use for painting the backgroundpublic HighlightEffect(EObject eObject, IWorkbenchPart editor, Color highlightColor, boolean children)
eObject
- the EObject to highlighteditor
- the editor to highlight inhighlightColor
- the color to use for highlightingchildren
- true if labels should be highlighted in the given color as wellpublic HighlightEffect(EObject eObject, IWorkbenchPart editor, Color highlightColor, Color background, boolean children)
eObject
- the EObject to highlighteditor
- the editor to highlight inhighlightColor
- the color to use for highlightingbackground
- the color to use for painting the backgroundchildren
- true if labels should be highlighted in the given color as wellpublic HighlightEffect(EObject eObject, IWorkbenchPart editor, Color highlightColor, Color background, boolean children, boolean persistent)
eObject
- the EObject to highlighteditor
- the editor to highlight inhighlightColor
- the color to use for highlightingbackground
- the color to use for painting the backgroundchildren
- true if labels should be highlighted in the given color as wellpersistent
- true if highlighting should be persistentMethod 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()
isMergeable
in interface IEffect
isMergeable
in class AbstractEffect
public IEffect merge(IEffect other)
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 |