uk.ac.ed.ph.signal
Class Colour

java.lang.Object
  extended by uk.ac.ed.ph.signal.Colour

public class Colour
extends Object

Class to give a range of colours for diagrams


Field Summary
static Color ApertureColour
          Colour of Apertures is diagrams
static Color AxisColour
          Colour of optical axis on Diagrams
static Color BackgroundColour
          General background (defaults to white)
static Color FocalPlaneColour
          Colour of focal planes on Diagrams
static Color InputOutputPlaneColour
          Colour of Input and Output planes on Diagrams
static Color MenuBarColour
          Colour for menu bars
static Color ObjectImagePlaneColour
          Colour of Object/Image Planes on diagrams
static Color PrincipalPlaneColour
          Colour of Principal Planes of Diagrams
static Color QuadricSurfaceColour
          Colour of curved lens/ or mirror surfaces.
static Color SpotColour
          Default Spot diagram colour
static Color TextFieldColour
          Colour for textfields
 
Constructor Summary
Colour()
           
 
Method Summary
static Color ArgonBlueGreen()
          Static method to get a Argon blue-green colour
static Color ArgonGreen()
          Static method to get a Argon blue-green colour
static Color Blue()
          Static method to get OpticsConstant.BLUE colour
static Color Green()
          Static method to get OpticsConstant.GREEN colour
static Color HeNe()
          Static method to get a HeNe colour
static Color Red()
          Static method to get OpticsConstant.RED colour
static Color RefractiveIndexColour(double index)
          Satic method to give a glass colour given by the refractive index.
static Color Sodium()
          Static method to get Sodium Yellow colour
static 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 Color BackgroundColour
General background (defaults to white)


MenuBarColour

public static Color MenuBarColour
Colour for menu bars


TextFieldColour

public static Color TextFieldColour
Colour for textfields


InputOutputPlaneColour

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


PrincipalPlaneColour

public static Color PrincipalPlaneColour
Colour of Principal Planes of Diagrams


FocalPlaneColour

public static Color FocalPlaneColour
Colour of focal planes on Diagrams


AxisColour

public static Color AxisColour
Colour of optical axis on Diagrams


ObjectImagePlaneColour

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


QuadricSurfaceColour

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


ApertureColour

public static Color ApertureColour
Colour of Apertures is diagrams


SpotColour

public static Color SpotColour
Default Spot diagram colour

Constructor Detail

Colour

public Colour()
Method Detail

Blue

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


Green

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


Red

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


Sodium

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


HeNe

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


ArgonBlueGreen

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


ArgonGreen

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


WavelengthColour

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