|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.vecmath.Tuple2d
javax.vecmath.Point2d
optics.graphics.Spot
public class Spot
Class to implement a coloured Spot for the Spot Panel.
Field Summary |
---|
Fields inherited from class javax.vecmath.Tuple2d |
---|
x, y |
Constructor Summary | |
---|---|
Spot(double x,
double y)
Form a spot of default colour |
|
Spot(double x,
double y,
java.awt.Color c)
Constructor to create a spot specifying position and color. |
|
Spot(double x,
double y,
double lambda)
Form a spot with colour specifed by wavelength |
|
Spot(javax.vecmath.Point2d p)
Constructor to create a spot of default colour |
|
Spot(javax.vecmath.Point2d p,
java.awt.Color c)
Constructor to creats a spot of specific position and colour. |
|
Spot(javax.vecmath.Point2d p,
double lambda)
Form a spot with colour specifed by wavelength |
Method Summary | |
---|---|
java.awt.Color |
getColour()
Method to get the color |
void |
setColour(java.awt.Color c)
Method to set the color |
static void |
setDefaultColour(java.awt.Color c)
Method to set the default spot colour |
Methods inherited from class javax.vecmath.Point2d |
---|
distance, distanceL1, distanceLinf, distanceSquared |
Methods inherited from class javax.vecmath.Tuple2d |
---|
absolute, absolute, add, add, clamp, clamp, clampMax, clampMax, clampMin, clampMin, clone, epsilonEquals, equals, equals, get, getX, getY, hashCode, interpolate, interpolate, negate, negate, scale, scale, scaleAdd, scaleAdd, set, set, set, set, setX, setY, sub, sub, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Spot(javax.vecmath.Point2d p, java.awt.Color c)
p
- the pointc
- the colourpublic Spot(double x, double y, java.awt.Color c)
x
- the x positiony
- the y positionc
- the colourpublic Spot(javax.vecmath.Point2d p)
p
- the position.public Spot(double x, double y)
x
- the x position.y
- the y position.Colour.SpotColour
,
setDefaultColour(java.awt.Color)
public Spot(double x, double y, double lambda)
x
- the x locationy
- the y locationlambda
- the wavelengthColour.WavelengthColour(double)
public Spot(javax.vecmath.Point2d p, double lambda)
p
- the Spot location.lambda
- the wavelengthColour.WavelengthColour(double)
Method Detail |
---|
public static void setDefaultColour(java.awt.Color c)
public void setColour(java.awt.Color c)
c
- the colorpublic java.awt.Color getColour()
Color
the color
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |