public TimePlot(int ox, int oy, int width, int height) {
super(ox, oy, width, height);
}
protected CurveShape doAddYAction(Object[] obar){
TimeStampedDataSource ds = (TimeStampedDataSource)obar[0];
boolean primary = ((Boolean)obar[1]).booleanValue();
boolean usePrimaryX = ((Boolean)obar[2]).booleanValue();
Rectangle bounds = getBounds();
CurveShape cs;
if (usePrimaryX) {
cs = createCurveShape(ds.getTime(), ds);
if (isPrimaryBounded) cs.setSlice(primaryStartIndex, primaryEndIndex);
} else {
cs = createCurveShape(ds.getTime(), ds);
if (isSecondaryBounded) cs.setSlice(secondaryStartIndex, secondaryEndIndex);
}
String label = DEFAULT_DISPLAY_DATA_SOURCE_ID? DataInfo.getAliasOrIdwithUnit(ds) : DataInfo.getAliasOrLabelwithUnit(ds);
if (primary) {