public class PlotTraceManager
extends java.lang.Object
Constructor and Description |
---|
PlotTraceManager(java.lang.String defaultPrefix) |
Modifier and Type | Method and Description |
---|---|
PlotTraceManager |
copy() |
PlotTraceInfo[] |
getAllTraceInfo(java.lang.Object[] propsOrDimens) |
int |
getOrderedTraceIndex(int order) |
java.awt.Color |
getTraceColor(int idx) |
PlotTraceInfo |
getTraceInfo(int idx) |
java.lang.String |
getTraceLabel(int idx) |
boolean |
hasDefaultSettings(java.lang.Object[] propsOrDimens) |
boolean |
isTraceVisible(int idx) |
int |
numTraces() |
void |
rebuild(java.lang.Object[] propsOrDimens) |
void |
rebuild(java.lang.Object[] propsOrDimens,
PlotTraceInfo[] allInfos) |
void |
resetTraceColors(boolean useCurrentOrdering)
Resets the colors to that of the original palette.
|
void |
resetTraceOrder() |
void |
setTraceColor(int idx,
java.awt.Color color) |
void |
setTraceLabel(int idx,
java.lang.String label) |
void |
setTraceOrder(int[] indices)
Sets a new ordering for the plot traces.
|
void |
setTraceVisible(int idx,
boolean visible) |
void |
swapTraceOrder(PlotTraceInfo info0,
PlotTraceInfo info1) |
public boolean hasDefaultSettings(java.lang.Object[] propsOrDimens)
public PlotTraceInfo[] getAllTraceInfo(java.lang.Object[] propsOrDimens)
public int numTraces()
public PlotTraceInfo getTraceInfo(int idx)
public int getOrderedTraceIndex(int order)
public void setTraceOrder(int[] indices)
public void swapTraceOrder(PlotTraceInfo info0, PlotTraceInfo info1)
public void resetTraceOrder()
public void resetTraceColors(boolean useCurrentOrdering)
useCurrentOrdering
- if true
, reset the colors with respect
to the current orderingpublic void setTraceVisible(int idx, boolean visible)
public boolean isTraceVisible(int idx)
public void setTraceColor(int idx, java.awt.Color color)
public java.awt.Color getTraceColor(int idx)
public void setTraceLabel(int idx, java.lang.String label)
public java.lang.String getTraceLabel(int idx)
public void rebuild(java.lang.Object[] propsOrDimens, PlotTraceInfo[] allInfos)
public void rebuild(java.lang.Object[] propsOrDimens)
public PlotTraceManager copy()