Autoskalierung und Zoom | Automatic Scaling and Zoom

DE:  Um die Wirkung der unterschiedlichen autoscale Einstellungen zu prüfen, schieben Sie den Schieberegler in beide Richtungen (und siehe Details).
EN:  To see the effect of the different autoscale settings please move the slider in both directions (and see details).


DE > EN

Automatische Skalierung, Methoden setAutoScale und rescale

Zoomen und Methode setXYBounds

Kontext-Menü



EN > DE

Automatic scaling, methods setAutoScale and rescale

  • the autoscale setting of a graphic display can be changed from the context menu (right mouse-click) of the display or calling the method pf.setAutoScale(int) on the PlotFrame instance pf:
    •  2: expands and shrinks on slider change and add(painter)
    •  1: expands on slider change and add(painter)
    •  0: expands on add(painter) (zooming implies setAutoScale(0))
    • -1: no automatic rescale (set internally by setXYBounds)
  • Rescale from the context menu or calling the method pf.rescale() on the PlotFrame instance pf sets the bounds optimal for showing all graphical objects.
    To exclude isolated extreme values (outliers) from the scaling use JxnRealArrayCurve.setLimiter(true).

Zooming and method setXYBounds

  • zooming of the graphic display is possible by left mouse drag  or  by calling the setXYBounds method of KmgFormelPlotFrame.
  • zoom in or out depending on the drag direction: see In-Out
  • after zooming the scrollbars of the PlotFrame can be used to shift the display area.
  • Rescale from the context menu or calling the method pf.rescale() on the PlotFrame instance pf returns to the bounds optimal for showing all graphical objects.

Context menu

  • The context menu (right mouse-click) of the graphic display provides the following:
    • Rescale: (re)scales the display to the optimal bounds.
    • Save PNG... : writes the graphic display to a png-file.
    • auto scale: ... : controls automatic scaling (see setAutoScale)
    • cursor text enabled: changes the cursor display (see setCursorTextEnabled)


← zurück | back