public class PolygonDomain extends GeoDomain implements com.exalead.util.Checkable, java.io.Serializable
GeoDomain.Visitor
Modifier and Type | Field and Description |
---|---|
java.lang.String |
vertices |
DEFAULT_ID, id, title
Constructor and Description |
---|
PolygonDomain() |
PolygonDomain(PolygonDomain o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
accept(GeoDomain.Visitor visitor) |
void |
check(boolean deep,
java.lang.String errorContext)
Checks this PolygonDomain.
|
static PolygonDomain |
fromString(java.lang.String s)
String representation of this PolygonDomain.
|
double[] |
getParsedVertices() |
java.lang.String |
getVertices()
Polygon vertices, as a list of (x,y) coordinates.
For example: "0.0,0.0;1.1,0.1;1.1,1.1" |
PolygonDomain |
makeCopy()
Creates and returns a deep copy of this PolygonDomain.
|
static PolygonDomain |
readFrom(java.io.InputStream is)
Read this PolygonDomain from an XML fragment.
|
void |
setVertices(java.lang.String vertices)
Polygon vertices, as a list of (x,y) coordinates.
For example: "0.0,0.0;1.1,0.1;1.1,1.1" |
java.lang.String |
toString()
String representation of this PolygonDomain.
|
PolygonDomain |
withId(int id) |
PolygonDomain |
withId(java.lang.Integer id) |
PolygonDomain |
withTitle(java.lang.String title) |
PolygonDomain |
withVertices(java.lang.String vertices) |
void |
writeTo(java.io.OutputStream os)
Write this PolygonDomain as an XML fragment
|
public PolygonDomain()
public PolygonDomain(PolygonDomain o)
public PolygonDomain withTitle(java.lang.String title)
public PolygonDomain withId(int id)
public PolygonDomain withId(java.lang.Integer id)
public void setVertices(java.lang.String vertices)
public java.lang.String getVertices()
public PolygonDomain withVertices(java.lang.String vertices)
public PolygonDomain makeCopy()
public static PolygonDomain readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
public static PolygonDomain fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
public void accept(GeoDomain.Visitor visitor) throws com.exalead.util.TypedException
public double[] getParsedVertices() throws java.lang.Exception
java.lang.Exception
Copyright © 2013 Dassault Systèmes, All Rights Reserved.