|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mascoptLib.gui.views.Layer | +--mascoptLib.gui.GLayer
This class represent a layer returned by MasctoptViewer.
Method Summary | |
int |
addShift(mascoptLib.gui.GVertex n0,
mascoptLib.gui.GVertex n1)
Increase the distance between arcs (not sure). |
String[] |
getArcLabel(mascoptLib.abstractGraph.AbstractGraph graph)
Give the labels of arcs in a table for a graph. |
int |
getInitialShift()
Gives the distance of the first arc from the line between two arcs. |
String |
getName()
Returns the name of the layer. |
String[] |
getNodeLabel(mascoptLib.abstractGraph.AbstractGraph graph)
Give the labels of nodes in a table for a graph. |
int |
getStepShift()
Gives the distance between two arcs. |
void |
hideLabels(boolean hide)
Hide the labels for all graphs. |
void |
removeShift(mascoptLib.gui.GVertex n0,
mascoptLib.gui.GVertex n1,
int h)
Remove some distance between arcs. |
void |
setArcLabel(mascoptLib.abstractGraph.AbstractGraph graph,
String value)
|
void |
setArcLabel(mascoptLib.abstractGraph.AbstractGraph graph,
String[] value)
Change the labels of arcs for a Graph in this layer. |
void |
setInitialShift(int i)
Sets the distance of the first arc from the line between two arcs. |
void |
setNodeLabel(mascoptLib.abstractGraph.AbstractGraph graph,
String value)
|
void |
setNodeLabel(mascoptLib.abstractGraph.AbstractGraph graph,
String[] value)
Change the labels of nodes for a Graph in this layer. |
void |
setStepShift(int i)
Sets the distance between two arcs. |
void |
setVisibleLabels(mascoptLib.abstractGraph.AbstractGraph graph,
boolean visible)
Change the visibility of labels on a graph. |
void |
setVisibleLabels(boolean visible)
Change the visibility of labels on all graphs in this layer. |
void |
updateLabelsWhenValuesChange(boolean update)
Updates the labels when the values are changed. |
Methods inherited from class mascoptLib.gui.views.Layer |
add, add, addView, contains, getComponentAt, paint, remove, remove, removeView, repaint |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public String getName()
public void updateLabelsWhenValuesChange(boolean update)
update
- the boolean saying if the label must be updated.public void setNodeLabel(mascoptLib.abstractGraph.AbstractGraph graph, String value)
public void setArcLabel(mascoptLib.abstractGraph.AbstractGraph graph, String value)
public void setNodeLabel(mascoptLib.abstractGraph.AbstractGraph graph, String[] value)
graph
- the graph to consider for the labels.value
- a table of Strings (one per line) to set to nodes.public void setArcLabel(mascoptLib.abstractGraph.AbstractGraph graph, String[] value)
graph
- the graph to consider for the labels.value
- a table of Strings (one per line) to set to arcs.public String[] getNodeLabel(mascoptLib.abstractGraph.AbstractGraph graph)
public String[] getArcLabel(mascoptLib.abstractGraph.AbstractGraph graph)
public void setVisibleLabels(mascoptLib.abstractGraph.AbstractGraph graph, boolean visible)
graph
- the graph to considervisible
- the boolean representing the visibilitypublic void hideLabels(boolean hide)
hide
- is true if labels are hidden.public void setVisibleLabels(boolean visible)
visible
- the boolean representing the visibilitypublic int getInitialShift()
public void setInitialShift(int i)
public int getStepShift()
public void setStepShift(int i)
public int addShift(mascoptLib.gui.GVertex n0, mascoptLib.gui.GVertex n1)
n0
- the first noden1
- the second node
public void removeShift(mascoptLib.gui.GVertex n0, mascoptLib.gui.GVertex n1, int h)
n0
- the first noden1
- the second nodeh
- the distance to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |