All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class fundamentals.mouseInfo

java.lang.Object
   |
   +----fundamentals.mouseInfo

public class mouseInfo
extends Object

Variable Index

 o AS_TARGET
Reference to the color used for objects given as targets.
 o BACKGROUND
Reference to the background color.
 o BY_PREMISE
Reference to the color used for objects given as premise.
 o CONSTRUCTED
Reference to the color used for constructed objects.
 o CONSTRUCTED_TARGET
Reference to the color used for constructed objects which are also targets.
 o FLASH_VISIBLE
Reference to the color used for flashing visible objects.
 o initialMinMax
Initial value,
 o maxSize
The longest side of the rectangle which is actually displayed
 o minSize
The height of the square which must be displayed
 o scale
Object scaling; the lenght of a mathematical unit vector in pixels
 o SHADOW
Reference to the color of invisibel objects.
 o x0
Object offset; the first pixel coordinate of the (0,0) mathematical point
 o xCenter
The x-value of the center of the square which must be displayed
 o xSize
Number of pixels available on the x-axis
 o y0
Object offset; the second pixel coordinate of the (0,0) mathematical point
 o yCenter
The y-value of the center of the square which must be displayed
 o ySize
Number of pixels available on the y-axis

Constructor Index

 o mouseInfo(int, int)
Using the pixel size of the window, initializes all values to ensure that a square centered at (0,0) and with height 2*

Method Index

 o drawSymbol(Graphics, mouseVector)
Draws a symbol (presently a little plus).
 o getColor(int)
Returns color indicated by color code.
 o resize()
Using the existing pixel sizes, recalculates the values

Variables

 o xCenter
 public static double xCenter
The x-value of the center of the square which must be displayed

 o yCenter
 public static double yCenter
The y-value of the center of the square which must be displayed

 o minSize
 public static double minSize
The height of the square which must be displayed

 o maxSize
 public static double maxSize
The longest side of the rectangle which is actually displayed

 o xSize
 public static double xSize
Number of pixels available on the x-axis

 o ySize
 public static double ySize
Number of pixels available on the y-axis

 o scale
 public static double scale
Object scaling; the lenght of a mathematical unit vector in pixels

 o x0
 public static int x0
Object offset; the first pixel coordinate of the (0,0) mathematical point

 o y0
 public static int y0
Object offset; the second pixel coordinate of the (0,0) mathematical point

 o initialMinMax
 public static final double initialMinMax
Initial value, @see mouseInfo

 o BACKGROUND
 public static final int BACKGROUND
Reference to the background color. Default is black.

 o BY_PREMISE
 public static final int BY_PREMISE
Reference to the color used for objects given as premise. Default is white.

 o AS_TARGET
 public static final int AS_TARGET
Reference to the color used for objects given as targets. Default is magenta.

 o CONSTRUCTED
 public static final int CONSTRUCTED
Reference to the color used for constructed objects. Default is red.

 o CONSTRUCTED_TARGET
 public static final int CONSTRUCTED_TARGET
Reference to the color used for constructed objects which are also targets. Default is orange.

 o FLASH_VISIBLE
 public static final int FLASH_VISIBLE
Reference to the color used for flashing visible objects. Default is yellow.

 o SHADOW
 public static final int SHADOW
Reference to the color of invisibel objects. Default is black.

Constructors

 o mouseInfo
 public mouseInfo(int xSize,
                  int ySize)
Using the pixel size of the window, initializes all values to ensure that a square centered at (0,0) and with height 2*@see initialMinMax is visible. Also set2 default colors;

Parameters:
xSize - Width of window
ySize - Height of window

Methods

 o resize
 public void resize()
Using the existing pixel sizes, recalculates the values @see scale,

See Also:
x0
 o getColor
 public Color getColor(int colorCode) throws LeaInternalException
Returns color indicated by color code.

Parameters:
colorCode - One of the constants BACKGROUND, BY_PREMISE, AS_TARGET, CONSTRUCTED, CONSTRUCTED_TARGET, FLASH_VISIBLE
Returns:
s The color
 o drawSymbol
 public void drawSymbol(Graphics g,
                        mouseVector at)
Draws a symbol (presently a little plus).

Parameters:
g - the graphics canvas
at - the location on the canvas

All Packages  Class Hierarchy  This Package  Previous  Next  Index