| java.lang.Object org.geotools.renderer.shape.ShapefileRenderer
ShapefileRenderer | public class ShapefileRenderer implements GTRenderer(Code) | | A LiteRenderer Implementations that is optimized for shapefiles.
author: jeichar since: 2.1.x |
Method Summary | |
public void | addRenderListener(RenderListener listener) adds a listener that responds to error events of feature rendered events. | Feature | createFeature(FeatureType type, Record record, DbaseFileReader dbfreader, String id) | FeatureType | createFeatureType(Query query, Style style, ShapefileDataStore ds) | public MapContext | getContext() | public RenderingHints | getJava2DHints() | public Map | getRendererHints() | public boolean | isCaching() | public boolean | isConcatTransforms() | public void | paint(Graphics2D graphics, Rectangle paintArea, ReferencedEnvelope mapArea) | public void | paint(Graphics2D graphics, Rectangle paintArea, AffineTransform worldToScreen) | public void | paint(Graphics2D graphics, Rectangle paintArea, ReferencedEnvelope envelope, AffineTransform transform) | public void | paint(Graphics2D graphics, Rectangle paintArea, Envelope mapArea) | public void | paint(Graphics2D graphics, Rectangle paintArea, Envelope mapArea, AffineTransform worldToScreen) | public void | removeRenderListener(RenderListener listener) Removes a render listener. | public void | setCaching(boolean caching) | public void | setConcatTransforms(boolean concatTransforms) | public void | setContext(MapContext context) | public void | setJava2DHints(RenderingHints hints) | public void | setRendererHints(Map hints) | protected void | setScaleDenominator(double scaleDenominator) Setter for property scaleDenominator. | public void | stopRendering() | public IndexInfo | useIndex(ShapefileDataStore ds) |
DECLARED_SCALE_DENOM_KEY | final public static String DECLARED_SCALE_DENOM_KEY(Code) | | |
DEFAULT_LISTENER | final public static DefaultRenderListener DEFAULT_LISTENER(Code) | | This listener is added to the list of listeners automatically. It should be removed if the
default logging is not needed.
|
LABEL_CACHE_KEY | final public static String LABEL_CACHE_KEY(Code) | | |
MEMORY_PRE_LOADING_KEY | final public static String MEMORY_PRE_LOADING_KEY(Code) | | |
NUM_SAMPLES | static int NUM_SAMPLES(Code) | | |
OPTIMIZED_DATA_LOADING_KEY | final public static String OPTIMIZED_DATA_LOADING_KEY(Code) | | |
SCALE_ACCURATE | final public static String SCALE_ACCURATE(Code) | | Computes the scale as the ratio between map distances and real world distances,
assuming 90dpi and taking into consideration projection deformations and actual
earth shape.
Use this method only when in need of accurate computation. Will break if the
data extent is outside of the currenct projection definition area.
|
SCALE_COMPUTATION_METHOD_KEY | final public static String SCALE_COMPUTATION_METHOD_KEY(Code) | | |
SCALE_OGC | final public static String SCALE_OGC(Code) | | Very simple and lenient scale computation method that conforms to the OGC SLD
specification 1.0, page 26. This method is quite approximative, but should
never break and ensure constant scale even on lat/lon unprojected maps (because
in that case scale is computed as if the area was along the equator no matter
what the real position is).
|
TEXT_RENDERING_KEY | final public static String TEXT_RENDERING_KEY(Code) | | The text rendering method, either TEXT_RENDERING_OUTLINE or TEXT_RENDERING_STRING
|
TEXT_RENDERING_OUTLINE | final public static String TEXT_RENDERING_OUTLINE(Code) | | Text will be rendered using the associated
GlyphVector outline, that is, a
Shape .
This ensures perfect centering between the text and the halo, but introduces more text aliasing.
|
TEXT_RENDERING_STRING | final public static String TEXT_RENDERING_STRING(Code) | | Text will be rendered using the usual calls gc.drawString/drawGlyphVector.
This is a little faster, and more consistent with how the platform renders
the text in other applications. The downside is that on most platform the label
and its eventual halo are not properly centered.
|
attributeIndexing | int[] attributeIndexing(Code) | | Maps between the AttributeType index of the new generated FeatureType and the real
attributeType
|
ShapefileRenderer | public ShapefileRenderer()(Code) | | |
addRenderListener | public void addRenderListener(RenderListener listener)(Code) | | adds a listener that responds to error events of feature rendered events.
Parameters: listener - the listener to add. See Also: RenderListener |
getRendererHints | public Map getRendererHints()(Code) | | |
isCaching | public boolean isCaching()(Code) | | DOCUMENT ME!
Returns the caching. |
isConcatTransforms | public boolean isConcatTransforms()(Code) | | |
removeRenderListener | public void removeRenderListener(RenderListener listener)(Code) | | Removes a render listener.
Parameters: listener - the listener to remove. See Also: RenderListener |
setCaching | public void setCaching(boolean caching)(Code) | | DOCUMENT ME!
Parameters: caching - The caching to set. |
setConcatTransforms | public void setConcatTransforms(boolean concatTransforms)(Code) | | |
setRendererHints | public void setRendererHints(Map hints)(Code) | | |
setScaleDenominator | protected void setScaleDenominator(double scaleDenominator)(Code) | | Setter for property scaleDenominator.
Parameters: scaleDenominator - New value of property scaleDenominator. |
stopRendering | public void stopRendering()(Code) | | If you call this method from another thread than the one that called paint or
render the rendering will be forcefully stopped before termination
|
|
|