Interface PolygonMode.Glypher
-
- Enclosing class:
- PolygonMode
@Equality public static interface PolygonMode.Glypher
Knows how to place polygons as glyphs.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
paintPolygon(java.awt.Graphics g, int[] xs, int[] ys, int np)
Paints a polygon with the given vertices in the style of this outliner to a graphics context.void
placeGlyphs2D(PaperType2D ptype, Paper paper, int[] gxs, int[] gys, int np, java.awt.Color color)
Places zero or more glyphs on a given 2D paper instance corresponding to the supplied graphics vertices of a polygon.void
placeGlyphs3D(PaperType3D ptype, Paper paper, int[] gxs, int[] gys, int np, double gz, java.awt.Color color)
Places zero or more glyphs on a given 3D paper instance corresponding to the supplied graphics vertices of a polygon.
-
-
-
Method Detail
-
paintPolygon
void paintPolygon(java.awt.Graphics g, int[] xs, int[] ys, int np)
Paints a polygon with the given vertices in the style of this outliner to a graphics context.- Parameters:
np
- number of verticesxs
- X coordinates of verticesys
- Y coordinates of vertices
-
placeGlyphs2D
void placeGlyphs2D(PaperType2D ptype, Paper paper, int[] gxs, int[] gys, int np, java.awt.Color color)
Places zero or more glyphs on a given 2D paper instance corresponding to the supplied graphics vertices of a polygon.- Parameters:
ptype
- paper typepaper
- paper objectgxs
- np-element array giving graphics X vertex coordinatesgys
- np-element array giving graphics Y vertex coordinatesnp
- number of polygon verticescolor
- colour with which to place glyph
-
placeGlyphs3D
void placeGlyphs3D(PaperType3D ptype, Paper paper, int[] gxs, int[] gys, int np, double gz, java.awt.Color color)
Places zero or more glyphs on a given 3D paper instance corresponding to the supplied graphics vertices of a polygon.- Parameters:
ptype
- paper typepaper
- paper objectgxs
- np-element array giving graphics X vertex coordinatesgys
- np-element array giving graphics Y vertex coordinatesnp
- number of polygon verticesgz
- graphics Z coordinate for polygoncolor
- colour with which to place glyph
-
-