Class ShapeGradientPaint
java.lang.Object
com.inductiveautomation.factorypmi.application.components.util.ShapeGradientPaint
- All Implemented Interfaces:
Paint
,Transparency
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Color
protected Point2D
protected Shape
protected Color
protected boolean
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
-
Constructor Summary
ConstructorsConstructorDescriptionShapeGradientPaint
(Shape shape, Color main, Color background, Point2D radius, boolean solidCenter) -
Method Summary
Modifier and TypeMethodDescriptioncreateContext
(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) int
-
Field Details
-
shape
-
shapeColor
-
backgroundColor
-
radius
-
solidCenter
protected boolean solidCenter
-
-
Constructor Details
-
ShapeGradientPaint
-
-
Method Details
-
createContext
public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) - Specified by:
createContext
in interfacePaint
-
getTransparency
public int getTransparency()- Specified by:
getTransparency
in interfaceTransparency
-