Class PointerGauge
-
- All Implemented Interfaces:
public final class PointerGauge
A very simple circular- or arc-style "gauge" (e.g. "dial", "dial pointer"), without resorting to large libraries.
graphics = the canvas to draw on
width, height = the drawing area size
or
image = a rendered image
minimumValue, maximumValue = range of expected values: the pointer won't go beyond these (default 0-100)
label = optional label in the center of the dial
shape = either Shape.SEMICIRCLE (default) or Shape.CIRCLE
foreground = color for the dial, ticks, and pointer (default
Color.WHITE
)background = color of the middle of the dial (default
Color.BLACK
)font = name of the font to use for the tick labels and the optional dial label (default "SansSerif")
fontColor = color for said font (defaults to
foreground
)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
PointerGauge.Shape
-
Constructor Summary
Constructors Constructor Description PointerGauge(Image image, Double minimumValue, Double maximumValue, String label, PointerGauge.Shape shape, Color foreground, Color background, String font, Color fontColor)
Alternate constructor: uses the image to derive the graphics and dimensions. PointerGauge(Image image, Double minimumValue, Double maximumValue, String label, PointerGauge.Shape shape, Color foreground, Color background, String font)
Alternate constructor: uses the image to derive the graphics and dimensions. PointerGauge(Image image, Double minimumValue, Double maximumValue, String label, PointerGauge.Shape shape, Color foreground, Color background)
Alternate constructor: uses the image to derive the graphics and dimensions. PointerGauge(Image image, Double minimumValue, Double maximumValue, String label, PointerGauge.Shape shape, Color foreground)
Alternate constructor: uses the image to derive the graphics and dimensions. PointerGauge(Image image, Double minimumValue, Double maximumValue, String label, PointerGauge.Shape shape)
Alternate constructor: uses the image to derive the graphics and dimensions. PointerGauge(Image image, Double minimumValue, Double maximumValue, String label)
Alternate constructor: uses the image to derive the graphics and dimensions. PointerGauge(Image image, Double minimumValue, Double maximumValue)
Alternate constructor: uses the image to derive the graphics and dimensions. PointerGauge(Image image, Double minimumValue)
Alternate constructor: uses the image to derive the graphics and dimensions. PointerGauge(Image image)
Alternate constructor: uses the image to derive the graphics and dimensions. PointerGauge(Graphics2D graphics, Integer width, Integer height, Double minimumValue, Double maximumValue, String label, PointerGauge.Shape shape, Color foreground, Color background, String font, Color fontColor)
PointerGauge(Graphics2D graphics, Integer width, Integer height, Double minimumValue, Double maximumValue, String label, PointerGauge.Shape shape, Color foreground, Color background, String font)
PointerGauge(Graphics2D graphics, Integer width, Integer height, Double minimumValue, Double maximumValue, String label, PointerGauge.Shape shape, Color foreground, Color background)
PointerGauge(Graphics2D graphics, Integer width, Integer height, Double minimumValue, Double maximumValue, String label, PointerGauge.Shape shape, Color foreground)
PointerGauge(Graphics2D graphics, Integer width, Integer height, Double minimumValue, Double maximumValue, String label, PointerGauge.Shape shape)
PointerGauge(Graphics2D graphics, Integer width, Integer height, Double minimumValue, Double maximumValue, String label)
PointerGauge(Graphics2D graphics, Integer width, Integer height, Double minimumValue, Double maximumValue)
PointerGauge(Graphics2D graphics, Integer width, Integer height, Double minimumValue)
PointerGauge(Graphics2D graphics, Integer width, Integer height)
-
Method Summary
-
-
Constructor Detail
-
PointerGauge
PointerGauge(Image image, Double minimumValue, Double maximumValue, String label, PointerGauge.Shape shape, Color foreground, Color background, String font, Color fontColor)
Alternate constructor: uses the image to derive the graphics and dimensions.
-
PointerGauge
PointerGauge(Image image, Double minimumValue, Double maximumValue, String label, PointerGauge.Shape shape, Color foreground, Color background, String font)
Alternate constructor: uses the image to derive the graphics and dimensions.
-
PointerGauge
PointerGauge(Image image, Double minimumValue, Double maximumValue, String label, PointerGauge.Shape shape, Color foreground, Color background)
Alternate constructor: uses the image to derive the graphics and dimensions.
-
PointerGauge
PointerGauge(Image image, Double minimumValue, Double maximumValue, String label, PointerGauge.Shape shape, Color foreground)
Alternate constructor: uses the image to derive the graphics and dimensions.
-
PointerGauge
PointerGauge(Image image, Double minimumValue, Double maximumValue, String label, PointerGauge.Shape shape)
Alternate constructor: uses the image to derive the graphics and dimensions.
-
PointerGauge
PointerGauge(Image image, Double minimumValue, Double maximumValue, String label)
Alternate constructor: uses the image to derive the graphics and dimensions.
-
PointerGauge
PointerGauge(Image image, Double minimumValue, Double maximumValue)
Alternate constructor: uses the image to derive the graphics and dimensions.
-
PointerGauge
PointerGauge(Image image, Double minimumValue)
Alternate constructor: uses the image to derive the graphics and dimensions.
-
PointerGauge
PointerGauge(Image image)
Alternate constructor: uses the image to derive the graphics and dimensions.
-
PointerGauge
PointerGauge(Graphics2D graphics, Integer width, Integer height, Double minimumValue, Double maximumValue, String label, PointerGauge.Shape shape, Color foreground, Color background, String font, Color fontColor)
-
PointerGauge
PointerGauge(Graphics2D graphics, Integer width, Integer height, Double minimumValue, Double maximumValue, String label, PointerGauge.Shape shape, Color foreground, Color background, String font)
-
PointerGauge
PointerGauge(Graphics2D graphics, Integer width, Integer height, Double minimumValue, Double maximumValue, String label, PointerGauge.Shape shape, Color foreground, Color background)
-
PointerGauge
PointerGauge(Graphics2D graphics, Integer width, Integer height, Double minimumValue, Double maximumValue, String label, PointerGauge.Shape shape, Color foreground)
-
PointerGauge
PointerGauge(Graphics2D graphics, Integer width, Integer height, Double minimumValue, Double maximumValue, String label, PointerGauge.Shape shape)
-
PointerGauge
PointerGauge(Graphics2D graphics, Integer width, Integer height, Double minimumValue, Double maximumValue, String label)
-
PointerGauge
PointerGauge(Graphics2D graphics, Integer width, Integer height, Double minimumValue, Double maximumValue)
-
PointerGauge
PointerGauge(Graphics2D graphics, Integer width, Integer height, Double minimumValue)
-
PointerGauge
PointerGauge(Graphics2D graphics, Integer width, Integer height)
-
-
-
-