java.lang.Object
com.inductiveautomation.ignition.designer.designable.ShapePaint

public class ShapePaint extends Object
Holds colors, paint modes, and stroke widths - everything needed to paint a shape
  • Constructor Details

    • ShapePaint

      public ShapePaint(Color fill, Color stroke)
    • ShapePaint

      public ShapePaint(Color fillColor, Color strokeColor, Stroke stroke)
    • ShapePaint

      public ShapePaint(Color fillColor, Color strokeColor, Stroke stroke, Color fillXOR, Color strokeXOR)
    • ShapePaint

      public ShapePaint(Color fillColor, Color strokeColor, Stroke stroke, Color fillXOR, Color strokeXOR, Boolean antialias)
      Parameters:
      fillColor - Color to fill the shape, or null for no fill
      strokeColor - Color for the stroke, or null for no stroke
      stroke - Stroke to use (if strokeColor isn't null)
      fillXOR - If non-null, XOR mode will be used for fill with this as the XOR color
      strokeXOR - if non-null, XOR mode will be used for the stroke with this as the XOR color
      antialias - A value of null means use the graphics context as-is, true will turn on anti-alias, false will turn it off.
  • Method Details

    • paint

      public void paint(Shape shape, Graphics graphics)
    • getFillColor

      public Color getFillColor()
    • getStrokeColor

      public Color getStrokeColor()
    • getStroke

      public Stroke getStroke()
    • getFillXOR

      public Color getFillXOR()
    • getStrokeXOR

      public Color getStrokeXOR()