|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object prefuse.activity.Activity prefuse.action.Action prefuse.action.GroupAction prefuse.action.ItemAction prefuse.action.EncoderAction
public abstract class EncoderAction
ItemAction instance that can also maintain a collection of rule mappings that can be used by subclasses to create particular rule-mappings for encoding data values.
Field Summary |
---|
Fields inherited from class prefuse.action.ItemAction |
---|
m_predicate |
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 | |
---|---|
EncoderAction()
Create a new EncoderAction that processes all data groups. |
|
EncoderAction(java.lang.String group)
Create a new EncoderAction that processes the specified group. |
|
EncoderAction(java.lang.String group,
Predicate filter)
Create a new EncoderAction that processes the specified group. |
|
EncoderAction(Visualization vis)
Create a new EncoderAction that processes all groups. |
|
EncoderAction(Visualization vis,
java.lang.String group)
Create a new EncoderAction that processes the specified group. |
|
EncoderAction(Visualization vis,
java.lang.String group,
Predicate filter)
Create a new EncoderAction that processes the specified group. |
Method Summary | |
---|---|
protected void |
add(Predicate p,
java.lang.Object value)
Add a mapping rule to this EncoderAction. |
void |
clear()
Remove all rule mappings from this encoder. |
protected void |
finish()
Perform any necessary clean-up after this encoder can be used. |
protected java.lang.Object |
lookup(VisualItem item)
Lookup the value mapped to by the given item. |
boolean |
remove(Predicate p)
Remove rules using the given predicate from this encoder. |
void |
run(double frac)
Runs this Action, triggering whatever processing this Action performs. |
protected void |
setup()
Perform any necessary setup before this encoder can be used. |
void |
setVisualization(Visualization vis)
Set the Visualization processed by this Action. |
Methods inherited from class prefuse.action.ItemAction |
---|
getFilterPredicate, process, setFilterPredicate |
Methods inherited from class prefuse.action.GroupAction |
---|
getGroup, setGroup |
Methods inherited from class prefuse.action.Action |
---|
getVisualization, run |
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 |
---|
public EncoderAction()
public EncoderAction(Visualization vis)
vis
- the Visualization
to processVisualization.ALL_ITEMS
public EncoderAction(java.lang.String group)
group
- the name of the group to processpublic EncoderAction(java.lang.String group, Predicate filter)
group
- the name of the group to processfilter
- the filtering Predicate
public EncoderAction(Visualization vis, java.lang.String group)
vis
- the Visualization
to processgroup
- the data group to processpublic EncoderAction(Visualization vis, java.lang.String group, Predicate filter)
vis
- the Visualization
to processgroup
- the name of the group to processfilter
- the filtering Predicate
Method Detail |
---|
protected void add(Predicate p, java.lang.Object value)
p
- the rule Predicatevalue
- the value to map toprotected java.lang.Object lookup(VisualItem item)
item
- the item to lookup
public void clear()
public boolean remove(Predicate p)
p
- the predicate to remove
public void setVisualization(Visualization vis)
Action
setVisualization
in class Action
vis
- the Visualization
to process.Action.setVisualization(prefuse.Visualization)
public void run(double frac)
Action
run
in class ItemAction
frac
- the fraction of this Action's duration that has elapsed.Action.run(double)
protected void setup()
protected void finish()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |