|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.jagrlib.DefaultProperty
cz.cuni.jagrlib.Piece
cz.cuni.jagrlib.piece.SolidColorBrush
public class SolidColorBrush
Solid-color brush.
Field Summary | |
---|---|
protected static java.lang.String |
CATEGORY
Object category. |
static RegPiece[] |
reg
Static registration instance for this class. |
protected static java.lang.String |
TEMPLATE_NAME
Object template identifier. |
protected static java.lang.String |
TEMPLATE2_NAME
Object template identifier. |
Fields inherited from class cz.cuni.jagrlib.Piece |
---|
channels, info, pl, plugs, TEMPLATE_TYPE, userBreak |
Fields inherited from interface cz.cuni.jagrlib.iface.Property |
---|
LOGGING, STATISTICS, TEXT_DESCRIPTION |
Constructor Summary | |
---|---|
SolidColorBrush()
|
Method Summary | |
---|---|
void |
fill()
Fills the defined area. |
void |
init()
Area (re-)initialization. |
int |
setAlphaOperation(int _op)
Sets the alpha-channel operation (used in fill() method). |
void |
setColor(double _color)
Sets the current fill color (for RasterGraphics.MODE_GRAY ). |
void |
setColor(double[] _color)
Sets the current fill color (for RasterGraphics.MODE_RGB ,
RasterGraphics.MODE_RGBA or RasterGraphics.MODE_BAND ). |
void |
setColor(int _color)
Sets the current fill color (for RasterGraphics.MODE_GRAY or
RasterGraphics.MODE_COLORMAP ). |
void |
setColor(int[] _color)
Sets the current fill color (for RasterGraphics.MODE_RGB ,
RasterGraphics.MODE_RGBA or RasterGraphics.MODE_BAND ). |
int |
setOperation(int _op)
Sets the binary set operation (used in fill() method). |
static int |
setTemplate(Template t,
int ord)
General-purpose registration routine. |
ValueTransferFunction |
setTransferFunction(ValueTransferFunction _transfer)
Sets the value-transfer function (used in fill() method). |
Methods inherited from class cz.cuni.jagrlib.Piece |
---|
className, connect, findPlug, findPlug, getInfo, getInterface, getInterface, getPlug, getReg, init, isCompatible, isCompatible, isConnected, logError, logWarning, myInterface, newInputPlug, newOptOutputPlug, newOutputPlug, newPlug, noTemplates, propBegin, propBounds, propDefault, propEnd, propEnum, propManipulator, propManipulator, setProgressListener, setRegStrings, setTemplateDynamic, stop |
Methods inherited from class cz.cuni.jagrlib.DefaultProperty |
---|
booleanProperty, booleanProperty, colorDoubleProperty, colorProperty, commit, doubleProperty, doubleProperty, doubleProperty, enumProperty, floatProperty, floatProperty, floatProperty, get, intProperty, intProperty, intProperty, longProperty, longProperty, longProperty, set, set, stringProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface cz.cuni.jagrlib.iface.Property |
---|
commit, get, set |
Field Detail |
---|
protected static final java.lang.String TEMPLATE_NAME
protected static final java.lang.String TEMPLATE2_NAME
protected static final java.lang.String CATEGORY
public static final RegPiece[] reg
Constructor Detail |
---|
public SolidColorBrush()
Method Detail |
---|
public void init()
init
in interface Brush
public int setOperation(int _op)
fill()
method).
setOperation
in interface Brush
_op
- Binary set operation (BinaryOperation.BIN_OP_* constant).
RasterGraphics
,
Binary operations
public int setAlphaOperation(int _op)
fill()
method).
setAlphaOperation
in interface Brush
_op
- Alpha-channel operation (AlphaOperation.ALPHA_* constant).
Alpha-channel operations
public ValueTransferFunction setTransferFunction(ValueTransferFunction _transfer)
fill()
method).
setTransferFunction
in interface Brush
_transfer
- New value-transfer function or null.
RasterGraphics
,
Value-transfor function prototype
public void fill()
fill
in interface Brush
public void setColor(int _color)
RasterGraphics.MODE_GRAY
or
RasterGraphics.MODE_COLORMAP
).
setColor
in interface SolidBrush
_color
- Current fill color.RasterGraphics
public void setColor(double _color)
RasterGraphics.MODE_GRAY
).
setColor
in interface SolidBrush
_color
- Current fill color (0.0 to 1.0).RasterGraphics
public void setColor(int[] _color)
RasterGraphics.MODE_RGB
,
RasterGraphics.MODE_RGBA
or RasterGraphics.MODE_BAND
).
setColor
in interface SolidBrush
_color
- Current fill color.RasterGraphics
public void setColor(double[] _color)
RasterGraphics.MODE_RGB
,
RasterGraphics.MODE_RGBA
or RasterGraphics.MODE_BAND
).
setColor
in interface SolidBrush
_color
- Current fill color (channel values between 0.0 and 1.0).RasterGraphics
public static int setTemplate(Template t, int ord)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |