All Packages Class Hierarchy This Package Previous Next Index
Class fundamentals.mouseInfo
java.lang.Object
|
+----fundamentals.mouseInfo
- public class mouseInfo
- extends Object
-
AS_TARGET
- Reference to the color used for objects given as targets.
-
BACKGROUND
- Reference to the background color.
-
BY_PREMISE
- Reference to the color used for objects given as premise.
-
CONSTRUCTED
- Reference to the color used for constructed objects.
-
CONSTRUCTED_TARGET
- Reference to the color used for constructed objects which are also targets.
-
FLASH_VISIBLE
- Reference to the color used for flashing visible objects.
-
initialMinMax
- Initial value,
-
maxSize
- The longest side of the rectangle which is actually displayed
-
minSize
- The height of the square which must be displayed
-
scale
- Object scaling; the lenght of a mathematical unit vector in pixels
-
SHADOW
- Reference to the color of invisibel objects.
-
x0
- Object offset; the first pixel coordinate of the (0,0) mathematical point
-
xCenter
- The x-value of the center of the square which must be displayed
-
xSize
- Number of pixels available on the x-axis
-
y0
- Object offset; the second pixel coordinate of the (0,0) mathematical point
-
yCenter
- The y-value of the center of the square which must be displayed
-
ySize
- Number of pixels available on the y-axis
-
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*
-
drawSymbol(Graphics, mouseVector)
- Draws a symbol (presently a little plus).
-
getColor(int)
- Returns color indicated by color code.
-
resize()
- Using the existing pixel sizes, recalculates the values
xCenter
public static double xCenter
- The x-value of the center of the square which must be displayed
yCenter
public static double yCenter
- The y-value of the center of the square which must be displayed
minSize
public static double minSize
- The height of the square which must be displayed
maxSize
public static double maxSize
- The longest side of the rectangle which is actually displayed
xSize
public static double xSize
- Number of pixels available on the x-axis
ySize
public static double ySize
- Number of pixels available on the y-axis
scale
public static double scale
- Object scaling; the lenght of a mathematical unit vector in pixels
x0
public static int x0
- Object offset; the first pixel coordinate of the (0,0) mathematical point
y0
public static int y0
- Object offset; the second pixel coordinate of the (0,0) mathematical point
initialMinMax
public static final double initialMinMax
- Initial value, @see mouseInfo
BACKGROUND
public static final int BACKGROUND
- Reference to the background color. Default is black.
BY_PREMISE
public static final int BY_PREMISE
- Reference to the color used for objects given as premise. Default is white.
AS_TARGET
public static final int AS_TARGET
- Reference to the color used for objects given as targets. Default is magenta.
CONSTRUCTED
public static final int CONSTRUCTED
- Reference to the color used for constructed objects. Default is red.
CONSTRUCTED_TARGET
public static final int CONSTRUCTED_TARGET
- Reference to the color used for constructed objects which are also targets. Default is orange.
FLASH_VISIBLE
public static final int FLASH_VISIBLE
- Reference to the color used for flashing visible objects. Default is yellow.
SHADOW
public static final int SHADOW
- Reference to the color of invisibel objects. Default is black.
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
resize
public void resize()
- Using the existing pixel sizes, recalculates the values @see scale,
- See Also:
- x0
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
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