Documentation of 'vgp.iterate.juliaSet.PjJuliaSet' Java class
PjJuliaSet ("JavaView Reference Manual")
"JavaView? v5.03.003"
vgp.iterate.juliaSet

Class PjJuliaSet

  • All Implemented Interfaces:
    java.awt.event.ComponentListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, PsTimeListenerIf, PsUpdateIf, PvPickListenerIf


    public class PjJuliaSet
    extends PjProject
    implements java.awt.event.ComponentListener
    Demo project for working with pixel images. Project displays a Julia set and a Mandelbrot set where the Julia set is determined by picking a module value in the Mandelbrot image. Picking in a Julia set will display several iterations of the picked point.

    Zoom into images by marking a rectangle in display using mark-mode.

    See Also:
    Serialized Form
    Author:
    Konrad Polthier
    Version:
    04.11.06, 3.00 revised (kp) Moved to vgp.iterate.juliaSet and renamed.
    01.10.05, 2.10 revised (kp) User interface improved.
    10.08.05, 2.00 revised (kp) Functional extensions and efficiency optimization.
    26.09.99, 1.00 created (kp)
    • Constructor Detail

      • PjJuliaSet

        public PjJuliaSet()
    • Method Detail

      • init

        public void init()
        Description copied from class: PjProject
        Initialize and reset project, stops the running animation if any. Does not reset any registered display nor geometry. They must be reset individually in each subclass.
        Overrides:
        init in class PjProject
      • componentShown

        public void componentShown(java.awt.event.ComponentEvent comp)
        Invoked when component has been shown.
        Specified by:
        componentShown in interface java.awt.event.ComponentListener
      • componentHidden

        public void componentHidden(java.awt.event.ComponentEvent comp)
        Invoked when component has been hidden.
        Specified by:
        componentHidden in interface java.awt.event.ComponentListener
      • componentMoved

        public void componentMoved(java.awt.event.ComponentEvent comp)
        Invoked when component has been moved.
        Specified by:
        componentMoved in interface java.awt.event.ComponentListener
      • componentResized

        public void componentResized(java.awt.event.ComponentEvent comp)
        When component has been resized all images must be resized.
        Specified by:
        componentResized in interface java.awt.event.ComponentListener
      • getDispJulia

        public PvDisplayIf getDispJulia()
        Get display of Julia set. The shown Julia set is determined by a complex value c to be picked in the Mandelbrot image. Picking inside the Julia set will show the iterated values of the picked point z under the map z -> z^2+c.
      • getDispMandelbrot

        public PvDisplayIf getDispMandelbrot()
        Get display of Mandelbrot set which is used to select the complex parameter value c which determines the Julia set.
      • markVertices

        public void markVertices(PvPickEvent pickEvent)
        Method is called from display when user drags a rectangular array. The pixel rectangle is converted into a rectangle in the complex plane and used to zoom into the Julia or Mandelbrot set.
        Specified by:
        markVertices in interface PvPickListenerIf
        Overrides:
        markVertices in class PjProject
        Parameters:
        pickEvent - Everything in a PvPickEvent MarkBox gets marked.
      • pickInitial

        public void pickInitial(PvPickEvent pickEvent)
        Method is called from display when a user picks into the display in initial-pick mode. This method iterates the picked point using the Julia or Mandelbrot function and displays the iterated points.
        Specified by:
        pickInitial in interface PvPickListenerIf
        Overrides:
        pickInitial in class PjProject
        Parameters:
        pickEvent - Pick event issued by the display on left mouse pick.
        See Also:
        PvPickListenerIf
      • computeImageJulia

        public void computeImageJulia(PvDisplayIf disp,
                                      double xMin,
                                      double yMin,
                                      double xMax,
                                      double yMax)
        Compute a Julia set in the given rectangle in the complex plane and updates the corresponding images.

        Parameters determine a rectangle in the complex plane in which the Julia set is computed.

      • computeImageMandelbrot

        public void computeImageMandelbrot(PvDisplayIf disp,
                                           double xMin,
                                           double yMin,
                                           double xMax,
                                           double yMax)
        Compute a Mandelbrot set in the given rectangle in the complex plane and updates the corresponding images.

        Parameters determine a rectangle in the complex plane in which the Mandelbrot set is computed.

      • computeJulia

        public void computeJulia(int[] pixIter,
                                 int imageWidth,
                                 int imageHeight,
                                 int blockSize,
                                 double xMin,
                                 double yMin,
                                 double xMax,
                                 double yMax,
                                 int maxIter,
                                 PuComplex c)
        Compute a Julia set in the given rectangle in the complex plane. Method returns a pixel array with given width and height. Adjusting the maximal number of iterations and blockSize allows to speed up the calculation at the cost of accuracy.

        The algorithm determines for given complex parameter c if the iteration f(z)=z*z+c diverges to infinity which is assumed if |z|>4.

        Parameters determine a rectangle in the complex plane in which the Julia set is computed.

        Parameters:
        pixIter - pixel image with RGB integers which will be computed.
        Version:
        10.08.05, 1.00 revised (kp) Major revision and optimization.
      • computeMandelbrot

        public void computeMandelbrot(int[] pixIter,
                                      int imageWidth,
                                      int imageHeight,
                                      int blockSize,
                                      double xMin,
                                      double yMin,
                                      double xMax,
                                      double yMax,
                                      int maxIter)
        Compute a Mandelbrot set in the given rectangle in the complex plane. Method returns a pixel array with given width and height. Adjusting the maximal number of iterations and blockSize allows to speed up the calculation at the cost of accuracy.

        The algorithm determines for each z0 if the iteration f(z)=z*z+z0 diverges to infinity which is assumed if |z|>4.

        Parameters determine a rectangle in the complex plane in which the Mandelbrot set is computed.

        Parameters:
        pixIter - pixel image with RGB integers which will be computed.
        Version:
        10.08.05, 1.00 revised (kp) Major revision and optimization.
      • computeColors

        public void computeColors(int[] pixArr,
                                  int[] valArr,
                                  int len,
                                  int maxVal,
                                  int colType)
        Compute color array from an array of scalar integer values. Transfer function depends on chosen color type.
"JavaView? v5.03.003"

"

The software JavaView? is copyright protected. All Rights Reserved.
"

You see the box below because you did not login.