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