public abstract class Layout extends GroupAction
| Modifier and Type | Field and Description |
|---|---|
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 |
m_groupDEFAULT_STEP_TIME, INFINITY| Constructor and Description |
|---|
Layout()
Create a new Layout.
|
Layout(java.lang.String group)
Create a new Layout.
|
Layout(java.lang.String group,
long duration) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getGroup, run, setGroupgetVisualization, run, setVisualizationaddActivityListener, 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, setStepTimeprotected 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
public Layout()
public Layout(java.lang.String group)
group - the data group to layout.public Layout(java.lang.String group,
long duration)
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 usepublic 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 value is 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 value is 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)