Class ShapePaint
java.lang.Object
com.inductiveautomation.ignition.designer.designable.ShapePaint
Holds colors, paint modes, and stroke widths - everything needed to paint a shape
-
Constructor Summary
ConstructorsConstructorDescriptionShapePaint
(Color fill, Color stroke) ShapePaint
(Color fillColor, Color strokeColor, Stroke stroke) ShapePaint
(Color fillColor, Color strokeColor, Stroke stroke, Color fillXOR, Color strokeXOR, Boolean antialias) -
Method Summary
Modifier and TypeMethodDescriptionvoid
-
Constructor Details
-
ShapePaint
-
ShapePaint
-
ShapePaint
-
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 fillstrokeColor
- Color for the stroke, or null for no strokestroke
- Stroke to use (if strokeColor isn't null)fillXOR
- If non-null, XOR mode will be used for fill with this as the XOR colorstrokeXOR
- if non-null, XOR mode will be used for the stroke with this as the XOR colorantialias
- 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
-
getFillColor
-
getStrokeColor
-
getStroke
-
getFillXOR
-
getStrokeXOR
-