Search in sources :

Example 1 with NumericProbeDisplayLarge

use of artisynth.core.gui.NumericProbeDisplayLarge in project artisynth_core by artisynth.

the class ProbeInfo method setLargeDisplayVisible.

public NumericProbeDisplayLarge setLargeDisplayVisible(boolean visible) {
    Probe probe = getProbe();
    if (!(probe instanceof NumericProbeBase)) {
        return null;
    }
    // display large probe display
    if (visible) {
        if (largeDisplay == null) {
            largeDisplay = new NumericProbeDisplayLarge(probe, Integer.toString(getTrackNumber()));
            ;
            largeDisplay.addWindowListener(new WindowHandler());
            // position the large probe window to the left of the timeline window
            Point timelineLocation = myController.getLocation();
            Dimension timelineSize = myController.getSize();
            Point newLargeProbePosition = new Point(timelineLocation.x + timelineSize.width, timelineLocation.y);
            largeDisplay.setLocation(newLargeProbePosition);
        }
        largeDisplay.setVisible(true);
    } else {
        if (largeDisplay == null) {
            largeDisplay.setVisible(false);
        }
    }
    return largeDisplay;
}
Also used : NumericProbeBase(artisynth.core.probes.NumericProbeBase) Point(java.awt.Point) WayPoint(artisynth.core.probes.WayPoint) Dimension(java.awt.Dimension) NumericOutputProbe(artisynth.core.probes.NumericOutputProbe) WayPointProbe(artisynth.core.probes.WayPointProbe) Probe(artisynth.core.probes.Probe) NumericInputProbe(artisynth.core.probes.NumericInputProbe) NumericProbeDisplayLarge(artisynth.core.gui.NumericProbeDisplayLarge)

Aggregations

NumericProbeDisplayLarge (artisynth.core.gui.NumericProbeDisplayLarge)1 NumericInputProbe (artisynth.core.probes.NumericInputProbe)1 NumericOutputProbe (artisynth.core.probes.NumericOutputProbe)1 NumericProbeBase (artisynth.core.probes.NumericProbeBase)1 Probe (artisynth.core.probes.Probe)1 WayPoint (artisynth.core.probes.WayPoint)1 WayPointProbe (artisynth.core.probes.WayPointProbe)1 Dimension (java.awt.Dimension)1 Point (java.awt.Point)1