All Packages Class Hierarchy This Package Previous Next Index
Class user.plot.PlotMarker
java.lang.Object
|
+----user.plot.PlotMarker
- public class PlotMarker
- extends Object
Define the plot markers used in the PlotCanvas
class.
- See Also:
- PlotCanvas
-
ALL_MARKERS
- Array with all markers.
-
ARROW
- Arrow marker ID.
-
ARROW_NAME
- Arrow marker name.
-
ASTERIC
- Asteric marker ID.
-
ASTERIC_NAME
- Asteric marker name.
-
BUSHEL
- Bushel marker ID.
-
BUSHEL_NAME
- Bushel marker name.
-
DEFAULT
- The default marker ID.
-
DEFAULT_MARKER
- Class instance constant of the default marker.
-
DIABOLO
- Diabolo marker ID.
-
DIABOLO_NAME
- Diabolo marker name.
-
DIAMOND
- Diamond marker ID.
-
DIAMOND_NAME
- Diamond marker name.
-
NONE
- marker ID when no markers are used.
-
NONE_MARKER
- Class instance constant when no marker is used.
-
NONE_NAME
- Marker name when no marker is used.
-
OCTAGON
- Octagon marker ID.
-
OCTAGON_NAME
- Octagon marker name.
-
PLUS_SIGN
- Plus sign marker ID.
-
PLUS_SIGN_NAME
- Plus sign marker name.
-
RAYED_SQUARE
- Rayed square marker ID.
-
RAYED_SQUARE_NAME
- Rayed square marker name.
-
SQUARE
- Square marker ID.
-
SQUARE_NAME
- Square marker name.
-
TRIANGLE
- Triangle marker ID.
-
TRIANGLE_NAME
- Triangle marker name.
-
X_SIGN
- X sign marker ID.
-
X_SIGN_NAME
- X sign marker name.
-
Y_SIGN
- Y sign marker ID.
-
Y_SIGN_NAME
- Y sign marker name.
-
Z_SIGN
- Z sign marker ID.
-
Z_SIGN_NAME
- Z sign marker name.
-
PlotMarker(int)
- Constructor.
-
draw(int, int, Graphics)
- Draw the marker.
-
draw(int, int, int, Graphics)
- Draw the marker specified with its ID.
-
drawArrow(int, int, Graphics)
- Draw an arrow marker.
-
drawAsteric(int, int, Graphics)
- Draw an asteric marker.
-
drawBushel(int, int, Graphics)
- Draw a bushel marker.
-
drawDiabolo(int, int, Graphics)
- Draw a diabolo marker.
-
drawDiamond(int, int, Graphics)
- Draw a diamond marker.
-
drawOctagon(int, int, Graphics)
- Draw an octagon marker.
-
drawPlusSign(int, int, Graphics)
- Draw a plus sign marker.
-
drawRayedSquare(int, int, Graphics)
- Draw a rayed square marker.
-
drawSquare(int, int, Graphics)
- Draw a square marker.
-
drawTriangle(int, int, Graphics)
- Draw a triangle marker.
-
drawXSign(int, int, Graphics)
- Draw a X sign marker.
-
drawYSign(int, int, Graphics)
- Draw a y sign marker.
-
drawZSign(int, int, Graphics)
- Draw a z sign marker.
-
getSize()
- Get the marker size constant.
-
getValue()
- Get the ID of this marker.
-
getValueOf(String)
- The marker value is returned which corresponds with the specified
name.
-
set(int)
- Set a new marker ID.
-
setSize(int)
- Set the marker size constant.
-
valueOf(String)
- A new marker is returned with the specified name.
NONE
public static final int NONE
- marker ID when no markers are used.
DIAMOND
public static final int DIAMOND
- Diamond marker ID.
SQUARE
public static final int SQUARE
- Square marker ID.
TRIANGLE
public static final int TRIANGLE
- Triangle marker ID.
OCTAGON
public static final int OCTAGON
- Octagon marker ID.
DIABOLO
public static final int DIABOLO
- Diabolo marker ID.
X_SIGN
public static final int X_SIGN
- X sign marker ID.
PLUS_SIGN
public static final int PLUS_SIGN
- Plus sign marker ID.
Y_SIGN
public static final int Y_SIGN
- Y sign marker ID.
ARROW
public static final int ARROW
- Arrow marker ID.
Z_SIGN
public static final int Z_SIGN
- Z sign marker ID.
RAYED_SQUARE
public static final int RAYED_SQUARE
- Rayed square marker ID.
BUSHEL
public static final int BUSHEL
- Bushel marker ID.
ASTERIC
public static final int ASTERIC
- Asteric marker ID.
DEFAULT
public static final int DEFAULT
- The default marker ID.
NONE_MARKER
public static final PlotMarker NONE_MARKER
- Class instance constant when no marker is used.
DEFAULT_MARKER
public static final PlotMarker DEFAULT_MARKER
- Class instance constant of the default marker.
NONE_NAME
public static final String NONE_NAME
- Marker name when no marker is used.
DIAMOND_NAME
public static final String DIAMOND_NAME
- Diamond marker name.
SQUARE_NAME
public static final String SQUARE_NAME
- Square marker name.
TRIANGLE_NAME
public static final String TRIANGLE_NAME
- Triangle marker name.
OCTAGON_NAME
public static final String OCTAGON_NAME
- Octagon marker name.
DIABOLO_NAME
public static final String DIABOLO_NAME
- Diabolo marker name.
X_SIGN_NAME
public static final String X_SIGN_NAME
- X sign marker name.
PLUS_SIGN_NAME
public static final String PLUS_SIGN_NAME
- Plus sign marker name.
Y_SIGN_NAME
public static final String Y_SIGN_NAME
- Y sign marker name.
ARROW_NAME
public static final String ARROW_NAME
- Arrow marker name.
Z_SIGN_NAME
public static final String Z_SIGN_NAME
- Z sign marker name.
RAYED_SQUARE_NAME
public static final String RAYED_SQUARE_NAME
- Rayed square marker name.
BUSHEL_NAME
public static final String BUSHEL_NAME
- Bushel marker name.
ASTERIC_NAME
public static final String ASTERIC_NAME
- Asteric marker name.
ALL_MARKERS
public static final int ALL_MARKERS[]
- Array with all markers.
PlotMarker
public PlotMarker(int value)
- Constructor. The marker specified by its ID is created.
- Parameters:
- value - The specified marker ID.
valueOf
public static PlotMarker valueOf(String value_name)
- A new marker is returned with the specified name. When no marker
exists with the specified name, a new instance of the default
marker is returned.
- Parameters:
- value_name - The name of the specified marker name.
- Returns:
- A new instance of the specified marker.
- See Also:
- getValueOf
getValueOf
public static int getValueOf(String value_name)
- The marker value is returned which corresponds with the specified
name. When no marker exists with the specified name,
-1
is returned.
- Parameters:
- value_name - The name of the specified marker.
- Returns:
- The value of the specified marker name.
- See Also:
- valueOf
setSize
public static void setSize(int new_size)
- Set the marker size constant. It is used for all markers. The
best result gives powers of 4.
- Parameters:
- new_size - The new overall marker size.
getSize
public static int getSize()
- Get the marker size constant.
- Returns:
- The overall marker size.
set
public void set(int value)
- Set a new marker ID.
- Parameters:
- value - The specified marker ID.
getValue
public int getValue()
- Get the ID of this marker.
- Returns:
- The ID of this marker.
draw
public void draw(int x,
int y,
Graphics g)
- Draw the marker. The specified position is the middlepoint of the
marker.
- Parameters:
- x - The X-coordinate of the marker middlepoint.
- y - The Y-coordinate of the marker middlepoint.
- g - The used graphical context.
draw
public static void draw(int value,
int x,
int y,
Graphics g)
- Draw the marker specified with its ID. The specified position is
the middlepoint of the marker.
- Parameters:
- value - The specified marker ID value.
- x - The X-coordinate of the marker
middlepoint.
- y - The Y-coordinate of the marker
middlepoint.
- g - The used graphical context.
drawDiamond
public static void drawDiamond(int x,
int y,
Graphics g)
- Draw a diamond marker. The specified position is the middlepoint
of the marker.
- Parameters:
- x - The X-coordinate of the marker middlepoint.
- y - The Y-coordinate of the marker middlepoint.
- g - The used graphical context.
drawSquare
public static void drawSquare(int x,
int y,
Graphics g)
- Draw a square marker. The specified position is the middlepoint
of the marker.
- Parameters:
- x - The X-coordinate of the marker middlepoint.
- y - The Y-coordinate of the marker middlepoint.
- g - The used graphical context.
drawTriangle
public static void drawTriangle(int x,
int y,
Graphics g)
- Draw a triangle marker. The specified position is the middlepoint
of the marker.
- Parameters:
- x - The X-coordinate of the marker middlepoint.
- y - The Y-coordinate of the marker middlepoint.
- g - The used graphical context.
drawOctagon
public static void drawOctagon(int x,
int y,
Graphics g)
- Draw an octagon marker. The specified position is the middlepoint
of the marker.
- Parameters:
- x - The X-coordinate of the marker middlepoint.
- y - The Y-coordinate of the marker middlepoint.
- g - The used graphical context.
drawDiabolo
public static void drawDiabolo(int x,
int y,
Graphics g)
- Draw a diabolo marker. The specified position is the middlepoint
of the marker.
- Parameters:
- x - The X-coordinate of the marker middlepoint.
- y - The Y-coordinate of the marker middlepoint.
- g - The used graphical context.
drawXSign
public static void drawXSign(int x,
int y,
Graphics g)
- Draw a X sign marker. The specified position is the
middlepoint of the marker.
- Parameters:
- x - The X-coordinate of the marker middlepoint.
- y - The Y-coordinate of the marker middlepoint.
- g - The used graphical context.
drawPlusSign
public static void drawPlusSign(int x,
int y,
Graphics g)
- Draw a plus sign marker. The specified position is the
middlepoint of the marker.
- Parameters:
- x - The X-coordinate of the marker middlepoint.
- y - The Y-coordinate of the marker middlepoint.
- g - The used graphical context.
drawYSign
public static void drawYSign(int x,
int y,
Graphics g)
- Draw a y sign marker. The specified position is the
middlepoint of the marker.
- Parameters:
- x - The X-coordinate of the marker middlepoint.
- y - The Y-coordinate of the marker middlepoint.
- g - The used graphical context.
drawArrow
public static void drawArrow(int x,
int y,
Graphics g)
- Draw an arrow marker. The specified position is the middlepoint
of the marker.
- Parameters:
- x - The X-coordinate of the marker middlepoint.
- y - The Y-coordinate of the marker middlepoint.
- g - The used graphical context.
drawZSign
public static void drawZSign(int x,
int y,
Graphics g)
- Draw a z sign marker. The specified position is the
middlepoint of the marker.
- Parameters:
- x - The X-coordinate of the marker middlepoint.
- y - The Y-coordinate of the marker middlepoint.
- g - The used graphical context.
drawRayedSquare
public static void drawRayedSquare(int x,
int y,
Graphics g)
- Draw a rayed square marker. The specified position is the
middlepoint of the marker.
- Parameters:
- x - The X-coordinate of the marker middlepoint.
- y - The Y-coordinate of the marker middlepoint.
- g - The used graphical context.
drawBushel
public static void drawBushel(int x,
int y,
Graphics g)
- Draw a bushel marker. The specified position is the middlepoint
of the marker.
- Parameters:
- x - The X-coordinate of the marker middlepoint.
- y - The Y-coordinate of the marker middlepoint.
- g - The used graphical context.
drawAsteric
public static void drawAsteric(int x,
int y,
Graphics g)
- Draw an asteric marker. The specified position is the middlepoint
of the marker.
- Parameters:
- x - The X-coordinate of the marker middlepoint.
- y - The Y-coordinate of the marker middlepoint.
- g - The used graphical context.
All Packages Class Hierarchy This Package Previous Next Index