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

Variable Index

 o ALL_MARKERS
Array with all markers.
 o ARROW
Arrow marker ID.
 o ARROW_NAME
Arrow marker name.
 o ASTERIC
Asteric marker ID.
 o ASTERIC_NAME
Asteric marker name.
 o BUSHEL
Bushel marker ID.
 o BUSHEL_NAME
Bushel marker name.
 o DEFAULT
The default marker ID.
 o DEFAULT_MARKER
Class instance constant of the default marker.
 o DIABOLO
Diabolo marker ID.
 o DIABOLO_NAME
Diabolo marker name.
 o DIAMOND
Diamond marker ID.
 o DIAMOND_NAME
Diamond marker name.
 o NONE
marker ID when no markers are used.
 o NONE_MARKER
Class instance constant when no marker is used.
 o NONE_NAME
Marker name when no marker is used.
 o OCTAGON
Octagon marker ID.
 o OCTAGON_NAME
Octagon marker name.
 o PLUS_SIGN
Plus sign marker ID.
 o PLUS_SIGN_NAME
Plus sign marker name.
 o RAYED_SQUARE
Rayed square marker ID.
 o RAYED_SQUARE_NAME
Rayed square marker name.
 o SQUARE
Square marker ID.
 o SQUARE_NAME
Square marker name.
 o TRIANGLE
Triangle marker ID.
 o TRIANGLE_NAME
Triangle marker name.
 o X_SIGN
X sign marker ID.
 o X_SIGN_NAME
X sign marker name.
 o Y_SIGN
Y sign marker ID.
 o Y_SIGN_NAME
Y sign marker name.
 o Z_SIGN
Z sign marker ID.
 o Z_SIGN_NAME
Z sign marker name.

Constructor Index

 o PlotMarker(int)
Constructor.

Method Index

 o draw(int, int, Graphics)
Draw the marker.
 o draw(int, int, int, Graphics)
Draw the marker specified with its ID.
 o drawArrow(int, int, Graphics)
Draw an arrow marker.
 o drawAsteric(int, int, Graphics)
Draw an asteric marker.
 o drawBushel(int, int, Graphics)
Draw a bushel marker.
 o drawDiabolo(int, int, Graphics)
Draw a diabolo marker.
 o drawDiamond(int, int, Graphics)
Draw a diamond marker.
 o drawOctagon(int, int, Graphics)
Draw an octagon marker.
 o drawPlusSign(int, int, Graphics)
Draw a plus sign marker.
 o drawRayedSquare(int, int, Graphics)
Draw a rayed square marker.
 o drawSquare(int, int, Graphics)
Draw a square marker.
 o drawTriangle(int, int, Graphics)
Draw a triangle marker.
 o drawXSign(int, int, Graphics)
Draw a X sign marker.
 o drawYSign(int, int, Graphics)
Draw a y sign marker.
 o drawZSign(int, int, Graphics)
Draw a z sign marker.
 o getSize()
Get the marker size constant.
 o getValue()
Get the ID of this marker.
 o getValueOf(String)
The marker value is returned which corresponds with the specified name.
 o set(int)
Set a new marker ID.
 o setSize(int)
Set the marker size constant.
 o valueOf(String)
A new marker is returned with the specified name.

Variables

 o NONE
 public static final int NONE
marker ID when no markers are used.

 o DIAMOND
 public static final int DIAMOND
Diamond marker ID.

 o SQUARE
 public static final int SQUARE
Square marker ID.

 o TRIANGLE
 public static final int TRIANGLE
Triangle marker ID.

 o OCTAGON
 public static final int OCTAGON
Octagon marker ID.

 o DIABOLO
 public static final int DIABOLO
Diabolo marker ID.

 o X_SIGN
 public static final int X_SIGN
X sign marker ID.

 o PLUS_SIGN
 public static final int PLUS_SIGN
Plus sign marker ID.

 o Y_SIGN
 public static final int Y_SIGN
Y sign marker ID.

 o ARROW
 public static final int ARROW
Arrow marker ID.

 o Z_SIGN
 public static final int Z_SIGN
Z sign marker ID.

 o RAYED_SQUARE
 public static final int RAYED_SQUARE
Rayed square marker ID.

 o BUSHEL
 public static final int BUSHEL
Bushel marker ID.

 o ASTERIC
 public static final int ASTERIC
Asteric marker ID.

 o DEFAULT
 public static final int DEFAULT
The default marker ID.

 o NONE_MARKER
 public static final PlotMarker NONE_MARKER
Class instance constant when no marker is used.

 o DEFAULT_MARKER
 public static final PlotMarker DEFAULT_MARKER
Class instance constant of the default marker.

 o NONE_NAME
 public static final String NONE_NAME
Marker name when no marker is used.

 o DIAMOND_NAME
 public static final String DIAMOND_NAME
Diamond marker name.

 o SQUARE_NAME
 public static final String SQUARE_NAME
Square marker name.

 o TRIANGLE_NAME
 public static final String TRIANGLE_NAME
Triangle marker name.

 o OCTAGON_NAME
 public static final String OCTAGON_NAME
Octagon marker name.

 o DIABOLO_NAME
 public static final String DIABOLO_NAME
Diabolo marker name.

 o X_SIGN_NAME
 public static final String X_SIGN_NAME
X sign marker name.

 o PLUS_SIGN_NAME
 public static final String PLUS_SIGN_NAME
Plus sign marker name.

 o Y_SIGN_NAME
 public static final String Y_SIGN_NAME
Y sign marker name.

 o ARROW_NAME
 public static final String ARROW_NAME
Arrow marker name.

 o Z_SIGN_NAME
 public static final String Z_SIGN_NAME
Z sign marker name.

 o RAYED_SQUARE_NAME
 public static final String RAYED_SQUARE_NAME
Rayed square marker name.

 o BUSHEL_NAME
 public static final String BUSHEL_NAME
Bushel marker name.

 o ASTERIC_NAME
 public static final String ASTERIC_NAME
Asteric marker name.

 o ALL_MARKERS
 public static final int ALL_MARKERS[]
Array with all markers.

Constructors

 o PlotMarker
 public PlotMarker(int value)
Constructor. The marker specified by its ID is created.

Parameters:
value - The specified marker ID.

Methods

 o 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
 o 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
 o 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.
 o getSize
 public static int getSize()
Get the marker size constant.

Returns:
The overall marker size.
 o set
 public void set(int value)
Set a new marker ID.

Parameters:
value - The specified marker ID.
 o getValue
 public int getValue()
Get the ID of this marker.

Returns:
The ID of this marker.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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