|
||||||||||
| 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.testing.TestGamma
public class TestGamma
Test image specimen - gamma tester.
| Field Summary | |
|---|---|
protected AlphaMatrix |
alpha
External module: alpha-mask. |
protected SolidColorBrush |
brush
External module: brush for alpha-filling. |
protected static java.lang.String |
CATEGORY
Object category. |
static java.lang.String |
COLORMODE
|
protected int |
mode
Actual output color mode. |
protected RasterGraphics |
out
Accelerator: output image. |
static RegPiece |
reg
Static registration instance for this class. |
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 | |
|---|---|
TestGamma()
|
|
| 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. |
protected void |
verticalUnit(int x0,
int y0,
int width,
int height,
double[] color0,
double[] color1)
Draw one vertical unit (7 vertical columns). |
| 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 mode
protected RasterGraphics out
protected SolidColorBrush brush
protected AlphaMatrix alpha
protected JavaText text
public static final java.lang.String COLORMODE
protected static final java.lang.String TEMPLATE_NAME
protected static final java.lang.String CATEGORY
public static final RegPiece reg
| Constructor Detail |
|---|
public TestGamma()
| Method Detail |
|---|
protected boolean assertModules()
true if succeeded.
protected void verticalUnit(int x0,
int y0,
int width,
int height,
double[] color0,
double[] color1)
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 | |||||||||