Class NTxLinearGradientPaint
java.lang.Object
net.thevpc.ntexup.api.document.elem2d.NTxLinearGradientPaint
- All Implemented Interfaces:
Paint, Transparency
-
Field Summary
Fields inherited from interface Transparency
BITMASK, OPAQUE, TRANSLUCENT -
Constructor Summary
ConstructorsConstructorDescriptionNTxLinearGradientPaint(Point2D start, Point2D end, float[] fractions, Color[] colors, MultipleGradientPaint.CycleMethod cycleMethod) -
Method Summary
Modifier and TypeMethodDescriptioncreateContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) static float[]defaultFractions(int length) Color[]getEnd()float[]getStart()int
-
Constructor Details
-
NTxLinearGradientPaint
public NTxLinearGradientPaint(Point2D start, Point2D end, float[] fractions, Color[] colors, MultipleGradientPaint.CycleMethod cycleMethod)
-
-
Method Details
-
defaultFractions
public static float[] defaultFractions(int length) -
createContext
public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) - Specified by:
createContextin interfacePaint
-
getTransparency
public int getTransparency()- Specified by:
getTransparencyin interfaceTransparency
-
getStart
-
getEnd
-
getFractions
public float[] getFractions() -
getColors
-
getCycleMethod
-