net.grelf.grip
Class ImGraphic

java.lang.Object
  extended by net.grelf.grip.ImGraphic

public class ImGraphic
extends java.lang.Object

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


Method Summary
static void colourChart(ImFrame imf)
          Draw a range of colour swatches, each with its RGB value shown as text over it.
static void drawGrid(ImFrame imf)
          Draw a grid of black squares.
static void drawMandelbrot(ImFrame imf)
          Draw the Mandelbrot curve in the given frame at scale 1.
static 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.
static void drawRim(java.awt.image.BufferedImage bim, int width, java.awt.Color colour)
          Draw a rim around the given image, of the given width and colour
static 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

drawMandelbrot

public static void drawMandelbrot(ImFrame imf)
Draw the Mandelbrot curve in the given frame at scale 1.


drawMandelbrot

public static 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 static void drawGrid(ImFrame imf)
Draw a grid of black squares. Intended for photographic purposes when printed - for checking lens distortions.


drawRim

public static 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


drawRim

public static void drawRim(java.awt.image.BufferedImage bim,
                           int width,
                           java.awt.Color colour)
Draw a rim around the given image, of the given width and colour


colourChart

public static void colourChart(ImFrame imf)
Draw a range of colour swatches, each with its RGB value shown as text over it.