|
Zest 1.5.0.201308190730 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Item
org.eclipse.zest.core.widgets.GraphItem
public abstract class GraphItem
Provides support for property changes. All model elements extend this class. Also extends the Item (Widget) class to be used inside a StructuredViewer.
Field Summary | |
---|---|
static int |
CONNECTION
|
static int |
CONTAINER
|
static int |
GRAPH
|
static int |
NODE
|
Constructor Summary | |
---|---|
GraphItem(Widget parent,
int style)
|
|
GraphItem(Widget parent,
int style,
java.lang.Object data)
|
Method Summary | |
---|---|
protected boolean |
checkStyle(int styleToCheck)
Checks a style to see if it is set on the given graph item |
void |
dispose()
|
abstract Graph |
getGraphModel()
Gets the graph that this item is rooted on. |
abstract int |
getItemType()
Gets the graph item type. |
abstract void |
highlight()
Highlights the current GraphItem. |
abstract boolean |
isVisible()
Get the visibility of this item. |
abstract void |
setVisible(boolean visible)
Set the visibility of this item. |
abstract void |
unhighlight()
Unhighlight sets the graphItem (either a graphNode or graphConnection) back to the unhighlight figure or color. |
Methods inherited from class org.eclipse.swt.widgets.Item |
---|
checkSubclass, getImage, getText, setImage, setText |
Methods inherited from class org.eclipse.swt.widgets.Widget |
---|
addDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int GRAPH
public static final int NODE
public static final int CONNECTION
public static final int CONTAINER
Constructor Detail |
---|
public GraphItem(Widget parent, int style)
parent
- style
- public GraphItem(Widget parent, int style, java.lang.Object data)
parent
- style
- Method Detail |
---|
public void dispose()
dispose
in class Widget
public abstract int getItemType()
public abstract void setVisible(boolean visible)
visible
- whether or not this item is visible.public abstract boolean isVisible()
public abstract Graph getGraphModel()
public abstract void highlight()
public abstract void unhighlight()
protected boolean checkStyle(int styleToCheck)
styleToCheck
- The style to check
|
Zest 1.5.0.201308190730 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |