|
JGraphAddons |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jgraph.layout.JGraphLayoutAlgorithm
Field Summary | |
protected static Set |
LAYOUT_ATTRIBUTES
|
Constructor Summary | |
JGraphLayoutAlgorithm()
|
Method Summary | |
static void |
applyLayout(JGraph sourceGraph,
Object[] cells,
JGraphLayoutAlgorithm layout)
|
static JDialog |
createDialog(JGraphLayoutSettings settings,
JDialog parent,
String title,
String close,
String apply)
A utility method to create a simple dialog with close and apply button. |
static JDialog |
createDialog(JGraphLayoutSettings settings,
JFrame parent,
String title,
String close,
String apply)
A utility method to create a simple dialog with close and apply button. |
JGraphLayoutSettings |
createSettings()
Subclassers may return a new JComponent that allows to configure the layout. |
String |
getHint()
Get a human readable hint for using this layout. |
int |
getMaximumProgress()
Returns the maximum progress |
int |
getProgress()
Returns the current progress |
boolean |
isAllowedToRun()
|
static JDialog |
populateDialog(JGraphLayoutSettings settings,
JDialog dialog,
String close,
String apply)
A utility method to create a simple dialog with close and apply button. |
void |
run(JGraph graph,
Object[] cells)
Call run with step = 0; |
abstract void |
run(JGraph jgraph,
Object[] cells,
int step)
Executes the layout algorithm. |
void |
setAllowedToRun(boolean isAllowedToRun)
|
void |
setMaximumProgress(int maximumProgress)
Sets the maximum progress. |
void |
setProgress(int progress)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static Set LAYOUT_ATTRIBUTES
Constructor Detail |
public JGraphLayoutAlgorithm()
Method Detail |
public JGraphLayoutSettings createSettings()
null
.
public String getHint()
public void run(JGraph graph, Object[] cells)
public abstract void run(JGraph jgraph, Object[] cells, int step)
public boolean isAllowedToRun()
public void setAllowedToRun(boolean isAllowedToRun)
isAllowedToRun
- The isAllowedToRun to set.public int getMaximumProgress()
public void setMaximumProgress(int maximumProgress)
public int getProgress()
public void setProgress(int progress)
progress
- The progress to set.public static JDialog createDialog(JGraphLayoutSettings settings, JFrame parent, String title, String close, String apply)
public static JDialog createDialog(JGraphLayoutSettings settings, JDialog parent, String title, String close, String apply)
public static JDialog populateDialog(JGraphLayoutSettings settings, JDialog dialog, String close, String apply)
public static void applyLayout(JGraph sourceGraph, Object[] cells, JGraphLayoutAlgorithm layout)
|
JGraphAddons |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |