use of artisynth.core.gui.probeEditor.InputNumericProbeEditor in project artisynth_core by artisynth.
the class ProbeInfo method editProbe.
// edit the probe
private void editProbe() {
NumericProbeEditor dialog;
if (getProbe().isInput()) {
dialog = new InputNumericProbeEditor((NumericInputProbe) getProbe());
} else {
dialog = new OutputNumericProbeEditor((NumericOutputProbe) getProbe());
}
dialog.setVisible(true);
Point loc = getMain().getFrame().getLocation();
dialog.setLocation(loc.x + getMain().getFrame().getWidth(), getMain().getFrame().getHeight());
myController.addProbeEditor(dialog);
}
use of artisynth.core.gui.probeEditor.InputNumericProbeEditor in project artisynth_core by artisynth.
the class MenuBarHandler method addProbe.
/**
* this function opens up a dialog that allows the adding of probes
*/
private void addProbe(boolean isInput) {
NumericProbeEditor dialog;
if (isInput) {
dialog = new InputNumericProbeEditor();
} else {
dialog = new OutputNumericProbeEditor();
}
dialog.setVisible(true);
java.awt.Point loc = myMain.getFrame().getLocation();
dialog.setLocation(loc.x + myMain.getFrame().getWidth() / 2, myMain.getFrame().getHeight() / 2);
myMain.getTimeline().addProbeEditor(dialog);
}
Aggregations