|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.renderer.shape.TransitionShapefileRenderer
public class TransitionShapefileRenderer
A LiteRenderer Implementations that is optimized for shapefiles.
Field Summary | |
---|---|
static String |
DECLARED_SCALE_DENOM_KEY
|
static org.geotools.renderer.shape.TransitionShapefileRenderer.DefaultRenderListener |
DEFAULT_LISTENER
This listener is added to the list of listeners automatically. |
static String |
DPI_KEY
|
static String |
FORCE_CRS_KEY
|
static String |
LABEL_CACHE_KEY
|
static Logger |
logGt
|
static String |
MEMORY_PRE_LOADING_KEY
|
static String |
OPTIMIZED_DATA_LOADING_KEY
|
static String |
SCALE_ACCURATE
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. |
static String |
SCALE_COMPUTATION_METHOD_KEY
|
static String |
SCALE_OGC
Very simple and lenient scale computation method that conforms to the OGC SLD specification 1.0, page 26. |
static String |
TEXT_RENDERING_KEY
The text rendering method, either TEXT_RENDERING_OUTLINE or TEXT_RENDERING_STRING |
static String |
TEXT_RENDERING_OUTLINE
Text will be rendered using the associated GlyphVector outline,
that is, a Shape . |
static String |
TEXT_RENDERING_STRING
Text will be rendered using the usual calls gc.drawString/drawGlyphVector. |
Constructor Summary | |
---|---|
TransitionShapefileRenderer()
|
|
TransitionShapefileRenderer(MapContext context)
|
Method Summary | |
---|---|
void |
addRenderListener(RenderListener listener)
adds a listener that responds to error events of feature rendered events. |
MapContext |
getContext()
|
RenderingHints |
getJava2DHints()
|
Map |
getRendererHints()
|
boolean |
isCaching()
DOCUMENT ME! |
boolean |
isConcatTransforms()
|
void |
paint(Graphics2D graphics,
Rectangle paintArea,
Envelope mapArea)
Deprecated. |
void |
paint(Graphics2D graphics,
Rectangle paintArea,
Envelope mapArea,
AffineTransform worldToScreen)
Deprecated. |
void |
paint(Graphics2D graphics,
Rectangle paintArea,
ReferencedEnvelope mapArea)
|
void |
paint(Graphics2D graphics,
Rectangle paintArea,
ReferencedEnvelope envelope,
AffineTransform transform)
|
void |
removeRenderListener(RenderListener listener)
Removes a render listener. |
void |
setCaching(boolean caching)
DOCUMENT ME! |
void |
setConcatTransforms(boolean concatTransforms)
|
void |
setContext(MapContext context)
|
void |
setJava2DHints(RenderingHints hints)
|
void |
setRendererHints(Map hints)
|
protected void |
setScaleDenominator(double scaleDenominator)
Setter for property scaleDenominator. |
void |
stopRendering()
If you call this method from another thread than the one that called paint or render the rendering will be
forcefully stopped before termination |
IndexInfo |
useIndex(ShapefileDataStore ds)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Logger logGt
public static final String SCALE_ACCURATE
public static final String SCALE_OGC
public static final org.geotools.renderer.shape.TransitionShapefileRenderer.DefaultRenderListener DEFAULT_LISTENER
public static final String TEXT_RENDERING_STRING
public static final String TEXT_RENDERING_OUTLINE
GlyphVector
outline,
that is, a Shape
. This ensures perfect centering between the text
and the halo, but introduces more text aliasing.
public static final String TEXT_RENDERING_KEY
public static final String LABEL_CACHE_KEY
public static final String FORCE_CRS_KEY
public static final String DPI_KEY
public static final String DECLARED_SCALE_DENOM_KEY
public static final String MEMORY_PRE_LOADING_KEY
public static final String OPTIMIZED_DATA_LOADING_KEY
public static final String SCALE_COMPUTATION_METHOD_KEY
Constructor Detail |
---|
public TransitionShapefileRenderer(MapContext context)
public TransitionShapefileRenderer()
Method Detail |
---|
public void paint(Graphics2D graphics, Rectangle paintArea, ReferencedEnvelope mapArea)
public void addRenderListener(RenderListener listener)
listener
- the listener to add.RenderListener
public void removeRenderListener(RenderListener listener)
listener
- the listener to remove.RenderListener
protected void setScaleDenominator(double scaleDenominator)
scaleDenominator
- New value of property scaleDenominator.public void stopRendering()
paint
or render
the rendering will be
forcefully stopped before termination
public boolean isCaching()
public void setCaching(boolean caching)
caching
- The caching to set.public MapContext getContext()
public boolean isConcatTransforms()
public void setConcatTransforms(boolean concatTransforms)
public IndexInfo useIndex(ShapefileDataStore ds) throws IOException, StoreException
IOException
StoreException
public void setJava2DHints(RenderingHints hints)
public RenderingHints getJava2DHints()
public void setRendererHints(Map hints)
public Map getRendererHints()
public void setContext(MapContext context)
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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |