| java.lang.Object org.geotools.renderer.shape.shapehandler.simple.MultiLineHandler
All known Subclasses: org.geotools.renderer.shape.shapehandler.jts.MultiLineHandler,
MultiLineHandler | public class MultiLineHandler implements ShapeHandler(Code) | | Creates Geometry line objects for use by the ShapeRenderer.
author: jeichar since: 2.1.x |
Constructor Summary | |
public | MultiLineHandler(ShapeType type, Envelope env, MathTransform mt, boolean hasOpacity, Rectangle screenSize) Create new instance
Parameters: type - the type of shape. Parameters: env - the area that is visible. |
Method Summary | |
public boolean | bboxIntersectSegment(boolean intersection, double[] coords, int index) | protected Object | createGeometry(ShapeType type, Envelope geomBBox, double[][] transformed) | public int | getLength(Object geometry) | public ShapeType | getShapeType() | public static boolean | intersect(double x0, double y0, double x1, double y1, double xmin, double ymin, double xmax, double ymax) Uses Cohen Sutherland line clipping algorithm to determine intersection. | public Object | read(ByteBuffer buffer, ShapeType type) | public void | write(ByteBuffer buffer, Object geometry) |
BOTTOM | final static int BOTTOM(Code) | | |
LEFT | final static int LEFT(Code) | | |
RIGHT | final static int RIGHT(Code) | | |
MultiLineHandler | public MultiLineHandler(ShapeType type, Envelope env, MathTransform mt, boolean hasOpacity, Rectangle screenSize) throws TransformException(Code) | | Create new instance
Parameters: type - the type of shape. Parameters: env - the area that is visible. If shape is not in area then skip. Parameters: mt - the transform to go from data to the envelope (and that shouldbe used to transform the shape coords) Parameters: hasOpacity - Parameters: screenSize - throws: TransformException - |
bboxIntersectSegment | public boolean bboxIntersectSegment(boolean intersection, double[] coords, int index)(Code) | | |
createGeometry | protected Object createGeometry(ShapeType type, Envelope geomBBox, double[][] transformed)(Code) | | |
intersect | public static boolean intersect(double x0, double y0, double x1, double y1, double xmin, double ymin, double xmax, double ymax)(Code) | | Uses Cohen Sutherland line clipping algorithm to determine intersection.
See Computer Graphics: Principles and Practice Foley, van Dam,
Feiner, Hughes
Parameters: x0 - DOCUMENT ME! Parameters: y0 - DOCUMENT ME! Parameters: x1 - DOCUMENT ME! Parameters: y1 - DOCUMENT ME! Parameters: xmin - DOCUMENT ME! Parameters: ymin - DOCUMENT ME! Parameters: xmax - DOCUMENT ME! Parameters: ymax - DOCUMENT ME! DOCUMENT ME! |
|
|