cz.cuni.jagrlib.iface
Interface PolygonHashRender

All Superinterfaces:
PolygonRender, Property, Render

public interface PolygonHashRender
extends PolygonRender

Rendering interface for hashed 2D polygons.

Since:
0.01
See Also:
PolygonHashRender.java

Field Summary
 
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
 void hashPolygon(java.awt.Point[] v, double angle, int period)
          Hashes the given polygon.
 void hashPolygon(java.awt.geom.Point2D.Double[] v, double angle, double period)
          Hashes the given polygon.
 
Methods inherited from interface cz.cuni.jagrlib.iface.Property
commit, get, set
 

Method Detail

hashPolygon

void hashPolygon(java.awt.Point[] v,
                 double angle,
                 int period)
Hashes the given polygon. Uses pre-defined fill style.

Parameters:
v - Array of polygon vertices (needs not to be closed, null can interrupt the sequence).
angle - Hashing angle in degrees (anti-clockwise).
period - Hashing period (1 .. solid fill).
See Also:
PolygonRender.POLY_INSIDE

hashPolygon

void hashPolygon(java.awt.geom.Point2D.Double[] v,
                 double angle,
                 double period)
Hashes the given polygon. Uses pre-defined fill style.

Parameters:
v - Array of polygon vertices (needs not to be closed, null can interrupt the sequence).
angle - Hashing angle in degrees (anti-clockwise).
period - Hashing period (1 .. solid fill).
See Also:
PolygonRender.POLY_INSIDE