public class BoundedVoronoiStylerAdapter extends Object implements IBoundedVoronoiStyler
Constructor and Description |
---|
BoundedVoronoiStylerAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
applyStylingForAreaFill(Graphics2D g2d,
ThiessenPolygon polygon)
Applies styling for area fill operations.
|
void |
applyStylingForLineDrawing(Graphics2D g2d,
ThiessenPolygon polygon)
Applies styling for line drawing operations.
|
IBoundedVoronoiVertexSymbol |
getVertexSymbol(ThiessenPolygon polygon)
Tests to see if the polygon is enabled for rendering a symbol
at the vertex position and, if it is, returns a vertex symbol
that can be used for rendering
|
void |
initializeRendering(Graphics2D g2d)
Called once at the beginning of rendering to set up the Graphics2D surface
for rendering.
|
boolean |
isFeatureTypeEnabled(BoundedVoronoiRenderingType type)
Indicates whether features of the specified type are enabled for rendering.
|
boolean |
isRenderingEnabled(ThiessenPolygon polygon,
BoundedVoronoiRenderingType type)
Indicates whether the specified type of rendering is enabled for the
specified polygon object.
|
void |
setAreaFillEnabled(boolean enabled)
Sets the option for enabling area fill operations
|
public boolean isFeatureTypeEnabled(BoundedVoronoiRenderingType type)
IBoundedVoronoiStyler
This method is useful in cases where an application is required to control whether broad classes of feature types are rendered. For example, an application might be configured to draw line features, while suppressing area-fill features.
isFeatureTypeEnabled
in interface IBoundedVoronoiStyler
type
- a valid instance of a feature type enumerationpublic boolean isRenderingEnabled(ThiessenPolygon polygon, BoundedVoronoiRenderingType type)
IBoundedVoronoiStyler
This method is useful in cases where rendering of one type to be enabled for a specific polygon while rendering of another type is not. For example, an application may be configured to draw line features for most polygons while area-filling a specific polygon.
isRenderingEnabled
in interface IBoundedVoronoiStyler
polygon
- a valid polygontype
- a valid instance of a feature type enumerationpublic void initializeRendering(Graphics2D g2d)
IBoundedVoronoiStyler
initializeRendering
in interface IBoundedVoronoiStyler
g2d
- the graphics surface for renderingpublic void applyStylingForAreaFill(Graphics2D g2d, ThiessenPolygon polygon)
IBoundedVoronoiStyler
applyStylingForAreaFill
in interface IBoundedVoronoiStyler
g2d
- the graphics surface for renderingpolygon
- a valid polygon instancepublic void applyStylingForLineDrawing(Graphics2D g2d, ThiessenPolygon polygon)
IBoundedVoronoiStyler
applyStylingForLineDrawing
in interface IBoundedVoronoiStyler
g2d
- the graphics surface for renderingpolygon
- a valid polygon instancepublic IBoundedVoronoiVertexSymbol getVertexSymbol(ThiessenPolygon polygon)
IBoundedVoronoiStyler
getVertexSymbol
in interface IBoundedVoronoiStyler
polygon
- a valid polygonpublic void setAreaFillEnabled(boolean enabled)
IBoundedVoronoiStyler
setAreaFillEnabled
in interface IBoundedVoronoiStyler
enabled
- true if the Theissen polygons (Voronoi cells) are to
be area-filled; otherwise, false.Copyright © 2021. All rights reserved.