Beispiel #1
0
  /**
   * Get the control parameters of the given primitive.
   *
   * @return a vector of ParameterDescription containing each control parameter. The first
   *     parameters should always be the virtual points.
   */
  public Vector<ParameterDescription> getControls() {
    Vector<ParameterDescription> v = new Vector<ParameterDescription>(10);
    ParameterDescription pd = new ParameterDescription();

    pd.parameter = name;
    pd.description = Globals.messages.getString("ctrl_name");
    pd.isExtension = true;
    v.add(pd);

    pd = new ParameterDescription();

    pd.parameter = value;
    pd.description = Globals.messages.getString("ctrl_value");
    pd.isExtension = true;

    v.add(pd);
    return v;
  }