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();
}
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();
}
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);
}
Aggregations