org.geotools.renderer.event
Interface RenderingContext

All Known Implementing Classes:
RenderingContext

public interface RenderingContext

Informations relatives to a rendering in progress.

Version:
$Id: RenderingContext.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux

Method Summary
 float getScale()
          Returns the scale factor, or Float.NaN if the scale is unknow.
 boolean isPrinting()
          Returns true if the map is printed instead of painted on screen.
 

Method Detail

getScale

public float getScale()
Returns the scale factor, or Float.NaN if the scale is unknow. The scale factor is usually smaller than 1. For example for a 1:1000 scale, the scale factor will be 0.001. This scale factor takes in account the physical size of the rendering device (e.g. the screen size) if such information is available. Note that this scale can't be more accurate than the information supplied by the underlying system.

Returns:
The rendering scale factor as a number between 0 and 1, or Float.NaN.
See Also:
Renderer#getScale

isPrinting

public boolean isPrinting()
Returns true if the map is printed instead of painted on screen. Highlighting managers may choose to ignore highlight when rendering to a printer.



Copyright © GeoTools. All Rights Reserved.