Class GVTTreeRenderer
java.lang.Object
java.lang.Thread
org.apache.batik.util.HaltingThread
org.apache.batik.swing.gvt.GVTTreeRenderer
- All Implemented Interfaces:
Runnable
This class represents an object which renders asynchronously
a GVT tree.
-
Nested Class Summary
Nested classes/interfaces inherited from class Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ShapeThe area of interest.protected booleanWhether to enable the double buffering.protected intThe buffer height.protected ListThe listeners.protected ImageRendererThe renderer used to paint.protected AffineTransformThe user to device transform.protected intThe buffer width.Fields inherited from class HaltingThread
beenHaltedFields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionGVTTreeRenderer(ImageRenderer r, AffineTransform usr2dev, boolean dbuffer, Shape aoi, int width, int height) Creates a new GVTTreeRenderer. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a GVTTreeRendererListener to this GVTTreeRenderer.voidfireEvent(EventDispatcher.Dispatcher dispatcher, Object event) voidRemoves a GVTTreeRendererListener from this GVTTreeRenderer.voidrun()Runs this renderer.Methods inherited from class HaltingThread
clearHalted, halt, haltThread, haltThread, hasBeenHalted, hasBeenHalted, isHaltedMethods inherited from class Thread
activeCount, checkAccess, clone, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, threadId, toString, yield
-
Field Details
-
renderer
The renderer used to paint. -
areaOfInterest
The area of interest. -
width
protected int widthThe buffer width. -
height
protected int heightThe buffer height. -
user2DeviceTransform
The user to device transform. -
doubleBuffering
protected boolean doubleBufferingWhether to enable the double buffering. -
listeners
The listeners.
-
-
Constructor Details
-
GVTTreeRenderer
public GVTTreeRenderer(ImageRenderer r, AffineTransform usr2dev, boolean dbuffer, Shape aoi, int width, int height) Creates a new GVTTreeRenderer.- Parameters:
r- The renderer to use to paint.usr2dev- The user to device transform.dbuffer- Whether the double buffering should be enabled.aoi- The area of interest in the renderer space units.width- The offscreen buffer width.height- The offscreen buffer height.
-
-
Method Details
-
run
-
fireEvent
-
addGVTTreeRendererListener
Adds a GVTTreeRendererListener to this GVTTreeRenderer. -
removeGVTTreeRendererListener
Removes a GVTTreeRendererListener from this GVTTreeRenderer.
-