|
||||||||||
| 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.SolidColorPen
public class SolidColorPen
Solid-color pen.
| 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 double |
width
Current pen width. |
| 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 | |
|---|---|
SolidColorPen()
|
|
| Method Summary | |
|---|---|
void |
init()
Stroke (re-)initialization. |
int |
setAlphaOperation(int _op)
Sets the alpha-channel operation (used in stroke() method). |
void |
setColor(double _color)
Sets the current drawing color (for RasterGraphics.MODE_GRAY). |
void |
setColor(double[] _color)
Sets the current drawing color (for RasterGraphics.MODE_RGB,
RasterGraphics.MODE_RGBA or RasterGraphics.MODE_BAND). |
void |
setColor(int _color)
Sets the current drawing color (for RasterGraphics.MODE_GRAY or
RasterGraphics.MODE_COLORMAP). |
void |
setColor(int[] _color)
Sets the current drawing color (for RasterGraphics.MODE_RGB,
RasterGraphics.MODE_RGBA or RasterGraphics.MODE_BAND). |
int |
setOperation(int _op)
Sets the binary set operation (used in stroke() method). |
static int |
setTemplate(Template t,
int ord)
General-purpose registration routine. |
ValueTransferFunction |
setTransferFunction(ValueTransferFunction _transfer)
Sets the value-transfer function (used in stroke() method). |
double |
setWidth(double _width)
Sets the Pen's width. |
int |
setWidth(int _width)
Sets the Pen's width. |
void |
stroke()
Render the stroke. |
| 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 double width
protected static final java.lang.String TEMPLATE_NAME
protected static final java.lang.String CATEGORY
public static final RegPiece reg
| Constructor Detail |
|---|
public SolidColorPen()
| Method Detail |
|---|
public void init()
init in interface Penpublic int setOperation(int _op)
stroke() method).
setOperation in interface Pen_op - Binary set operation (BinaryOperation.BIN_OP_* constant).
RasterGraphics,
Binary operationspublic int setAlphaOperation(int _op)
stroke() method).
setAlphaOperation in interface Pen_op - Alpha-channel operation (AlphaOperation.ALPHA_* constant).
Alpha-channel operationspublic ValueTransferFunction setTransferFunction(ValueTransferFunction _transfer)
stroke() method).
setTransferFunction in interface Pen_transfer - New value-transfer function or null.
RasterGraphics,
Value-transfor function prototypepublic void stroke()
stroke in interface Penpublic int setWidth(int _width)
Pen's width.
setWidth in interface SolidPen_width - The new pen's width.
public double setWidth(double _width)
Pen's width.
setWidth in interface SolidPen_width - The new pen's width.
public void setColor(int _color)
RasterGraphics.MODE_GRAY or
RasterGraphics.MODE_COLORMAP).
setColor in interface SolidPen_color - Current drawing color.RasterGraphicspublic void setColor(double _color)
RasterGraphics.MODE_GRAY).
setColor in interface SolidPen_color - Current drawing color (0.0 to 1.0).RasterGraphicspublic void setColor(int[] _color)
RasterGraphics.MODE_RGB,
RasterGraphics.MODE_RGBA or RasterGraphics.MODE_BAND).
setColor in interface SolidPen_color - Current drawing color.RasterGraphicspublic void setColor(double[] _color)
RasterGraphics.MODE_RGB,
RasterGraphics.MODE_RGBA or RasterGraphics.MODE_BAND).
setColor in interface SolidPen_color - Current drawing 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 | |||||||||