Search in sources :

Example 1 with ObjectParameterValue

use of au.gov.asd.tac.constellation.plugins.parameters.types.ObjectParameterType.ObjectParameterValue in project constellation by constellation-app.

the class GatherNodesInGraphPlugin method createParameters.

@Override
public PluginParameters createParameters() {
    final PluginParameters parameters = new PluginParameters();
    final PluginParameter<ObjectParameterValue> xParam = ObjectParameterType.build(XYZ_PARAMETER_ID);
    xParam.setName("XYZ Position");
    xParam.setDescription("The x,y,z position to gather around");
    parameters.addParameter(xParam);
    final PluginParameter<ObjectParameterValue> gathersParam = ObjectParameterType.build(GATHERS_PARAMETER_ID);
    gathersParam.setName("Gather Vertex Ids");
    gathersParam.setDescription("A set of vertex ids to gather");
    parameters.addParameter(gathersParam);
    return parameters;
}
Also used : PluginParameters(au.gov.asd.tac.constellation.plugins.parameters.PluginParameters) ObjectParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.ObjectParameterType.ObjectParameterValue)

Example 2 with ObjectParameterValue

use of au.gov.asd.tac.constellation.plugins.parameters.types.ObjectParameterType.ObjectParameterValue in project constellation by constellation-app.

the class GatherNodesPlugin method createParameters.

@Override
public PluginParameters createParameters() {
    final PluginParameters parameters = new PluginParameters();
    final PluginParameter<IntegerParameterValue> vxIdParam = IntegerParameterType.build(VXID_PARAMETER_ID);
    vxIdParam.setName("Vertex Id");
    vxIdParam.setDescription("The vertex id to gather around");
    parameters.addParameter(vxIdParam);
    final PluginParameter<ObjectParameterValue> gathersParam = ObjectParameterType.build(GATHERS_PARAMETER_ID);
    gathersParam.setName("Gather Vertex Ids");
    gathersParam.setDescription("A set of vertex ids to gather");
    parameters.addParameter(gathersParam);
    return parameters;
}
Also used : IntegerParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.IntegerParameterType.IntegerParameterValue) PluginParameters(au.gov.asd.tac.constellation.plugins.parameters.PluginParameters) ObjectParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.ObjectParameterType.ObjectParameterValue)

Example 3 with ObjectParameterValue

use of au.gov.asd.tac.constellation.plugins.parameters.types.ObjectParameterType.ObjectParameterValue in project constellation by constellation-app.

the class LoadTemplatePlugin method createParameters.

@Override
public PluginParameters createParameters() {
    final PluginParameters params = new PluginParameters();
    final PluginParameter<ObjectParameterValue> fileParam = ObjectParameterType.build(TEMPLATE_FILE_PARAMETER_ID);
    final PluginParameter<StringParameterValue> nameParam = StringParameterType.build(TEMPLATE_NAME_PARAMETER_ID);
    params.addParameter(fileParam);
    params.addParameter(nameParam);
    return params;
}
Also used : StringParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.StringParameterValue) PluginParameters(au.gov.asd.tac.constellation.plugins.parameters.PluginParameters) ObjectParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.ObjectParameterType.ObjectParameterValue)

Example 4 with ObjectParameterValue

use of au.gov.asd.tac.constellation.plugins.parameters.types.ObjectParameterType.ObjectParameterValue in project constellation by constellation-app.

the class PasteTextPlugin method createParameters.

@Override
public PluginParameters createParameters() {
    final PluginParameters parameters = new PluginParameters();
    final PluginParameter<StringParameterValue> textParam = StringParameterType.build(TEXT_PARAMETER_ID);
    textParam.setName("Text");
    textParam.setDescription("The text to paste onto the current graph");
    textParam.setStringValue("");
    parameters.addParameter(textParam);
    final PluginParameter<ObjectParameterValue> outVxPastedParam = ObjectParameterType.build(OUT_VX_PASTED_PARAMETER_ID);
    outVxPastedParam.setName("Vertex Ids");
    outVxPastedParam.setDescription("A set of the vertex Ids pasted (output parameter)");
    parameters.addParameter(outVxPastedParam);
    return parameters;
}
Also used : StringParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.StringParameterValue) PluginParameters(au.gov.asd.tac.constellation.plugins.parameters.PluginParameters) ObjectParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.ObjectParameterType.ObjectParameterValue)

Example 5 with ObjectParameterValue

use of au.gov.asd.tac.constellation.plugins.parameters.types.ObjectParameterType.ObjectParameterValue in project constellation by constellation-app.

the class ZoomToVerticesPlugin method createParameters.

@Override
public PluginParameters createParameters() {
    final PluginParameters parameters = new PluginParameters();
    final PluginParameter<ObjectParameterValue> verticesParameter = ObjectParameterType.build(VERTICES_PARAMETER_ID);
    verticesParameter.setName("Vertex Ids");
    verticesParameter.setDescription("An array or list of vertex ids to zoom onto");
    parameters.addParameter(verticesParameter);
    final PluginParameter<IntegerParameterType.IntegerParameterValue> vxParameter = IntegerParameterType.build(VERTEX_PARAMETER_ID);
    vxParameter.setName("Vertex Id");
    vxParameter.setDescription("A vertex id to zoom to");
    vxParameter.setObjectValue(Graph.NOT_FOUND);
    parameters.addParameter(vxParameter);
    return parameters;
}
Also used : PluginParameters(au.gov.asd.tac.constellation.plugins.parameters.PluginParameters) ObjectParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.ObjectParameterType.ObjectParameterValue)

Aggregations

PluginParameters (au.gov.asd.tac.constellation.plugins.parameters.PluginParameters)19 ObjectParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.ObjectParameterType.ObjectParameterValue)19 BooleanParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.BooleanParameterType.BooleanParameterValue)6 IntegerParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.IntegerParameterType.IntegerParameterValue)5 StringParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.StringParameterValue)5 Config (au.gov.asd.tac.constellation.plugins.algorithms.clustering.infomap.io.Config)1 ColorParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.ColorParameterType.ColorParameterValue)1 ElementTypeParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.ElementTypeParameterValue)1 FileParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.FileParameterType.FileParameterValue)1 PasswordParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.PasswordParameterValue)1 SingleChoiceParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.SingleChoiceParameterType.SingleChoiceParameterValue)1 ArrayList (java.util.ArrayList)1