cz.cuni.jagrlib.iface
Interface Pen

All Superinterfaces:
Property
All Known Subinterfaces:
SolidPen
All Known Implementing Classes:
SolidColorPen

public interface Pen
extends Property

Abstract pen interface (rendering of a 2D stroke).

Since:
0.03
See Also:
Pen.java

Field Summary
 
Fields inherited from interface cz.cuni.jagrlib.iface.Property
LOGGING, STATISTICS, TEXT_DESCRIPTION
 
Method Summary
 void init()
          Stroke (re-)initialization.
 int setAlphaOperation(int _op)
          Sets the alpha-channel operation (used in stroke() method).
 int setOperation(int _op)
          Sets the binary set operation (used in stroke() method).
 ValueTransferFunction setTransferFunction(ValueTransferFunction _transfer)
          Sets the value-transfer function (used in stroke() method).
 void stroke()
          Render the stroke.
 
Methods inherited from interface cz.cuni.jagrlib.iface.Property
commit, get, set
 

Method Detail

init

void init()
Stroke (re-)initialization.


setOperation

int setOperation(int _op)
Sets the binary set operation (used in stroke() method).

Parameters:
_op - Binary set operation (BinaryOperation.BIN_OP_* constant).
Returns:
The old binary set operation.
See Also:
RasterGraphics, Binary operations

setAlphaOperation

int setAlphaOperation(int _op)
Sets the alpha-channel operation (used in stroke() method).

Parameters:
_op - Alpha-channel operation (AlphaOperation.ALPHA_* constant).
Returns:
The old alpha-channel operation.
See Also:
Alpha-channel operations

setTransferFunction

ValueTransferFunction setTransferFunction(ValueTransferFunction _transfer)
Sets the value-transfer function (used in stroke() method).

Parameters:
_transfer - New value-transfer function or null.
Returns:
The old Value-transfer function or null.
See Also:
RasterGraphics, Value-transfor function prototype

stroke

void stroke()
Render the stroke. Destroys the current stroke.