public class FigBufferedImage extends Object implements FigureView
Details:
This class provides a way to render a Figure
in an off-screen image buffer.
This can be used, for example, by web services that draw figures.
Obviously, this type of FigureView
is not meant to be interactive.
Constructor and Description |
---|
FigBufferedImage(BufferedImage iBufferedImage)
Sets image buffer.
|
Modifier and Type | Method and Description |
---|---|
void |
draw() |
Paint |
getBackground() |
Dimension |
getDimensions() |
FigureViewManager |
getFigureViewManager()
Returns view's manager.
|
Object |
getRenderingHint(RenderingHints.Key iKey) |
void |
repaint() |
void |
repaint(Rectangle iRect) |
void |
setBackground(Paint iBackground) |
void |
setRenderingHint(RenderingHints.Key iKey,
Object iValue) |
public FigBufferedImage(BufferedImage iBufferedImage)
Details: This constructor sets the image buffer onto which the figure will be drawn.
iBufferedImage
- the image bufferpublic FigureViewManager getFigureViewManager()
FigureView
Details: This method returns a view manager that the client can use to interact with the view's properties.
getFigureViewManager
in interface FigureView
public void repaint(Rectangle iRect)
repaint
in interface FigureView
public void repaint()
repaint
in interface FigureView
public void draw()
public Dimension getDimensions()
getDimensions
in interface FigureView
public Paint getBackground()
public void setBackground(Paint iBackground)
public Object getRenderingHint(RenderingHints.Key iKey)
public void setRenderingHint(RenderingHints.Key iKey, Object iValue)
Copyright © 2013. All Rights Reserved.