use of au.gov.asd.tac.constellation.plugins.parameters.types.ObjectParameterType.ObjectParameterValue in project constellation by constellation-app.
the class AddCustomBlazePlugin method createParameters.
@Override
public PluginParameters createParameters() {
final PluginParameters parameters = new PluginParameters();
final PluginParameter<IntegerParameterValue> vertexIdParam = IntegerParameterType.build(VERTEX_ID_PARAMETER_ID);
vertexIdParam.setName("Vertex Id");
vertexIdParam.setDescription("The vertex id to add a colour blaze");
vertexIdParam.setIntegerValue(Graph.NOT_FOUND);
parameters.addParameter(vertexIdParam);
final PluginParameter<ObjectParameterValue> vertexIdsParam = ObjectParameterType.build(VERTEX_IDS_PARAMETER_ID);
vertexIdsParam.setName("Vertex Ids");
vertexIdsParam.setDescription("The list of vertex ids to add a colour blaze (in bulk)");
vertexIdsParam.setObjectValue(null);
parameters.addParameter(vertexIdsParam);
final PluginParameter<ColorParameterValue> colorParam = ColorParameterType.build(COLOR_PARAMETER_ID);
colorParam.setName("Color");
colorParam.setDescription("The colour value");
parameters.addParameter(colorParam);
return parameters;
}
use of au.gov.asd.tac.constellation.plugins.parameters.types.ObjectParameterType.ObjectParameterValue in project constellation by constellation-app.
the class RemoveBlazePlugin method createParameters.
@Override
public PluginParameters createParameters() {
final PluginParameters parameters = new PluginParameters();
final PluginParameter<IntegerParameterValue> vertexIdParam = IntegerParameterType.build(VERTEX_ID_PARAMETER_ID);
vertexIdParam.setName("Vertex Id");
vertexIdParam.setDescription("The vertex id of the node to set a blaze");
vertexIdParam.setIntegerValue(Graph.NOT_FOUND);
parameters.addParameter(vertexIdParam);
final PluginParameter<ObjectParameterValue> vertexIdsParam = ObjectParameterType.build(VERTEX_IDS_PARAMETER_ID);
vertexIdsParam.setName("Vertex IDs");
vertexIdsParam.setDescription("The list of vertex id's to set a blaze for in bulk");
vertexIdsParam.setObjectValue(null);
parameters.addParameter(vertexIdsParam);
return parameters;
}
use of au.gov.asd.tac.constellation.plugins.parameters.types.ObjectParameterType.ObjectParameterValue in project constellation by constellation-app.
the class PermanentMergePlugin method createParameters.
@Override
public PluginParameters createParameters() {
final PluginParameters parameters = new PluginParameters();
final PluginParameter<IntegerParameterValue> primaryNodeParam = IntegerParameterType.build(PRIMARY_NODE_PARAMETER_ID);
primaryNodeParam.setName("Primary Vertex ID");
primaryNodeParam.setDescription("The vertex id of the primary node");
parameters.addParameter(primaryNodeParam);
final PluginParameter<ObjectParameterValue> selectedNodesParam = ObjectParameterType.build(SELECTED_NODES_PARAMETER_ID);
selectedNodesParam.setName("Selected Vertex Ids");
selectedNodesParam.setDescription("A list of the vertex ids to merge");
parameters.addParameter(selectedNodesParam);
final PluginParameter<ObjectParameterValue> attributesParam = ObjectParameterType.build(ATTTRIBUTES_PARAMETER_ID);
attributesParam.setName("Attributes");
attributesParam.setDescription("A Map of the attributes to merge which is the attribute id to the value to replace");
parameters.addParameter(attributesParam);
final PluginParameter<BooleanParameterValue> createNewNodeParam = BooleanParameterType.build(CREATE_NEW_NODE_PARAMETER_ID);
createNewNodeParam.setName("Create New Node");
createNewNodeParam.setDescription("If True, create a new node. The default is True.");
createNewNodeParam.setBooleanValue(true);
parameters.addParameter(createNewNodeParam);
final PluginParameter<BooleanParameterValue> createLoopsParam = BooleanParameterType.build(CREATE_LOOPS_PARAMETER_ID);
createLoopsParam.setName("Create Loops");
createLoopsParam.setDescription("If True, create loops. The default is True.");
createLoopsParam.setBooleanValue(true);
parameters.addParameter(createLoopsParam);
final PluginParameter<BooleanParameterValue> keepSimpleParam = BooleanParameterType.build(KEEP_SIMPLE_PARAMETER_ID);
keepSimpleParam.setName("Keep Simple");
keepSimpleParam.setDescription("If True, only include directed transactions. The default is False.");
keepSimpleParam.setBooleanValue(false);
parameters.addParameter(keepSimpleParam);
return parameters;
}
use of au.gov.asd.tac.constellation.plugins.parameters.types.ObjectParameterType.ObjectParameterValue in project constellation by constellation-app.
the class ChangeSelectionPlugin method createParameters.
@Override
public PluginParameters createParameters() {
final PluginParameters parameters = new PluginParameters();
final PluginParameter<ObjectParameterValue> elementBitSet = ObjectParameterType.build(ELEMENT_BIT_SET_PARAMETER_ID);
elementBitSet.setName("Element Ids");
elementBitSet.setDescription("A set of the element id's, such as the vertex ids");
parameters.addParameter(elementBitSet);
final PluginParameter<SingleChoiceParameterValue> elementTypeParameter = SingleChoiceParameterType.build(ELEMENT_TYPE_PARAMETER_ID, ElementTypeParameterValue.class);
elementTypeParameter.setName("Element Type");
elementTypeParameter.setDescription("The graph element type");
final List<ElementTypeParameterValue> elementTypes = new ArrayList<>();
elementTypes.add(new ElementTypeParameterValue(GraphElementType.TRANSACTION));
elementTypes.add(new ElementTypeParameterValue(GraphElementType.VERTEX));
SingleChoiceParameterType.setOptionsData(elementTypeParameter, elementTypes);
parameters.addParameter(elementTypeParameter);
final PluginParameter<ObjectParameterValue> selectionMode = ObjectParameterType.build(SELECTION_MODE_PARAMETER_ID);
selectionMode.setName("Selection Mode");
selectionMode.setDescription("The selection mode being ADD, REMOVE, REPLACE or INVERT");
parameters.addParameter(selectionMode);
return parameters;
}
use of au.gov.asd.tac.constellation.plugins.parameters.types.ObjectParameterType.ObjectParameterValue in project constellation by constellation-app.
the class InfoMapPlugin method createParameters.
@Override
public PluginParameters createParameters() {
final PluginParameters parameters = new PluginParameters();
final PluginParameter<ObjectParameterValue> configParam = ObjectParameterType.build(CONFIG_PARAMETER_ID);
configParam.setName("Config");
configParam.setDescription("A Config object which defines the Info Map");
configParam.setObjectValue(new Config());
parameters.addParameter(configParam);
return parameters;
}
Aggregations