optics.graphics
Class Colour

java.lang.Object
  extended by optics.graphics.Colour

public class Colour
extends java.lang.Object

Class to give a range of colours for diagrams


Field Summary
static java.awt.Color ApertureColour
          Colour of Apertures is diagrams
static java.awt.Color AxisColour
          Colour of optical axis on Diagrams
static java.awt.Color BackgroundColour
          General background (defaults to white)
static java.awt.Color CrossColour
          Default DistortionGrid cross colour
static java.awt.Color DragColour
          Colour of dragged areas on diagrams
static java.awt.Color FocalPlaneColour
          Colour of focal planes on Diagrams
static java.awt.Color InputOutputPlaneColour
          Colour of Input and Output planes on Diagrams
static java.awt.Color MenuBarColour
          Colour for menu bars (defaults to light blue)
static java.awt.Color ObjectImagePlaneColour
          Colour of Object/Image Planes on diagrams
static java.awt.Color PrincipalPlaneColour
          Colour of Principal Planes of Diagrams
static java.awt.Color PSFColour
          Default PSF colour on diagrams
static java.awt.Color QuadricSurfaceColour
          Colour of curved lens/ or mirror surfaces.
static java.awt.Color SpotColour
          Default Spot diagram colour
static java.awt.Color TextColour
          Colour for diagram text (defaults to dark red).
static java.awt.Color TextFieldColour
          Colour for textfields
 
Constructor Summary
Colour()
           
 
Method Summary
static java.awt.Color ArgonBlueGreen()
          Static method to get a Argon blue-green colour
static java.awt.Color ArgonGreen()
          Static method to get a Argon blue-green colour
static java.awt.Color Blue()
          Static method to get OpticsConstant.BLUE colour
static java.awt.Color Green()
          Static method to get OpticsConstant.GREEN colour
static java.awt.Color HeNe()
          Static method to get a HeNe colour
static java.awt.Color Red()
          Static method to get OpticsConstant.RED colour
static java.awt.Color RefractiveIndexColour(double index)
          Satic method to give a glass colour given by the refractive index.
static java.awt.Color Sodium()
          Static method to get Sodium Yellow colour
static java.awt.Color WavelengthColour(double lambda)
          Static method to give approximate colour for a given wavelength using simple linear colour combinations Based on fortran code by Dan Bruton, Stephen F Austin State University.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BackgroundColour

public static java.awt.Color BackgroundColour
General background (defaults to white)


MenuBarColour

public static java.awt.Color MenuBarColour
Colour for menu bars (defaults to light blue)


TextColour

public static java.awt.Color TextColour
Colour for diagram text (defaults to dark red).


DragColour

public static java.awt.Color DragColour
Colour of dragged areas on diagrams


TextFieldColour

public static java.awt.Color TextFieldColour
Colour for textfields


InputOutputPlaneColour

public static java.awt.Color InputOutputPlaneColour
Colour of Input and Output planes on Diagrams


PrincipalPlaneColour

public static java.awt.Color PrincipalPlaneColour
Colour of Principal Planes of Diagrams


FocalPlaneColour

public static java.awt.Color FocalPlaneColour
Colour of focal planes on Diagrams


AxisColour

public static java.awt.Color AxisColour
Colour of optical axis on Diagrams


PSFColour

public static java.awt.Color PSFColour
Default PSF colour on diagrams


ObjectImagePlaneColour

public static java.awt.Color ObjectImagePlaneColour
Colour of Object/Image Planes on diagrams


QuadricSurfaceColour

public static java.awt.Color QuadricSurfaceColour
Colour of curved lens/ or mirror surfaces.


ApertureColour

public static java.awt.Color ApertureColour
Colour of Apertures is diagrams


SpotColour

public static java.awt.Color SpotColour
Default Spot diagram colour


CrossColour

public static java.awt.Color CrossColour
Default DistortionGrid cross colour

Constructor Detail

Colour

public Colour()
Method Detail

Blue

public static java.awt.Color Blue()
Static method to get OpticsConstant.BLUE colour


Green

public static java.awt.Color Green()
Static method to get OpticsConstant.GREEN colour


Red

public static java.awt.Color Red()
Static method to get OpticsConstant.RED colour


Sodium

public static java.awt.Color Sodium()
Static method to get Sodium Yellow colour


HeNe

public static java.awt.Color HeNe()
Static method to get a HeNe colour


ArgonBlueGreen

public static java.awt.Color ArgonBlueGreen()
Static method to get a Argon blue-green colour


ArgonGreen

public static java.awt.Color ArgonGreen()
Static method to get a Argon blue-green colour


WavelengthColour

public static java.awt.Color WavelengthColour(double lambda)
Static method to give approximate colour for a given wavelength using simple linear colour combinations Based on fortran code by Dan Bruton, Stephen F Austin State University.

Parameters:
lambda - Wavelength in microns
Returns:
java.awt.Color objest

RefractiveIndexColour

public static java.awt.Color RefractiveIndexColour(double index)
Satic method to give a glass colour given by the refractive index. Colour will be light/mid blue.

Parameters:
index - the glass index