pBuffer.append(" ");
pBuffer.append(param.getName());
pBuffer.append(" ");
pBuffer.append(param.getValue());
pBuffer.append(pLineSeparator);
Envelope envelope = param.getEnvelope();
if (envelope != null) {
// envelope <paramname>
pBuffer.append(TOKEN_INDENT);
pBuffer.append(TOKEN_ENVELOPE);
pBuffer.append(" ");
pBuffer.append(param.getName());
pBuffer.append(pLineSeparator);
// view <xmin> <xmax> <ymin> <ymax>
pBuffer.append(TOKEN_INDENT);
pBuffer.append(TOKEN_INDENT);
pBuffer.append(TOKEN_VIEW);
pBuffer.append(" ");
pBuffer.append(Tools.doubleToString(envelope.getViewXMin()));
pBuffer.append(" ");
pBuffer.append(Tools.doubleToString(envelope.getViewXMax()));
pBuffer.append(" ");
pBuffer.append(Tools.doubleToString(envelope.getViewYMin()));
pBuffer.append(" ");
pBuffer.append(Tools.doubleToString(envelope.getViewYMax()));
pBuffer.append(pLineSeparator);
// points <x0> <y0> ... <xN> <yN>
pBuffer.append(TOKEN_INDENT);
pBuffer.append(TOKEN_INDENT);
pBuffer.append(TOKEN_POINTS);
for (int p = 0; p < envelope.size(); p++) {
pBuffer.append(" ");
pBuffer.append(Tools.intToString(envelope.getX()[p]));
pBuffer.append(" ");
pBuffer.append(Tools.doubleToString(envelope.getY()[p]));
}
pBuffer.append(pLineSeparator);
// selected <selected>
pBuffer.append(TOKEN_INDENT);
pBuffer.append(TOKEN_INDENT);
pBuffer.append(TOKEN_SELECTED);
pBuffer.append(" ");
pBuffer.append(Tools.intToString(envelope.getSelectedIdx()));
pBuffer.append(pLineSeparator);
// interpolation <interpolation>
pBuffer.append(TOKEN_INDENT);
pBuffer.append(TOKEN_INDENT);
pBuffer.append(TOKEN_INTERPOLATION);
pBuffer.append(" ");
pBuffer.append(envelope.getInterpolation().toString());
pBuffer.append(pLineSeparator);
// locked <locked>
pBuffer.append(TOKEN_INDENT);
pBuffer.append(TOKEN_INDENT);
pBuffer.append(TOKEN_LOCKED);
pBuffer.append(" ");
pBuffer.append(envelope.isLocked());
pBuffer.append(pLineSeparator);
}
}
//
pBuffer.append(pLineSeparator);