Search in sources :

Example 11 with FloatParameterValue

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

the class UpdateBlazeSizeOpacityPlugin method createParameters.

@Override
public PluginParameters createParameters() {
    final PluginParameters parameters = new PluginParameters();
    final PluginParameter<FloatParameterValue> sizeParameter = FloatParameterType.build(SIZE_PARAMETER_ID);
    sizeParameter.setName("Size");
    sizeParameter.setDescription("The size of the blaze");
    FloatParameterType.setMinimum(sizeParameter, 0F);
    FloatParameterType.setMaximum(sizeParameter, 1F);
    parameters.addParameter(sizeParameter);
    final PluginParameter<FloatParameterValue> opacityParameter = FloatParameterType.build(OPACITY_PARAMETER_ID);
    opacityParameter.setName("Opacity");
    opacityParameter.setDescription("The opacity of the blaze");
    FloatParameterType.setMinimum(opacityParameter, 0F);
    FloatParameterType.setMaximum(opacityParameter, 1F);
    parameters.addParameter(opacityParameter);
    return parameters;
}
Also used : FloatParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.FloatParameterType.FloatParameterValue) PluginParameters(au.gov.asd.tac.constellation.plugins.parameters.PluginParameters)

Example 12 with FloatParameterValue

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

the class FloatRangeBinFormatter method createParameters.

@Override
public PluginParameters createParameters() {
    PluginParameters params = new PluginParameters();
    final PluginParameter<FloatParameterValue> zeroParameter = FloatParameterType.build(ZERO_PARAMETER_ID);
    zeroParameter.setName("Zero Point");
    zeroParameter.setFloatValue(0.0F);
    params.addParameter(zeroParameter);
    final PluginParameter<FloatParameterValue> bucketParameter = FloatParameterType.build(BUCKET_PARAMETER_ID);
    bucketParameter.setName("Bucket Size");
    bucketParameter.setFloatValue(10.0F);
    params.addParameter(bucketParameter);
    return params;
}
Also used : FloatParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.FloatParameterType.FloatParameterValue) PluginParameters(au.gov.asd.tac.constellation.plugins.parameters.PluginParameters)

Example 13 with FloatParameterValue

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

the class FloatRangeLogarithmicBinFormatter method createParameters.

@Override
public PluginParameters createParameters() {
    PluginParameters params = new PluginParameters();
    final PluginParameter<FloatParameterValue> base = FloatParameterType.build(BASE_PARAMETER_ID);
    base.setName("Base");
    base.setFloatValue(10.0F);
    params.addParameter(base);
    return params;
}
Also used : FloatParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.FloatParameterType.FloatParameterValue) PluginParameters(au.gov.asd.tac.constellation.plugins.parameters.PluginParameters)

Example 14 with FloatParameterValue

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

the class TestParameterBuildingPlugin method createParameters.

@Override
public PluginParameters createParameters() {
    final PluginParameters params = new PluginParameters();
    final PluginParameter<SingleChoiceParameterValue> fupChoiceParam = SingleChoiceParameterType.build(CHOICE_PARAMETER_ID);
    fupChoiceParam.setName(SOME_CHOICE_NAME);
    fupChoiceParam.setDescription(SOME_CHOICE_DESCRIPTION);
    SingleChoiceParameterType.setOptions(fupChoiceParam, Arrays.asList("Choice 1", "Choice 2", "Choice 3"));
    SingleChoiceParameterType.setChoice(fupChoiceParam, "Choice 1");
    params.addParameter(fupChoiceParam);
    final PluginParameter<LocalDateParameterValue> ldParam = LocalDateParameterType.build(LOCALDATE_PARAMETER_ID);
    ldParam.setName("Date");
    ldParam.setDescription("Pick a day");
    params.addParameter(ldParam);
    final PluginParameter<IntegerParameterValue> lenParam = IntegerParameterType.build(INT_PARAMETER_ID);
    lenParam.setName(SOME_INT_NAME);
    lenParam.setDescription(SOME_INT_DESCRIPTION);
    lenParam.setIntegerValue(5);
    params.addParameter(lenParam);
    final PluginParameter<FloatParameterValue> thresholdParam = FloatParameterType.build(FLOAT_PARAMETER_ID);
    thresholdParam.setName(FLOAT_NAME);
    thresholdParam.setDescription(FLOAT_DESCRIPTION);
    thresholdParam.setFloatValue(0F);
    FloatParameterType.setMinimum(thresholdParam, 0);
    FloatParameterType.setMaximum(thresholdParam, 1);
    FloatParameterType.setStep(thresholdParam, 0.1F);
    params.addParameter(thresholdParam);
    final PluginParameter<BooleanParameterValue> caseParam = BooleanParameterType.build(BOOLEAN_PARAMETER_ID);
    caseParam.setName(SOME_BOOLEAN_NAME);
    caseParam.setDescription(SOME_BOOLEAN_DESCRIPTION);
    params.addParameter(caseParam);
    for (int i = 0; i < 2; i++) {
        final PluginParameter<StringParameterValue> text = StringParameterType.build("text" + i);
        text.setName("Some text " + i);
        text.setDescription("Type some text into this thing");
        text.setStringValue("Value " + i);
        params.addParameter(text);
    }
    return params;
}
Also used : LocalDateParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.LocalDateParameterType.LocalDateParameterValue) FloatParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.FloatParameterType.FloatParameterValue) StringParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.StringParameterValue) BooleanParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.BooleanParameterType.BooleanParameterValue) IntegerParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.IntegerParameterType.IntegerParameterValue) PluginParameters(au.gov.asd.tac.constellation.plugins.parameters.PluginParameters) SingleChoiceParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.SingleChoiceParameterType.SingleChoiceParameterValue)

Aggregations

PluginParameters (au.gov.asd.tac.constellation.plugins.parameters.PluginParameters)14 FloatParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.FloatParameterType.FloatParameterValue)14 BooleanParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.BooleanParameterType.BooleanParameterValue)9 IntegerParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.IntegerParameterType.IntegerParameterValue)8 SingleChoiceParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.SingleChoiceParameterType.SingleChoiceParameterValue)4 LocalDateParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.LocalDateParameterType.LocalDateParameterValue)2 MultiChoiceParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.MultiChoiceParameterType.MultiChoiceParameterValue)2 StringParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.StringParameterValue)2 ArrayList (java.util.ArrayList)2 GraphElementType (au.gov.asd.tac.constellation.graph.GraphElementType)1 ParameterChange (au.gov.asd.tac.constellation.plugins.parameters.ParameterChange)1 PluginParameter (au.gov.asd.tac.constellation.plugins.parameters.PluginParameter)1 ColorParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.ColorParameterType.ColorParameterValue)1 DateTimeRangeParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.DateTimeRangeParameterType.DateTimeRangeParameterValue)1 FileParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.FileParameterType.FileParameterValue)1 ParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.ParameterValue)1 PasswordParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.PasswordParameterValue)1 ConstellationColor (au.gov.asd.tac.constellation.utilities.color.ConstellationColor)1 Map (java.util.Map)1 CheckBox (javafx.scene.control.CheckBox)1