net.grelf.grip
Class ImGraphic

java.lang.Object
  extended by net.grelf.grip.ImGraphic
All Implemented Interfaces:
ImageSizeAction

public class ImGraphic
extends java.lang.Object
implements ImageSizeAction

Contains only static methods for creating special graphical images. It cannot be instantiated.


Constructor Summary
ImGraphic()
           
 
Method Summary
 void drawGrid()
          Draw a grid of black squares in a new frame.
 void drawMandelbrot()
          Draw the Mandelbrot curve in a new frame at scale 1.
 void drawMandelbrot(ImFrame imf, java.awt.Point offset, double zoomFactor)
          Redraw the Mandelbrot curve in the given frame, zoomed by the given factor about the given point.
 void drawRim(ImFrame imf, int width, java.awt.Color colour)
          Draw a rim around the image displayed in the given ImFrame, of the given width and colour
 void process(ImageSizeDialogue isd)
          Implementing ImageSizeAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImGraphic

public ImGraphic()
Method Detail

process

public void process(ImageSizeDialogue isd)
Implementing ImageSizeAction

Specified by:
process in interface ImageSizeAction

drawMandelbrot

public void drawMandelbrot()
Draw the Mandelbrot curve in a new frame at scale 1.


drawMandelbrot

public void drawMandelbrot(ImFrame imf,
                           java.awt.Point offset,
                           double zoomFactor)
Redraw the Mandelbrot curve in the given frame, zoomed by the given factor about the given point.


drawGrid

public void drawGrid()
Draw a grid of black squares in a new frame. Intended for photographic purposes when printed. Eg, for checking lens distortions.


drawRim

public void drawRim(ImFrame imf,
                    int width,
                    java.awt.Color colour)
Draw a rim around the image displayed in the given ImFrame, of the given width and colour