Class PolygonMode
- java.lang.Object
-
- uk.ac.starlink.ttools.plot2.layer.PolygonMode
-
public class PolygonMode extends java.lang.Object
Defines how polygon vertices are turned into graphics.- Since:
- 6 Mar 2019
- Author:
- Mark Taylor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
PolygonMode.Glypher
Knows how to place polygons as glyphs.
-
Field Summary
Fields Modifier and Type Field Description static PolygonMode
CROSS
Cross.static PolygonMode
FILL
Fill.static PolygonMode[]
MODES
Available instances.static PolygonMode
OUTLINE
Outline.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDescription()
Returns a short user-visible description of this mode.PolygonMode.Glypher
getGlypher(boolean isFast)
Returns a glypher that can paint polygons according to this mode.java.lang.String
toString()
-
-
-
Field Detail
-
OUTLINE
public static final PolygonMode OUTLINE
Outline.
-
FILL
public static final PolygonMode FILL
Fill.
-
CROSS
public static final PolygonMode CROSS
Cross.
-
MODES
public static final PolygonMode[] MODES
Available instances.
-
-
Method Detail
-
getGlypher
public PolygonMode.Glypher getGlypher(boolean isFast)
Returns a glypher that can paint polygons according to this mode.- Parameters:
isFast
- if true, favour a faster mode, if false favour a more careful mode
-
getDescription
public java.lang.String getDescription()
Returns a short user-visible description of this mode.- Returns:
- XML-friengly description text (not wrapped in an element)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-