|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassbox.gui.AbstractGroup
org.glassbox.gui.JLayeredGroup
org.glassbox.graphview.GraphGroup
public class GraphGroup
Implementation of a layered group to display graphs.
It uses a JLayeredPane as view.
The group offers a GGraphPane on the background layer (i.e. the layer with index 0).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.glassbox.gui.LayeredGroup |
|---|
LayeredGroup.Layer |
| Field Summary | |
|---|---|
protected GGraphPane |
_graphpane
|
static int |
GRAPH_COMPONENT_LAYER
The position of the graph component layer (one above background). |
static int |
GRAPH_LAYER
The position of the graph layer (background). |
static java.lang.String |
IDENTIFIER
|
| Fields inherited from class org.glassbox.gui.JLayeredGroup |
|---|
_layers, _layersbyview, _parent, _view |
| Fields inherited from class org.glassbox.gui.AbstractGroup |
|---|
_members, _properties |
| Fields inherited from interface org.glassbox.gui.VisibleGroup |
|---|
MODAL_MEMBER_KEY, VIEWPORT_SIZE_KEY |
| Fields inherited from interface org.glassbox.gui.Group |
|---|
APPLICATION_STATUS_KEY, EXITING, INITIATED, PAUSED, RUNNING, UNDEFINED |
| Constructor Summary | |
|---|---|
GraphGroup()
|
|
GraphGroup(boolean showgraphpane)
|
|
| Method Summary | |
|---|---|
void |
addMember(VisibleMember member,
Edge edge)
Add a visible member to the group on the GRAPH_COMPONENT_LAYER and attach it to the specified edge. |
void |
addMember(VisibleMember member,
int position)
Add a member to the specified layer. |
void |
addMember(VisibleMember member,
int position,
java.lang.Object constraints)
Add a member to the specified layer. |
void |
addMember(VisibleMember member,
Node node)
Add a visible member to the group on the GRAPH_COMPONENT_LAYER and attach it to the specified node. |
void |
addVisible(Visible view)
Adds the visible's view to the GRAPH_COMPONENT_LAYER. |
void |
addVisible(Visible view,
java.lang.Object constraints)
Adds the visible's view to the GRAPH_COMPONENT_LAYER. |
Graph |
getGraph()
Get the current graph. |
GGraphPane |
getGraphPane()
Get the graph pane. |
java.lang.String |
getIdentifier()
Get a unique identifier of the member. |
void |
removeVisible(Visible view)
Remove a visible from the layer. |
void |
setGraph(Graph graph)
Set the current graph. |
void |
setProperty(java.lang.String name,
java.lang.Object newvalue)
Overridden to handle certain property changes within this group. The following properties are interpreted by this method: |
| Methods inherited from class org.glassbox.gui.JLayeredGroup |
|---|
addLayer, addMember, getGroup, getView, groupPropertyChanged, memberViewUpdated, moveToBack, moveToFront, removeMember, setGroup |
| Methods inherited from class org.glassbox.gui.AbstractGroup |
|---|
firePropertyChanged, getMember, getProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.glassbox.gui.Visible |
|---|
getView |
| Methods inherited from interface org.glassbox.gui.Group |
|---|
getMember, getProperty |
| Field Detail |
|---|
public static final java.lang.String IDENTIFIER
public static final int GRAPH_LAYER
public static final int GRAPH_COMPONENT_LAYER
protected GGraphPane _graphpane
| Constructor Detail |
|---|
public GraphGroup()
public GraphGroup(boolean showgraphpane)
| Method Detail |
|---|
public void setGraph(Graph graph)
public Graph getGraph()
public GGraphPane getGraphPane()
public void addMember(VisibleMember member,
Node node)
addMember(member, GRAPH_COMPONENT_LAYER).
public void addMember(VisibleMember member,
Edge edge)
addMember(member, GRAPH_COMPONENT_LAYER).
public void addVisible(Visible view,
java.lang.Object constraints)
addMember(VisibleMember, {Node | Edge}) instead.
addVisible in interface LayeredGroup.Layerpublic void addVisible(Visible view)
addMember(VisibleMember, {Node | Edge}) instead.
addVisible in interface LayeredGroup.Layerpublic void removeVisible(Visible view)
LayeredGroup.Layer
removeVisible in interface LayeredGroup.Layerpublic java.lang.String getIdentifier()
Member
getIdentifier in interface MembergetIdentifier in class JLayeredGroup
public void addMember(VisibleMember member,
int position)
addMember in interface LayeredGroupaddMember in class JLayeredGroupjava.lang.IllegalArgumentException - If the specified layer is <= 0;
public void addMember(VisibleMember member,
int position,
java.lang.Object constraints)
addMember in interface LayeredGroupaddMember in class JLayeredGroupjava.lang.IllegalArgumentException - If the specified layer is <= 0;
public void setProperty(java.lang.String name,
java.lang.Object newvalue)
glassbox.VisibleGroup.modal-member | Disables and enables the view accordingly. |
glassbox.VisibleGroup.viewport-size | Resizes the view. |
setProperty in interface GroupsetProperty in class JLayeredGroup
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||