cz.cuni.jagrlib.iface
Interface PolygonStrokeRender

All Superinterfaces:
PolygonRender, Property, Render
All Known Implementing Classes:
PolylineAntialias

public interface PolygonStrokeRender
extends PolygonRender

Rendering interface for stroked 2D polygons (poly-lines).

Since:
0.24
See Also:
PolygonStrokeRender.java

Field Summary
static java.lang.String LINE_MITER_LIMIT
          Miter-limit property (double).
 
Fields inherited from interface cz.cuni.jagrlib.iface.PolygonRender
POLY_INSIDE, POLY_INSIDE_PARITY, POLY_INSIDE_WINDING
 
Fields inherited from interface cz.cuni.jagrlib.iface.Render
LINE_CAP, LINE_CAP_BUTT, LINE_CAP_ROUND, LINE_CAP_SQUARE, LINE_JOIN, LINE_JOIN_BEVEL, LINE_JOIN_DISJOINT, LINE_JOIN_MITER, LINE_JOIN_OVERLAP, LINE_JOIN_ROUND, LINE_WIDTH, PROJECTION, RENDER_STYLE, RENDER_STYLE_FLAT, RENDER_STYLE_GOURAUD, RENDER_STYLE_LINE, RENDER_STYLE_PHONG, RENDER_STYLE_TEXTURE
 
Fields inherited from interface cz.cuni.jagrlib.iface.Property
LOGGING, STATISTICS, TEXT_DESCRIPTION
 
Method Summary
 int setJoinStyle(int joinStyle)
          Sets default join style.
 double setMiterLimit(double miterLimit)
          Sets default miter limit in pixels.
 double setWidth(double width)
          Sets default line width in pixels.
 void strokePolyline(java.awt.Point[] v)
          Strokes the given polyline.
 void strokePolyline(java.awt.geom.Point2D.Double[] v)
          Strokes the given polyline.
 
Methods inherited from interface cz.cuni.jagrlib.iface.Property
commit, get, set
 

Field Detail

LINE_MITER_LIMIT

static final java.lang.String LINE_MITER_LIMIT
Miter-limit property (double).

See Also:
Constant Field Values
Method Detail

setWidth

double setWidth(double width)
Sets default line width in pixels.

Parameters:
width - New line width in pixels.
Returns:
The old line width in pixels.

setMiterLimit

double setMiterLimit(double miterLimit)
Sets default miter limit in pixels.

Parameters:
miterLimit - New miter limit in pixels.
Returns:
The old miter limit in pixels.

setJoinStyle

int setJoinStyle(int joinStyle)
Sets default join style.

Parameters:
joinStyle - New join style.
Returns:
The old join style.
See Also:
Render.LINE_JOIN_MITER, Render.LINE_JOIN_ROUND, Render.LINE_JOIN_BEVEL

strokePolyline

void strokePolyline(java.awt.Point[] v)
Strokes the given polyline.

Parameters:
v - Array of polygon vertices (can be closed, null can interrupt the sequence).

strokePolyline

void strokePolyline(java.awt.geom.Point2D.Double[] v)
Strokes the given polyline.

Parameters:
v - Array of polygon vertices (can be closed, null can interrupt the sequence).