|
||||||||||
| 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.DefaultImageSynthesizer
cz.cuni.jagrlib.piece.TestImageLaser
public class TestImageLaser
Test image generator - test picture for (laser) printers.
| Field Summary | |
|---|---|
protected XTransitionList |
bitMask
External module: bit-mask. |
protected static java.lang.String |
CATEGORY
Object category. |
protected int |
dots
Number of dots per one table cell. |
static java.lang.String |
DOTS
|
protected RasterGraphics |
out
Accelerator: output image. |
protected SolidColorPen |
pen
External module: pen for bitmask-filling. |
static RegPiece |
reg
Static registration instance for this class. |
static java.lang.String |
TABLE_SIZE
|
protected int |
tableSize
Actual number of rows/columns. |
protected static java.lang.String |
TEMPLATE_NAME
Object template identifier. |
protected JavaText |
text
External module: text drawing. |
| Fields inherited from class cz.cuni.jagrlib.DefaultImageSynthesizer |
|---|
actTime, imageHeight, imageWidth |
| Fields inherited from class cz.cuni.jagrlib.Piece |
|---|
channels, info, pl, plugs, TEMPLATE_TYPE, userBreak |
| Fields inherited from interface cz.cuni.jagrlib.iface.ImageSynthesizer |
|---|
GAMMA, HEIGHT, SUPERSAMPLING, WIDTH |
| Fields inherited from interface cz.cuni.jagrlib.iface.Property |
|---|
LOGGING, STATISTICS, TEXT_DESCRIPTION |
| Constructor Summary | |
|---|---|
TestImageLaser()
|
|
| Method Summary | |
|---|---|
protected boolean |
assertModules()
Assert support modules and accelerators. |
java.lang.Object |
get(java.lang.String key)
Gets the given property. |
void |
renderRectangle(int x1,
int y1,
int x2,
int y2)
Render the given rectangle. |
void |
set(java.lang.String key,
java.lang.Object value)
Sets the given property. |
static int |
setTemplate(Template t,
int ord)
General-purpose registration routine. |
| Methods inherited from class cz.cuni.jagrlib.DefaultImageSynthesizer |
|---|
getTime, getTimeInterval, renderAll, renderPixel, setBounds, setTime |
| 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, intProperty, intProperty, intProperty, longProperty, longProperty, longProperty, 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 |
| Methods inherited from interface cz.cuni.jagrlib.Breakable |
|---|
setProgressListener, stop |
| Field Detail |
|---|
protected int tableSize
protected int dots
protected RasterGraphics out
protected SolidColorPen pen
protected XTransitionList bitMask
protected JavaText text
public static final java.lang.String TABLE_SIZE
public static final java.lang.String DOTS
protected static final java.lang.String TEMPLATE_NAME
protected static final java.lang.String CATEGORY
public static final RegPiece reg
| Constructor Detail |
|---|
public TestImageLaser()
| Method Detail |
|---|
protected boolean assertModules()
true if succeeded.
public void renderRectangle(int x1,
int y1,
int x2,
int y2)
x1 - X coordinate of the upper left corner.y1 - Y coordinate of the upper left corner.x2 - X coordinate of the lower right corner (outside pixel).y2 - Y coordinate of the upper left corner (outside pixel).DefaultImageSynthesizer.renderPixel(int, int, double[]),
DefaultImageSynthesizer.renderAll()
public void set(java.lang.String key,
java.lang.Object value)
set in interface Propertyset in class DefaultPropertykey - Key string.value - The new value.Property.commit()public java.lang.Object get(java.lang.String key)
get in interface Propertyget in class DefaultPropertykey - Key string.
null.
public static int setTemplate(Template t,
int ord)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||