artisynth.core.probes
Class PlotTraceManager
java.lang.Object
artisynth.core.probes.PlotTraceManager
public class PlotTraceManager
- extends java.lang.Object
Maintains a PlotTraceInfo for each entry in the data vector of a
NumericProbe. This includes selecting default values, and updating
values with respect to changes and edits requested by the user.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlotTraceManager
public PlotTraceManager(java.lang.String defaultPrefix)
hasDefaultSettings
public boolean hasDefaultSettings(java.lang.Object[] propsOrDimens)
getAllTraceInfo
public PlotTraceInfo[] getAllTraceInfo(java.lang.Object[] propsOrDimens)
getTraceInfo
public PlotTraceInfo getTraceInfo(int idx)
getOrderedTraceIndex
public int getOrderedTraceIndex(int order)
setTraceOrder
public void setTraceOrder(int[] indices)
- Sets a new ordering for the plot traces. This is specified by an array
giving the indices of the plot traces in the order they should be
plotted.
swapTraceOrder
public void swapTraceOrder(PlotTraceInfo info0,
PlotTraceInfo info1)
resetTraceOrder
public void resetTraceOrder()
resetTraceColors
public void resetTraceColors()
setTraceVisible
public void setTraceVisible(int idx,
boolean visible)
isTraceVisible
public boolean isTraceVisible(int idx)
setTraceColor
public void setTraceColor(int idx,
java.awt.Color color)
getTraceColor
public java.awt.Color getTraceColor(int idx)
rebuild
public void rebuild(java.lang.Object[] propsOrDimens,
PlotTraceInfo[] allInfos)
rebuild
public void rebuild(java.lang.Object[] propsOrDimens)