edu.rit.numeric.plot
Class Dots
- java.lang.Object
-
- edu.rit.numeric.plot.Dots
-
- All Implemented Interfaces:
- Drawable, java.io.Externalizable, java.io.Serializable
public abstract class Dots extends java.lang.Object implements Drawable, java.io.Externalizable
Class Dots provides operations for creating several common shapes of dots for plotting points.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description Dots()Construct a new Dots object.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static Dotscircle()Returns an object that draws a circle.static Dotscircle(java.awt.Color theFillColor)Returns an object that draws a circle with the given fill color.static Dotscircle(java.awt.Color theFillColor, java.awt.BasicStroke theOutlineStroke, java.awt.Color theOutlineColor)Returns an object that draws a circle with the given fill color, the given outline stroke, and the given outline color.static Dotscircle(java.awt.Color theFillColor, java.awt.BasicStroke theOutlineStroke, java.awt.Color theOutlineColor, double theDiameter)Returns an object that draws a circle with the given fill color, the given outline stroke, the given outline color, and the given diameter.static Dotscircle(double theDiameter)Returns an object that draws a circle with the given diameter.static Dotsdiamond()Returns an object that draws a diamond.static Dotsdiamond(java.awt.Color theFillColor)Returns an object that draws a diamond with the given fill color.static Dotsdiamond(java.awt.Color theFillColor, java.awt.BasicStroke theOutlineStroke, java.awt.Color theOutlineColor)Returns an object that draws a diamond with the given fill color, the given outline stroke, and the given outline color.static Dotsdiamond(java.awt.Color theFillColor, java.awt.BasicStroke theOutlineStroke, java.awt.Color theOutlineColor, double theSide)Returns an object that draws a diamond with the given fill color, the given outline stroke, the given outline color, and the given side.static Dotsdiamond(double theSide)Returns an object that draws a diamond with the given side.static Dotsellipse(java.awt.Color theFillColor, java.awt.BasicStroke theOutlineStroke, java.awt.Color theOutlineColor, double theWidth, double theHeight)Returns an object that draws an ellipse with the given fill color, the given outline stroke, the given outline color, and the given dimensions.static Dotsellipse(java.awt.Color theFillColor, double theWidth, double theHeight)Returns an object that draws an ellipse with the given fill color and the given dimensions.static Dotsellipse(double theWidth, double theHeight)Returns an object that draws an ellipse with the given dimensions.static Dotssquare()Returns an object that draws a square.static Dotssquare(java.awt.Color theFillColor)Returns an object that draws a square with the given fill color.static Dotssquare(java.awt.Color theFillColor, java.awt.BasicStroke theOutlineStroke, java.awt.Color theOutlineColor)Returns an object that draws a square with the given fill color, the given outline stroke, and the given outline color.static Dotssquare(java.awt.Color theFillColor, java.awt.BasicStroke theOutlineStroke, java.awt.Color theOutlineColor, double theSide)Returns an object that draws a square with the given fill color, the given outline stroke, the given outline color, and the given side.static Dotssquare(double theSide)Returns an object that draws a square with the given side.
-
-
-
Method Detail
-
circle
public static Dots circle()
Returns an object that draws a circle. The circle uses the default fill color (black), the default outline stroke (none), the default outline color (none), and the default diameter (5).
-
circle
public static Dots circle(double theDiameter)
Returns an object that draws a circle with the given diameter. The circle uses the default fill color (black), the default outline stroke (none), and the default outline color (none).- Parameters:
theDiameter- Circle's diameter.
-
circle
public static Dots circle(java.awt.Color theFillColor)
Returns an object that draws a circle with the given fill color. The circle uses the default outline stroke (none), the default outline color (none), and the default diameter (5).- Parameters:
theFillColor- Color to fill the circle's interior, or null not to fill the circle's interior.
-
circle
public static Dots circle(java.awt.Color theFillColor, java.awt.BasicStroke theOutlineStroke, java.awt.Color theOutlineColor)
Returns an object that draws a circle with the given fill color, the given outline stroke, and the given outline color. The circle uses the default diameter (5).- Parameters:
theFillColor- Color to fill the circle's interior, or null not to fill the circle's interior.theOutlineStroke- Stroke to draw the circle's outline, or null not to draw the circle's outline.theOutlineColor- Color to draw the circle's outline, or null not to draw the circle's outline.
-
circle
public static Dots circle(java.awt.Color theFillColor, java.awt.BasicStroke theOutlineStroke, java.awt.Color theOutlineColor, double theDiameter)
Returns an object that draws a circle with the given fill color, the given outline stroke, the given outline color, and the given diameter.- Parameters:
theFillColor- Color to fill the circle's interior, or null not to fill the circle's interior.theOutlineStroke- Stroke to draw the circle's outline, or null not to draw the circle's outline.theOutlineColor- Color to draw the circle's outline, or null not to draw the circle's outline.theDiameter- Circle's diameter.
-
ellipse
public static Dots ellipse(double theWidth, double theHeight)
Returns an object that draws an ellipse with the given dimensions. The ellipse uses the default fill color (black), the default outline stroke (none), and the default outline color (none).- Parameters:
theWidth- Ellipse's width.theHeight- Ellipse's height.
-
ellipse
public static Dots ellipse(java.awt.Color theFillColor, double theWidth, double theHeight)
Returns an object that draws an ellipse with the given fill color and the given dimensions. The ellipse uses the default outline stroke (none) and the default outline color (none).- Parameters:
theFillColor- Color to fill the ellipse's interior, or null not to fill the ellipse's interior.theWidth- Ellipse's width.theHeight- Ellipse's height.
-
ellipse
public static Dots ellipse(java.awt.Color theFillColor, java.awt.BasicStroke theOutlineStroke, java.awt.Color theOutlineColor, double theWidth, double theHeight)
Returns an object that draws an ellipse with the given fill color, the given outline stroke, the given outline color, and the given dimensions.- Parameters:
theFillColor- Color to fill the ellipse's interior, or null not to fill the ellipse's interior.theOutlineStroke- Stroke to draw the ellipse's outline, or null not to draw the ellipse's outline.theOutlineColor- Color to draw the ellipse's outline, or null not to draw the ellipse's outline.theWidth- Ellipse's width.theHeight- Ellipse's height.
-
diamond
public static Dots diamond()
Returns an object that draws a diamond. The diamond uses the default fill color (black), the default outline stroke (none), the default outline color (none), and the default side (5).
-
diamond
public static Dots diamond(double theSide)
Returns an object that draws a diamond with the given side. The diamond uses the default fill color (black), the default outline stroke (none), and the default outline color (none).- Parameters:
theSide- Diamond's side.
-
diamond
public static Dots diamond(java.awt.Color theFillColor)
Returns an object that draws a diamond with the given fill color. The diamond uses the default outline stroke (none), the default outline color (none), and the default side (5).- Parameters:
theFillColor- Color to fill the diamond's interior, or null not to fill the diamond's interior.
-
diamond
public static Dots diamond(java.awt.Color theFillColor, java.awt.BasicStroke theOutlineStroke, java.awt.Color theOutlineColor)
Returns an object that draws a diamond with the given fill color, the given outline stroke, and the given outline color. The diamond uses the default side (5).- Parameters:
theFillColor- Color to fill the diamond's interior, or null not to fill the diamond's interior.theOutlineStroke- Stroke to draw the diamond's outline, or null not to draw the diamond's outline.theOutlineColor- Color to draw the diamond's outline, or null not to draw the diamond's outline.
-
diamond
public static Dots diamond(java.awt.Color theFillColor, java.awt.BasicStroke theOutlineStroke, java.awt.Color theOutlineColor, double theSide)
Returns an object that draws a diamond with the given fill color, the given outline stroke, the given outline color, and the given side.- Parameters:
theFillColor- Color to fill the diamond's interior, or null not to fill the diamond's interior.theOutlineStroke- Stroke to draw the diamond's outline, or null not to draw the diamond's outline.theOutlineColor- Color to draw the diamond's outline, or null not to draw the diamond's outline.theSide- Diamond's side.
-
square
public static Dots square()
Returns an object that draws a square. The square uses the default fill color (black), the default outline stroke (none), the default outline color (none), and the default side (5).
-
square
public static Dots square(double theSide)
Returns an object that draws a square with the given side. The square uses the default fill color (black), the default outline stroke (none), and the default outline color (none).- Parameters:
theSide- Square's side.
-
square
public static Dots square(java.awt.Color theFillColor)
Returns an object that draws a square with the given fill color. The square uses the default outline stroke (none), the default outline color (none), and the default side (5).- Parameters:
theFillColor- Color to fill the square's interior, or null not to fill the square's interior.
-
square
public static Dots square(java.awt.Color theFillColor, java.awt.BasicStroke theOutlineStroke, java.awt.Color theOutlineColor)
Returns an object that draws a square with the given fill color, the given outline stroke, and the given outline color. The square uses the default side (5).- Parameters:
theFillColor- Color to fill the square's interior, or null not to fill the square's interior.theOutlineStroke- Stroke to draw the square's outline, or null not to draw the square's outline.theOutlineColor- Color to draw the square's outline, or null not to draw the square's outline.
-
square
public static Dots square(java.awt.Color theFillColor, java.awt.BasicStroke theOutlineStroke, java.awt.Color theOutlineColor, double theSide)
Returns an object that draws a square with the given fill color, the given outline stroke, the given outline color, and the given side.- Parameters:
theFillColor- Color to fill the square's interior, or null not to fill the square's interior.theOutlineStroke- Stroke to draw the square's outline, or null not to draw the square's outline.theOutlineColor- Color to draw the square's outline, or null not to draw the square's outline.theSide- Diamond's side.
-
-
DMelt 3.0 © DataMelt by jWork.ORG