|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectprefuse.activity.Activity
prefuse.action.Action
prefuse.action.GroupAction
prefuse.action.layout.Layout
prefuse.action.layout.GridLayout
public class GridLayout
Implements a uniform grid-based layout. This component can either use preset grid dimensions or analyze a grid-shaped graph to determine them automatically.
| Field Summary | |
|---|---|
protected boolean |
analyze
|
protected int |
cols
|
protected int |
rows
|
| Fields inherited from class prefuse.action.layout.Layout |
|---|
m_anchor, m_bounds, m_bpts, m_insets, m_margin, m_tmpa, m_tmpb |
| Fields inherited from class prefuse.action.GroupAction |
|---|
m_group |
| Fields inherited from class prefuse.action.Action |
|---|
m_vis |
| Fields inherited from class prefuse.activity.Activity |
|---|
DEFAULT_STEP_TIME, INFINITY |
| Constructor Summary | |
|---|---|
GridLayout(java.lang.String group)
Create a new GridLayout without preset dimensions. |
|
GridLayout(java.lang.String group,
int nrows,
int ncols)
Create a new GridLayout using the specified grid dimensions. |
|
| Method Summary | |
|---|---|
static int[] |
analyzeGraphGrid(TupleSet ts)
Analyzes a set of nodes to try and determine grid dimensions. |
int |
getNumCols()
Get the number of grid columns. |
int |
getNumRows()
Get the number of grid rows. |
void |
run(double frac)
Runs this Action, triggering whatever processing this Action performs. |
void |
setNumCols(int cols)
Set the number of grid columns. |
void |
setNumRows(int rows)
Set the number of grid rows. |
| Methods inherited from class prefuse.action.layout.Layout |
|---|
getLayoutAnchor, getLayoutBounds, setLayoutAnchor, setLayoutBounds, setMargin, setX, setY |
| Methods inherited from class prefuse.action.GroupAction |
|---|
getGroup, setGroup |
| Methods inherited from class prefuse.action.Action |
|---|
getVisualization, run, setVisualization |
| Methods inherited from class prefuse.activity.Activity |
|---|
addActivityListener, alwaysRunAfter, cancel, fireActivityCancelled, fireActivityFinished, fireActivityScheduled, fireActivityStarted, fireActivityStepped, getDuration, getNextTime, getPace, getPacingFunction, getStartTime, getStepTime, getStopTime, isEnabled, isRunning, isScheduled, removeActivityListener, run, runAfter, runAt, setDuration, setEnabled, setPacingFunction, setStartTime, setStepTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int rows
protected int cols
protected boolean analyze
| Constructor Detail |
|---|
public GridLayout(java.lang.String group)
group - the data group to layout. In this automatic grid
analysis configuration, the group must resolve to a set of
graph nodes.
public GridLayout(java.lang.String group,
int nrows,
int ncols)
group - the data group to layoutnrows - the number of rows of the gridncols - the number of columns of the grid| Method Detail |
|---|
public void run(double frac)
Action
run in class GroupActionfrac - the fraction of this Action's duration that has elapsed.Action.run(double)public static int[] analyzeGraphGrid(TupleSet ts)
ts - TupleSet ts a set of nodes to analyze. Contained tuples
must implement be Node instances.
public int getNumCols()
public void setNumCols(int cols)
cols - the number of grid columns to usepublic int getNumRows()
public void setNumRows(int rows)
rows - the number of grid rows to use
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||