public class TLcdWMSGXYViewFactory extends Object
TLcdGXYViewBufferedImage
to generate a map inside the WMS Server.
Extensions can be made to customize the view creation and initialization process:
createGXYViewInstance
creates
TLcdGXYViewBufferedImage
instances, capable of handling
transparency if required (boolean parameter). Override this method to return
extensions of TLcdGXYViewBufferedImage
(e.g., to add a fixed logo
in the corner of the map).createGXYView
TLcdGXYViewBufferedImage
according to the supplied parameters.
Override this method to change the configuration of TLcdGXYViewBufferedImage
instances
(e.g., to set a custom ILcdGXYViewLabelPainter).
Constructor and Description |
---|
TLcdWMSGXYViewFactory()
Constructs a new
TLcdWMSGXYViewFactory . |
Modifier and Type | Method and Description |
---|---|
TLcdGXYViewBufferedImage |
createGXYView(boolean aTransparent,
int aWidth,
int aHeight,
ILcdBounds aWorldBounds,
ILcdXYWorldReference aXYWorldReference,
Color aBackgroundColor,
TLcdWMSRequestContext aRequestContext)
Creates a new
TLcdGXYViewBufferedImage with the given settings. |
TLcdGXYViewBufferedImage |
createGXYView(boolean aTransparent,
int aWidth,
int aHeight,
ILcdBounds aWorldBounds,
ILcdXYWorldReference aXYWorldReference,
double aRotation,
Color aBackgroundColor,
TLcdWMSRequestContext aRequestContext)
Creates a new
TLcdGXYViewBufferedImage with the given settings. |
protected TLcdGXYViewBufferedImage |
createGXYViewInstance(boolean aTransparent)
Creates a new
TLcdGXYViewBufferedImage with the given
transparency setting. |
public TLcdWMSGXYViewFactory()
TLcdWMSGXYViewFactory
.protected TLcdGXYViewBufferedImage createGXYViewInstance(boolean aTransparent)
TLcdGXYViewBufferedImage
with the given
transparency setting.
For TLcdGXYViewBufferedImage
objects, the transparency setting
needs to be determined at creation time.
aTransparent
- Whether the image should be capable of using transparent colors.TLcdGXYViewBufferedImage
with the given
transparency setting.public TLcdGXYViewBufferedImage createGXYView(boolean aTransparent, int aWidth, int aHeight, ILcdBounds aWorldBounds, ILcdXYWorldReference aXYWorldReference, Color aBackgroundColor, TLcdWMSRequestContext aRequestContext)
TLcdGXYViewBufferedImage
with the given settings.
The default implementation creates a new view through createGXYViewInstance(boolean)
and adjusts the following settings of the view:
aWidth
and aHeight
,aBackgroundColor
,aXYWorldReference
,aWorldBounds
,aTransparent
- whether the image should be capable of using transparent colors.aWidth
- the width to be used for the view.aHeight
- the height to be used for the view.aWorldBounds
- the bounds to fit on, expressed in the supplied world reference.aXYWorldReference
- the world reference to be used for the view.aBackgroundColor
- the background color to be used for the view.aRequestContext
- a container for the original request and other related request parameters.TLcdGXYViewBufferedImage
initialized with the given settings.public TLcdGXYViewBufferedImage createGXYView(boolean aTransparent, int aWidth, int aHeight, ILcdBounds aWorldBounds, ILcdXYWorldReference aXYWorldReference, double aRotation, Color aBackgroundColor, TLcdWMSRequestContext aRequestContext)
TLcdGXYViewBufferedImage
with the given settings.
The default implementation creates a new view through createGXYViewInstance(boolean)
and adjusts the following settings of the view:
aWidth
and aHeight
,aBackgroundColor
,aXYWorldReference
,aWorldBounds
,aRotation
,aTransparent
- whether the image should be capable of using transparent colors.aWidth
- the width to be used for the view.aHeight
- the height to be used for the view.aWorldBounds
- the bounds to fit on, expressed in the supplied world reference.aXYWorldReference
- the world reference to be used for the view.aRotation
- the rotation to be used for the view, expressed in degrees.aBackgroundColor
- the background color to be used for the view.aRequestContext
- a container for the original request and other related request parameters.TLcdGXYViewBufferedImage
initialized with the given settings.