prefuse.action.layout
Class SpecifiedLayout

java.lang.Object
  extended by prefuse.activity.Activity
      extended by prefuse.action.Action
          extended by prefuse.action.GroupAction
              extended by prefuse.action.layout.Layout
                  extended by prefuse.action.layout.SpecifiedLayout

public class SpecifiedLayout
extends Layout

Layout Action that sets x, y coordinates for a visual item by simply looking them up from another data field.

Author:
jeffrey heer

Field Summary
 
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
SpecifiedLayout(java.lang.String group, java.lang.String xField, java.lang.String yField)
          Create a new SpecifiedLayout.
 
Method Summary
 java.lang.String getFixedField()
          Get the field to lookup to set the fixed property.
 java.lang.String getXField()
          Get the field to lookup to set the x-coordinate.
 java.lang.String getYField()
          Get the field to lookup to set the y-coordinate.
 void run(double frac)
          Runs this Action, triggering whatever processing this Action performs.
 void setFixedField(java.lang.String fixedField)
          Set the field to lookup to set the fixed property.
 void setXField(java.lang.String xField)
          Set the field to lookup to set the x-coordinate.
 void setYField(java.lang.String yField)
          Set the field to lookup to set the y-coordinate.
 
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
 

Constructor Detail

SpecifiedLayout

public SpecifiedLayout(java.lang.String group,
                       java.lang.String xField,
                       java.lang.String yField)
Create a new SpecifiedLayout.

Parameters:
group - the data group to layout
xField - the field from which to lookup x coordinate values
yField - the field from which to lookup y coordinate values
Method Detail

getXField

public java.lang.String getXField()
Get the field to lookup to set the x-coordinate.

Returns:
the x-value field. If null, this action does not set the x-coordiante.

setXField

public void setXField(java.lang.String xField)
Set the field to lookup to set the x-coordinate.

Parameters:
xField - the x-value field to use. If null, this action will not set the x-coordiante.

getYField

public java.lang.String getYField()
Get the field to lookup to set the y-coordinate.

Returns:
the y-value field. If null, this action does not set the y-coordiante.

setYField

public void setYField(java.lang.String yField)
Set the field to lookup to set the y-coordinate.

Parameters:
yField - the y-value field to use. If null, this action will not set the y-coordiante.

getFixedField

public java.lang.String getFixedField()
Get the field to lookup to set the fixed property.

Returns:
the fixed field. If null, this action does not set the fixed field.

setFixedField

public void setFixedField(java.lang.String fixedField)
Set the field to lookup to set the fixed property.

Parameters:
fixedField - the fixed field to use. If null, this action will not set the fixed field.

run

public void run(double frac)
Description copied from class: Action
Runs this Action, triggering whatever processing this Action performs. Subclass this method to create custom Actions.

Specified by:
run in class GroupAction
Parameters:
frac - the fraction of this Action's duration that has elapsed.
See Also:
Action.run(double)


Copyright © 2007 Regents of the University of California