Search in sources :

Example 6 with BooleanSelector

use of maspack.widgets.BooleanSelector in project artisynth_core by artisynth.

the class SetCollisionsDialog method createDisplay.

protected void createDisplay() {
    myEnabledField = new BooleanSelector("enabled", false);
    myEnabledField.setVoidValueEnabled(true);
    myEnabledField.addValueChangeListener(this);
    addWidget(myEnabledField);
    myFrictionField = new DoubleField("friction", 0);
    myFrictionField.setVoidValueEnabled(true);
    myFrictionField.setRange(0, Double.POSITIVE_INFINITY);
    myFrictionField.addValueChangeListener(this);
    addWidget(myFrictionField);
    addWidget(new JSeparator());
    OptionPanel panel = new OptionPanel("Set Cancel", this);
    addWidget(panel);
    mySetButton = panel.getButton("Set");
    pack();
}
Also used : BooleanSelector(maspack.widgets.BooleanSelector) DoubleField(maspack.widgets.DoubleField) OptionPanel(maspack.widgets.OptionPanel)

Example 7 with BooleanSelector

use of maspack.widgets.BooleanSelector in project artisynth_core by artisynth.

the class DefaultCollisionsDialog method createDisplay.

protected void createDisplay() {
    myRREnabled = new BooleanSelector("rigid-rigid", false);
    myRDEnabled = new BooleanSelector("rigid-deformable", false);
    myDDEnabled = new BooleanSelector("deformable-deformable", false);
    myDSEnabled = new BooleanSelector("deformable-self", false);
    myRRFriction = new DoubleField("", 0);
    myRDFriction = new DoubleField("", 0);
    myDDFriction = new DoubleField("", 0);
    myDSFriction = new DoubleField("", 0);
    myRREnabled.addMajorComponent(myRRFriction);
    myRDEnabled.addMajorComponent(myRDFriction);
    myDDEnabled.addMajorComponent(myDDFriction);
    myDSEnabled.addMajorComponent(myDSFriction);
    addWidget(myRREnabled);
    addWidget(myRDEnabled);
    addWidget(myDDEnabled);
    addWidget(myDSEnabled);
    addWidget(new JSeparator());
    addWidgetHeader(myRREnabled);
    OptionPanel panel = new OptionPanel("Set Cancel", this);
    addWidget(panel);
    mySetButton = panel.getButton("Set");
    pack();
}
Also used : BooleanSelector(maspack.widgets.BooleanSelector) DoubleField(maspack.widgets.DoubleField) OptionPanel(maspack.widgets.OptionPanel)

Example 8 with BooleanSelector

use of maspack.widgets.BooleanSelector in project artisynth_core by artisynth.

the class NumericProbeRangeSelectorDialog method generateWidgets.

public void generateWidgets(LabeledComponentPanel panel) {
    maxYField = new DoubleField("Display Maximum (y) :", maxYRange, "%8.3f");
    maxYField.addValueChangeListener(this);
    panel.addWidget(maxYField);
    minYField = new DoubleField("Display Minimum (y) :", minYRange, "%8.3f");
    minYField.addValueChangeListener(this);
    panel.addWidget(minYField);
    autoRangeField = new BooleanSelector("Auto range: ", autoRanging);
    autoRangeField.addValueChangeListener(this);
    panel.addWidget(autoRangeField);
}
Also used : BooleanSelector(maspack.widgets.BooleanSelector) DoubleField(maspack.widgets.DoubleField)

Aggregations

BooleanSelector (maspack.widgets.BooleanSelector)8 DoubleField (maspack.widgets.DoubleField)4 OptionPanel (maspack.widgets.OptionPanel)3 ValueChangeEvent (maspack.widgets.ValueChangeEvent)3 ControlPanel (artisynth.core.gui.ControlPanel)2 DoubleInterval (maspack.util.DoubleInterval)2 StringHolder (maspack.util.StringHolder)2 DoubleIntervalField (maspack.widgets.DoubleIntervalField)2 StringField (maspack.widgets.StringField)2 ValueCheckListener (maspack.widgets.ValueCheckListener)2 FemMuscleModel (artisynth.core.femmodels.FemMuscleModel)1 MuscleBundle (artisynth.core.femmodels.MuscleBundle)1 FemControlPanel (artisynth.core.gui.FemControlPanel)1 PropertyField (artisynth.core.gui.widgets.PropertyField)1 Point (artisynth.core.mechmodels.Point)1 WayPoint (artisynth.core.probes.WayPoint)1 BorderLayout (java.awt.BorderLayout)1 Container (java.awt.Container)1 Dimension (java.awt.Dimension)1 GridLayout (java.awt.GridLayout)1