|
Zest 1.5.0.201305060205 |
|||||||||
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.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.eclipse.swt.widgets.Canvas
org.eclipse.draw2d.FigureCanvas
org.eclipse.zest.core.widgets.Graph
public class Graph
Field Summary | |
---|---|
static int |
ANIMATION_TIME
|
protected java.util.List |
connections
|
Color |
DARK_BLUE
|
Color |
DEFAULT_NODE_COLOR
|
static int |
FISHEYE_ANIMATION_TIME
|
Color |
GREY_BLUE
|
Color |
HIGHLIGHT_ADJACENT_COLOR
|
Color |
HIGHLIGHT_COLOR
|
Color |
LIGHT_BLUE
|
Color |
LIGHT_BLUE_CYAN
|
Color |
LIGHT_YELLOW
|
Fields inherited from class org.eclipse.draw2d.FigureCanvas |
---|
ALWAYS, AUTOMATIC, NEVER |
Fields inherited from class org.eclipse.swt.widgets.Control |
---|
view |
Constructor Summary | |
---|---|
Graph(Composite parent,
int style)
Constructor for a Graph. |
Method Summary | |
---|---|
void |
addConstraintAdapter(ConstraintAdapter constraintAdapter)
Adds a new constraint adapter to the list of constraint adapters |
void |
addSelectionListener(SelectionListener selectionListener)
This adds a listener to the set of listeners that will be called when a selection event occurs. |
void |
applyLayout()
Runs the layout on this graph. |
void |
dispose()
Dispose of the nodes and edges when the graph is disposed. |
java.util.List |
getConnections()
Gets the list of GraphModelConnection objects. |
int |
getConnectionStyle()
Gets the default connection style. |
IFigure |
getFigureAt(int x,
int y)
Finds a figure at the location X, Y in the graph This point should be translated to relative before calling findFigureAt |
Graph |
getGraph()
|
Graph |
getGraphModel()
|
int |
getItemType()
|
LayoutAlgorithm |
getLayoutAlgorithm()
|
java.util.List |
getNodes()
Gets a list of the GraphModelNode children objects under the root node in this diagram. |
int |
getNodeStyle()
Gets the default node style. |
ScalableFigure |
getRootLayer()
Gets the root layer for this graph |
java.util.List |
getSelection()
Gets the list of currently selected GraphNodes |
void |
notifyListeners(int eventType,
Event event)
|
void |
removeSelectionListener(SelectionListener selectionListener)
|
void |
selectAll()
|
void |
setConnectionStyle(int connectionStyle)
Sets the default connection style. |
void |
setConstraintAdapters(java.util.List constraintAdapters)
Sets the constraint adapters on this model |
void |
setLayoutAlgorithm(LayoutAlgorithm algorithm,
boolean applyLayout)
Sets the LayoutAlgorithm for this container and optionally applies it. |
void |
setNodeStyle(int nodeStyle)
Sets the default node style. |
void |
setPreferredSize(int width,
int height)
Sets the preferred size of the layout area. |
void |
setSelection(GraphItem[] items)
Changes the selection to the list of items |
java.lang.String |
toString()
|
Methods inherited from class org.eclipse.draw2d.FigureCanvas |
---|
computeSize, getContents, getFont, getHorizontalScrollBarVisibility, getLightweightSystem, getVerticalScrollBarVisibility, getViewport, scrollSmoothTo, scrollTo, scrollToX, scrollToY, setBorder, setContents, setFont, setHorizontalScrollBarVisibility, setScrollBarVisibility, setVerticalScrollBarVisibility, setViewport |
Methods inherited from class org.eclipse.swt.widgets.Canvas |
---|
drawBackground, getCaret, getIME, scroll, setCaret, setIME |
Methods inherited from class org.eclipse.swt.widgets.Composite |
---|
changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList |
Methods inherited from class org.eclipse.swt.widgets.Scrollable |
---|
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar |
Methods inherited from class org.eclipse.swt.widgets.Widget |
---|
addDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, removeDisposeListener, removeListener, removeListener, reskin, setData, setData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int ANIMATION_TIME
public static final int FISHEYE_ANIMATION_TIME
public Color LIGHT_BLUE
public Color LIGHT_BLUE_CYAN
public Color GREY_BLUE
public Color DARK_BLUE
public Color LIGHT_YELLOW
public Color HIGHLIGHT_COLOR
public Color HIGHLIGHT_ADJACENT_COLOR
public Color DEFAULT_NODE_COLOR
protected java.util.List connections
Constructor Detail |
---|
public Graph(Composite parent, int style)
parent
- style
- Method Detail |
---|
public void addSelectionListener(SelectionListener selectionListener)
selectionListener
- public void removeSelectionListener(SelectionListener selectionListener)
public java.util.List getNodes()
getNodes
in interface IContainer
public void addConstraintAdapter(ConstraintAdapter constraintAdapter)
constraintAdapter
- public void setConstraintAdapters(java.util.List constraintAdapters)
constraintAdapters
- public ScalableFigure getRootLayer()
public void setConnectionStyle(int connectionStyle)
connection
- style the connection style to setorg.eclipse.mylar.zest.core.widgets.ZestStyles
public int getConnectionStyle()
org.eclipse.mylar.zest.core.widgets.ZestStyles
public void setNodeStyle(int nodeStyle)
nodeStyle
- the node style to setorg.eclipse.mylar.zest.core.widgets.ZestStyles
public int getNodeStyle()
org.eclipse.mylar.zest.core.widgets.ZestStyles
public java.util.List getConnections()
public void setSelection(GraphItem[] items)
l
- public void selectAll()
public java.util.List getSelection()
public java.lang.String toString()
toString
in class Widget
public Graph getGraphModel()
public void dispose()
dispose
in class Widget
public void applyLayout()
applyLayout
in interface IContainer
public void setPreferredSize(int width, int height)
width
- height
- public void setLayoutAlgorithm(LayoutAlgorithm algorithm, boolean applyLayout)
IContainer
setLayoutAlgorithm
in interface IContainer
algorithm
- public LayoutAlgorithm getLayoutAlgorithm()
public IFigure getFigureAt(int x, int y)
public void notifyListeners(int eventType, Event event)
notifyListeners
in class Widget
public Graph getGraph()
getGraph
in interface IContainer
public int getItemType()
getItemType
in interface IContainer
|
Zest 1.5.0.201305060205 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |