|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectScreenMap
public class ScreenMap
The screenmap is a packed bitmap of the screen, one bit per pixels. It can be used to avoid rendering a lot of very small features in the same pixel.
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 Summary | |
---|---|
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)
|
Method Summary | |
---|---|
boolean |
canSimplify(Envelope envelope)
|
boolean |
checkAndSet(Envelope envelope)
|
boolean |
checkAndSet(int x,
int y)
Checks if the geometry should be skipped. |
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. |
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)
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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)
Method Detail |
---|
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(int x, int y)
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |