use of au.gov.asd.tac.constellation.plugins.parameters.types.BooleanParameterType.BooleanParameterValue in project constellation by constellation-app.
the class ResetViewPlugin method createParameters.
@Override
public PluginParameters createParameters() {
final PluginParameters parameters = new PluginParameters();
final PluginParameter<StringParameterValue> axisParam = StringParameterType.build(AXIS_PARAMETER_ID);
axisParam.setName("Axis");
axisParam.setDescription("The x,y or z axis to focus on");
axisParam.setStringValue("z");
parameters.addParameter(axisParam);
final PluginParameter<BooleanParameterValue> negativeParam = BooleanParameterType.build(NEGATIVE_PARAMETER_ID);
negativeParam.setName("Negative");
negativeParam.setDescription("True to reverse direction, default is False");
negativeParam.setBooleanValue(false);
parameters.addParameter(negativeParam);
final PluginParameter<BooleanParameterValue> significantParam = BooleanParameterType.build(SIGNIFICANT_PARAMETER_ID);
significantParam.setName("Significant");
significantParam.setDescription("Significant animations will make significant edits on the graph, meaning that their results can be undone/redone atomically. Default is False.");
significantParam.setBooleanValue(false);
parameters.addParameter(significantParam);
return parameters;
}
use of au.gov.asd.tac.constellation.plugins.parameters.types.BooleanParameterType.BooleanParameterValue in project constellation by constellation-app.
the class ImportJDBCPlugin method createParameters.
@Override
public PluginParameters createParameters() {
final PluginParameters params = new PluginParameters();
final PluginParameter<ObjectParameterValue> connectionParam = ObjectParameterType.build(CONNECTION_PARAMETER_ID);
connectionParam.setName("Connection");
connectionParam.setDescription("The connection to use");
connectionParam.setObjectValue(null);
params.addParameter(connectionParam);
final PluginParameter<StringParameterValue> queryParam = StringParameterType.build(QUERY_PARAMETER_ID);
queryParam.setName("Query");
queryParam.setDescription("The query to run");
params.addParameter(queryParam);
final PluginParameter<StringParameterValue> usernameParam = StringParameterType.build(USERNAME_PARAMETER_ID);
usernameParam.setName("Username");
params.addParameter(usernameParam);
final PluginParameter<PasswordParameterValue> passwordParam = PasswordParameterType.build(PASSWORD_PARAMETER_ID);
passwordParam.setName("Password");
passwordParam.setDescription("Password");
params.addParameter(passwordParam);
final PluginParameter<BooleanParameterValue> schemaParam = BooleanParameterType.build(SCHEMA_PARAMETER_ID);
schemaParam.setName("Complete with Schema");
schemaParam.setDescription("True if the graph should run the schema rules, default is True");
schemaParam.setBooleanValue(true);
params.addParameter(schemaParam);
final PluginParameter<ObjectParameterValue> definitionParam = ObjectParameterType.build(DEFINITIONS_PARAMETER_ID);
definitionParam.setName("Definitions");
definitionParam.setDescription("The list of definitions that extend ImportDefinition");
definitionParam.setObjectValue(null);
params.addParameter(definitionParam);
return params;
}
use of au.gov.asd.tac.constellation.plugins.parameters.types.BooleanParameterType.BooleanParameterValue in project constellation by constellation-app.
the class CopyToNewGraphPlugin method createParameters.
@Override
public PluginParameters createParameters() {
final PluginParameters parameters = new PluginParameters();
// Specify a new schema.
// If null, use the schema of the input graph.
final PluginParameter<StringParameterValue> schemaName = StringParameterType.build(NEW_SCHEMA_NAME_PARAMETER_ID);
schemaName.setName("New Schema Name");
schemaName.setDescription("The new schema name, if null use the input schema. The default is null.");
schemaName.setStringValue("");
parameters.addParameter(schemaName);
// If true, copy everything, selected or not.
final PluginParameter<BooleanParameterValue> copyAll = BooleanParameterType.build(COPY_ALL_PARAMETER_ID);
copyAll.setName("Copy All");
copyAll.setDescription("If True, copy everything regardless of selection. The default is False.");
copyAll.setBooleanValue(false);
parameters.addParameter(copyAll);
// If true, copy the keys.
final PluginParameter<BooleanParameterValue> copyKeys = BooleanParameterType.build(COPY_KEYS_PARAMETER_ID);
copyKeys.setName("Copy Keys");
copyKeys.setDescription("If True, copy the keys. The default is True.");
copyKeys.setBooleanValue(true);
parameters.addParameter(copyKeys);
// Output parameter.
final PluginParameter<ObjectParameterValue> newGraph = ObjectParameterType.build(NEW_GRAPH_OUTPUT_PARAMETER_ID);
newGraph.setName("New Graph (output)");
newGraph.setDescription("This parameter is used to store the copied graph");
parameters.addParameter(newGraph);
return parameters;
}
use of au.gov.asd.tac.constellation.plugins.parameters.types.BooleanParameterType.BooleanParameterValue in project constellation by constellation-app.
the class AddRecordStore method createParameters.
@Override
public PluginParameters createParameters() {
final PluginParameters parameters = new PluginParameters();
final PluginParameter<StringParameterValue> graphidParam = StringParameterType.build(GRAPH_ID_PARAMETER_ID);
graphidParam.setName("Graph id");
graphidParam.setDescription("The id of the graph to add the recordstore to. (Default is the active graph)");
parameters.addParameter(graphidParam);
final PluginParameter<BooleanParameterValue> completeParam = BooleanParameterType.build(COMPLETE_PARAMETER_ID);
completeParam.setName("Complete with schema");
completeParam.setDescription("If true (the default), perform a schema completion after the RecordStore is added.");
completeParam.setBooleanValue(true);
parameters.addParameter(completeParam);
final PluginParameter<StringParameterValue> arrangeParam = StringParameterType.build(ARRANGE_PARAMETER_ID);
arrangeParam.setName("Arrange");
arrangeParam.setDescription("If not specifed (the default), perform a basic arrange of the graph after the RecordStore is added. If specified, the named plugin is run, or no plugin is run if the name is '' or 'None'.");
parameters.addParameter(arrangeParam);
final PluginParameter<BooleanParameterValue> resetParam = BooleanParameterType.build(RESET_PARAMETER_ID);
resetParam.setName("Reset view");
resetParam.setDescription("If true (the default), run the ResetView plugin after adding, completing, and arranging.");
resetParam.setBooleanValue(true);
parameters.addParameter(resetParam);
final PluginParameter<StringParameterValue> dataParam = StringParameterType.build(DATA_PARAMETER_ID);
dataParam.setName("Data (body)");
dataParam.setDescription("A JSON representation of the RecordStore data, in the form {\"columns\": [\"COL1\",\"COL2\",\"COL3\"], \"data\": [[r1c1, r1c2, r1c3],[r2c1,r2c2,r2c3]]. This is the same as the output of pandas.DataFrame.to_json(orient='split', date_format='iso').");
dataParam.setRequestBodyExampleJson("#/components/examples/addRecordStoreExample");
dataParam.setRequired(true);
parameters.addParameter(dataParam);
return parameters;
}
use of au.gov.asd.tac.constellation.plugins.parameters.types.BooleanParameterType.BooleanParameterValue in project constellation by constellation-app.
the class ImportDelimitedPlugin method createParameters.
@Override
public PluginParameters createParameters() {
final PluginParameters params = new PluginParameters();
final PluginParameter<ObjectParameterValue> parserParam = ObjectParameterType.build(PARSER_PARAMETER_ID);
parserParam.setName("Parser");
parserParam.setDescription("The type of parser which is one that extends ImportFileParser");
parserParam.setObjectValue(null);
params.addParameter(parserParam);
final PluginParameter<FileParameterValue> fileParam = FileParameterType.build(FILES_PARAMETER_ID);
fileParam.setName("Files");
fileParam.setDescription("The list of file names to import");
fileParam.setObjectValue(null);
params.addParameter(fileParam);
final PluginParameter<ObjectParameterValue> definitionParam = ObjectParameterType.build(DEFINITIONS_PARAMETER_ID);
definitionParam.setName("Definitions");
definitionParam.setDescription("The list of definitions that extend ImportDefinition");
definitionParam.setObjectValue(null);
params.addParameter(definitionParam);
final PluginParameter<BooleanParameterValue> schemaParam = BooleanParameterType.build(SCHEMA_PARAMETER_ID);
schemaParam.setName("Complete with Schema");
schemaParam.setDescription("True if the graph should run the schema rules");
schemaParam.setBooleanValue(true);
params.addParameter(schemaParam);
final PluginParameter<ObjectParameterValue> parserParameters = ObjectParameterType.build(PARSER_PARAMETER_IDS_PARAMETER_ID);
parserParameters.setName("Parser Parameters");
parserParameters.setDescription("The PluginParameters used by the parser");
params.addParameter(parserParameters);
final PluginParameter<BooleanParameterValue> filesIncludeHeadersParam = BooleanParameterType.build(FILES_INCLUDE_HEADERS_PARAMETER_ID);
filesIncludeHeadersParam.setName("Files Include Headers");
filesIncludeHeadersParam.setDescription("True if the files include headers in the first row");
filesIncludeHeadersParam.setBooleanValue(true);
params.addParameter(filesIncludeHeadersParam);
return params;
}
Aggregations