public final class USHORTPaint extends Object implements Paint
BITMASK, OPAQUE, TRANSLUCENT
Constructor and Description |
---|
USHORTPaint(short value) |
Modifier and Type | Method and Description |
---|---|
PaintContext |
createContext(ColorModel cm,
Rectangle deviceBounds,
Rectangle2D userBounds,
AffineTransform xform,
RenderingHints hints)
Return a new
USHORTPaintContext that shares the value and ccm fields with this instance. |
ComponentColorModel |
getComponentColorModel() |
int |
getTransparency() |
void |
setValue(short value)
Will alter the value for this instance and for all
USHORTPaintContext instances
returned from createContext(ColorModel, Rectangle, Rectangle2D, AffineTransform, RenderingHints) . |
public void setValue(short value)
USHORTPaintContext
instances
returned from createContext(ColorModel, Rectangle, Rectangle2D, AffineTransform, RenderingHints)
.public int getTransparency()
getTransparency
in interface Transparency
public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)
USHORTPaintContext
that shares the value and ccm fields with this instance.createContext
in interface Paint
public ComponentColorModel getComponentColorModel()
Copyright © 2015–2021 Fiji. All rights reserved.