if (name.equalsIgnoreCase("complex")) {
if(opNode instanceof RenderedOp) {
RenderedOp op = (RenderedOp)opNode;
ParameterBlock pb = op.getParameterBlock();
ImageFunction imFunc = (ImageFunction)pb.getObjectParameter(0);
return imFunc.isComplex() ? Boolean.TRUE : Boolean.FALSE;
} else if(opNode instanceof RenderableOp) {
RenderableOp op = (RenderableOp)opNode;
ParameterBlock pb = op.getParameterBlock();
ImageFunction imFunc = (ImageFunction)pb.getObjectParameter(0);
return imFunc.isComplex() ? Boolean.TRUE : Boolean.FALSE;
}
}
return java.awt.Image.UndefinedProperty;
}