|
||||||||||
| 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
public abstract class Layout
Abstract base class providing convenience methods for layout algorithms.
| Field Summary | |
|---|---|
protected java.awt.geom.Point2D |
m_anchor
The explicitly set anchor point at which the layout can be centered or rooted. |
protected java.awt.geom.Rectangle2D |
m_bounds
The explicitly set layout bounds. |
protected double[] |
m_bpts
|
protected java.awt.Insets |
m_insets
|
protected boolean |
m_margin
|
protected java.awt.geom.Point2D |
m_tmpa
|
protected java.awt.geom.Rectangle2D |
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 | |
|---|---|
Layout()
Create a new Layout. |
|
Layout(java.lang.String group)
Create a new Layout. |
|
Layout(java.lang.String group,
long duration)
|
|
| Method Summary | |
|---|---|
java.awt.geom.Point2D |
getLayoutAnchor()
Return the layout anchor at which to center or root the layout. |
java.awt.geom.Rectangle2D |
getLayoutBounds()
Returns the bounds in which the layout should be computed. |
void |
setLayoutAnchor(java.awt.geom.Point2D a)
Explicitly set the layout anchor point. |
void |
setLayoutBounds(java.awt.geom.Rectangle2D b)
Explicitly set the layout bounds. |
void |
setMargin(int top,
int left,
int bottom,
int right)
Set the margins the layout should observe within its layout bounds. |
void |
setX(VisualItem item,
VisualItem referrer,
double x)
Convenience method for setting an x-coordinate. |
void |
setY(VisualItem item,
VisualItem referrer,
double y)
Convenience method for setting an y-coordinate. |
| Methods inherited from class prefuse.action.GroupAction |
|---|
getGroup, run, 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 java.awt.geom.Rectangle2D m_bounds
protected java.awt.geom.Point2D m_anchor
protected boolean m_margin
protected java.awt.Insets m_insets
protected double[] m_bpts
protected java.awt.geom.Rectangle2D m_tmpb
protected java.awt.geom.Point2D m_tmpa
| Constructor Detail |
|---|
public Layout()
public Layout(java.lang.String group)
group - the data group to layout.
public Layout(java.lang.String group,
long duration)
| Method Detail |
|---|
public void setMargin(int top,
int left,
int bottom,
int right)
top - the top margin, in pixelsleft - the left margin, in pixelsbottom - the bottom margin, in pixelsright - the right margin, in pixelspublic java.awt.geom.Rectangle2D getLayoutBounds()
public void setLayoutBounds(java.awt.geom.Rectangle2D b)
b - a rectangle specifying the layout bounds. A reference to this
same instance is kept.public java.awt.geom.Point2D getLayoutAnchor()
public void setLayoutAnchor(java.awt.geom.Point2D a)
a - the layout anchor point to use
public void setX(VisualItem item,
VisualItem referrer,
double x)
item - the item to setreferrer - the referrer item to use for the start location if
the current valu eis not a number (NaN)x - the x-coordinate value to set. This will be set for both
the current and end values.PrefuseLib.setX(VisualItem, VisualItem, double)
public void setY(VisualItem item,
VisualItem referrer,
double y)
item - the item to setreferrer - the referrer item to use for the start location if
the current valu eis not a number (NaN)y - the y-coordinate value to set. This will be set for both
the current and end values.PrefuseLib.setY(VisualItem, VisualItem, double)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||