|
org.netbeans.api.visual 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.api.visual.widget.Widget
org.netbeans.api.visual.widget.ConvolveWidget
public class ConvolveWidget
The widget which applies a convolve filter to a graphics rendered by the children.
Children are painted to an offscreen buffer which is later painted with a convolve filter applied to it.
Because of the offscreen buffer, be careful about the size of the widget. The buffer stays allocated even after the painting and it is also expanding only (when required). You can clear the buffer using clearCache method.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.netbeans.api.visual.widget.Widget |
---|
Widget.Dependency |
Constructor Summary | |
---|---|
ConvolveWidget(Scene scene,
ConvolveOp convolveOp)
Creates a convolve widget with a specified ColvolveOp. |
Method Summary | |
---|---|
void |
clearCache()
Clears an offscreen buffer. |
ConvolveOp |
getConvolveOp()
Returns a convolve operation. |
protected void |
paintChildren()
Paints the children into the offscreen buffer and then the buffer is rendered regularly using the convolve operation. |
void |
setConvolveOp(ConvolveOp convolveOp)
Sets a convolve operation. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConvolveWidget(Scene scene, ConvolveOp convolveOp)
scene
- the sceneconvolveOp
- the convolve operationMethod Detail |
---|
public ConvolveOp getConvolveOp()
public void setConvolveOp(ConvolveOp convolveOp)
convolveOp
- the convolve operationpublic void clearCache()
protected void paintChildren()
paintChildren
in class Widget
|
org.netbeans.api.visual 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |