public static class IlvFOUtil.ComponentPaintable extends Object implements IlvFOUtil.Paintable
Paintable
that paints a Component
without scaling.Constructor and Description |
---|
ComponentPaintable(Component component)
Creates an instance of this class.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Terminates the use of this instance.
|
Component |
getComponent()
Returns the encapsulated AWT/Swing component.
|
void |
paint(Graphics2D g)
Paints this object.
|
public ComponentPaintable(Component component)
When done with this instance, you have to invoke the dispose()
method.
component
- An AWT/Swing component. Don't use an IlvChart
instance here; instead use
IlvChart.getAsComponentPaintable
or
IlvChart.getAsComponentPaintableCurrentThread
.public Component getComponent()
public void paint(Graphics2D g)
paint
in interface IlvFOUtil.Paintable
g
- The output device.public void dispose()
Cleans up this instance and drops references to objects to help garbage collection.
Note: After calling this function, this
Paintable
is no longer functional.
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.