public enum GeometryParsers extends Enum<GeometryParsers>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
static void |
main(String... args) |
double[] |
parseBox(CharSequence s)
Parses a box.
|
double[] |
parseCircle(CharSequence s)
Parses a circle.
|
double[] |
parseLine(CharSequence s)
Parses an infinite line represented by the linear equation Ax + By + C = 0.
|
double[] |
parseLSeg(CharSequence s)
Parses a lseg.
|
Path |
parsePath(CharSequence s)
Parses a path.
|
double[] |
parsePoint(CharSequence s)
Parses a point.
|
double[][] |
parsePolygon(CharSequence s)
Parses a polygon.
|
static GeometryParsers |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GeometryParsers[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GeometryParsers INSTANCE
public static GeometryParsers[] values()
for (GeometryParsers c : GeometryParsers.values()) System.out.println(c);
public static GeometryParsers valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Path parsePath(CharSequence s)
[ ( x1 , y1 ) , ... , ( xn , yn ) ] ( ( x1 , y1 ) , ... , ( xn , yn ) ) ( x1 , y1 ) , ... , ( xn , yn ) ( x1 , y1 , ... , xn , yn ) x1 , y1 , ... , xn , yn
s
- The path to parse.public double[][] parsePolygon(CharSequence s)
( ( x1 , y1 ) , ... , ( xn , yn ) ) ( x1 , y1 ) , ... , ( xn , yn ) ( x1 , y1 , ... , xn , yn ) x1 , y1 , ... , xn , yn
s
- The polygon to parse.public double[] parseCircle(CharSequence s)
< ( x , y ) , r > ( ( x , y ) , r ) ( x , y ) , r x , y , r
s
- The circle to parse.public double[] parsePoint(CharSequence s)
( x , y ) x , y
s
- The point to parse.public double[] parseBox(CharSequence s)
( ( x1 , y1 ) , ( x2 , y2 ) ) ( x1 , y1 ) , ( x2 , y2 ) x1 , y1 , x2 , y2
s
- The box to parse.public double[] parseLSeg(CharSequence s)
[ ( x1 , y1 ) , ( x2 , y2 ) ] ( ( x1 , y1 ) , ( x2 , y2 ) ) ( x1 , y1 ) , ( x2 , y2 ) x1 , y1 , x2 , y2
s
- The lseg to parse.public double[] parseLine(CharSequence s)
{ A, B, C } also accepted: [ ( x1 , y1 ) , ( x2 , y2 ) ] ( ( x1 , y1 ) , ( x2 , y2 ) ) ( x1 , y1 ) , ( x2 , y2 ) x1 , y1 , x2 , y2
s
- The line to parse.public static void main(String... args)
Copyright © 2013–2017 impossibl.com. All rights reserved.