public class ScreenMap extends Object
The screenmap can be used two ways:
checkAndSet(int, int)
checkAndSet(Envelope)
, in that case the
full math transform from data to screen, and the generalization spans must be set
Constructor and Description |
---|
ScreenMap(int x,
int y,
int width,
int height) |
ScreenMap(int x,
int y,
int width,
int height,
MathTransform mt) |
ScreenMap(ScreenMap original,
int expandBy) |
Modifier and Type | Method and Description |
---|---|
boolean |
canSimplify(Envelope envelope) |
boolean |
checkAndSet(Envelope envelope) |
boolean |
checkAndSet(int x,
int y)
Checks if the geometry should be skipped.
|
boolean |
get(Envelope envelope) |
boolean |
get(int x,
int y)
Returns true if the pixel at location x,y is set or out of bounds.
|
Geometry |
getSimplifiedShape(double minx,
double miny,
double maxx,
double maxy,
GeometryFactory geometryFactory,
Class geometryType)
Returns geometry suitable for rendering the pixel that has just been occupied.
|
Geometry |
getSimplifiedShape(Geometry geometry)
Returns geometry suitable for rendering the pixel that has just been occupied.
|
void |
set(int x,
int y,
boolean value)
Sets location at position x,y to the value.
|
void |
setSpans(double spanX,
double spanY) |
void |
setTransform(MathTransform mt) |
public ScreenMap(int x, int y, int width, int height, MathTransform mt)
public ScreenMap(ScreenMap original, int expandBy)
public ScreenMap(int x, int y, int width, int height)
public void setTransform(MathTransform mt)
public boolean checkAndSet(Envelope envelope) throws TransformException
TransformException
public boolean canSimplify(Envelope envelope)
public void setSpans(double spanX, double spanY)
public boolean checkAndSet(int x, int y)
public boolean get(Envelope envelope) throws TransformException
TransformException
public boolean get(int x, int y)
public Geometry getSimplifiedShape(Geometry geometry)
minx
- miny
- maxx
- maxy
- geometryFactory
- geometryType
- public Geometry getSimplifiedShape(double minx, double miny, double maxx, double maxy, GeometryFactory geometryFactory, Class geometryType)
minx
- miny
- maxx
- maxy
- geometryFactory
- geometryType
- public void set(int x, int y, boolean value)
Copyright © 1996–2019 Geotools. All rights reserved.