Search in sources :

Example 1 with OutputNumericProbeEditor

use of artisynth.core.gui.probeEditor.OutputNumericProbeEditor 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);
}
Also used : InputNumericProbeEditor(artisynth.core.gui.probeEditor.InputNumericProbeEditor) NumericInputProbe(artisynth.core.probes.NumericInputProbe) OutputNumericProbeEditor(artisynth.core.gui.probeEditor.OutputNumericProbeEditor) NumericProbeEditor(artisynth.core.gui.probeEditor.NumericProbeEditor) InputNumericProbeEditor(artisynth.core.gui.probeEditor.InputNumericProbeEditor) NumericOutputProbe(artisynth.core.probes.NumericOutputProbe) Point(java.awt.Point) WayPoint(artisynth.core.probes.WayPoint) OutputNumericProbeEditor(artisynth.core.gui.probeEditor.OutputNumericProbeEditor)

Example 2 with OutputNumericProbeEditor

use of artisynth.core.gui.probeEditor.OutputNumericProbeEditor 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);
}
Also used : InputNumericProbeEditor(artisynth.core.gui.probeEditor.InputNumericProbeEditor) OutputNumericProbeEditor(artisynth.core.gui.probeEditor.OutputNumericProbeEditor) NumericProbeEditor(artisynth.core.gui.probeEditor.NumericProbeEditor) InputNumericProbeEditor(artisynth.core.gui.probeEditor.InputNumericProbeEditor) OutputNumericProbeEditor(artisynth.core.gui.probeEditor.OutputNumericProbeEditor)

Aggregations

InputNumericProbeEditor (artisynth.core.gui.probeEditor.InputNumericProbeEditor)2 NumericProbeEditor (artisynth.core.gui.probeEditor.NumericProbeEditor)2 OutputNumericProbeEditor (artisynth.core.gui.probeEditor.OutputNumericProbeEditor)2 NumericInputProbe (artisynth.core.probes.NumericInputProbe)1 NumericOutputProbe (artisynth.core.probes.NumericOutputProbe)1 WayPoint (artisynth.core.probes.WayPoint)1 Point (java.awt.Point)1