image
Class Star

java.lang.Object
  extended by image.Image
      extended by image.RegularPolygon
          extended by image.Star

public class Star
extends RegularPolygon

Represents an Image of a Star. There are several constructors to support customization with number of points, and inner/outer radius.

    new Star(40, 5, "solid", "gray")

    new Star(30, 7, "outline", "red")

    new Star(40, 30, 10, "solid", "cornflowerblue")


Constructor Summary
Star(double radius, double innerRad, int sides, java.lang.String mode, java.lang.String color)
          Create a Star Image with (double) radius, inner-radius, sides, mode and color
Star(double radius, int sides, java.lang.String mode, java.lang.String color)
          Create a Star Image with (double) radius, sides, mode and color
Star(double radius, java.lang.String mode, java.lang.String color)
          Create a Star Image with (double) radius, mode and color
Star(int radius, int innerRad, int sides, java.lang.String mode, java.lang.String color)
          Create a Star Image with (int) radius, inner-radius, sides, mode and color
Star(int radius, int sides, java.lang.String mode, java.lang.String color)
          Create a Star Image with (int) radius, sides, mode and color
Star(int radius, java.lang.String mode, java.lang.String color)
          Create a Star Image with (int) radius, mode and color
 
Method Summary
 
Methods inherited from class image.RegularPolygon
height, paint, width
 
Methods inherited from class image.Image
flipHorizontal, flipVertical, overlay, overlay, overlayxy, overlayxy, overlayxy, overlayxy, overlayxy, overlayxy, rasterize, rotate, rotate, toFile, toScene, toWhiteFile, toWhiteScene
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Star

public Star(double radius,
            java.lang.String mode,
            java.lang.String color)
Create a Star Image with (double) radius, mode and color


Star

public Star(int radius,
            java.lang.String mode,
            java.lang.String color)
Create a Star Image with (int) radius, mode and color


Star

public Star(double radius,
            int sides,
            java.lang.String mode,
            java.lang.String color)
Create a Star Image with (double) radius, sides, mode and color


Star

public Star(int radius,
            int sides,
            java.lang.String mode,
            java.lang.String color)
Create a Star Image with (int) radius, sides, mode and color


Star

public Star(double radius,
            double innerRad,
            int sides,
            java.lang.String mode,
            java.lang.String color)
Create a Star Image with (double) radius, inner-radius, sides, mode and color


Star

public Star(int radius,
            int innerRad,
            int sides,
            java.lang.String mode,
            java.lang.String color)
Create a Star Image with (int) radius, inner-radius, sides, mode and color