Class PolygonType
- All Implemented Interfaces:
org.jvnet.jaxb.lang.MergeFrom,org.jvnet.jaxb.lang.ToString
@Generated(value="com.sun.tools.xjc.Driver",
comments="JAXB RI v4.0.4",
date="2024-08-01T13:15:43+01:00")
public class PolygonType
extends ShapeType
implements org.jvnet.jaxb.lang.MergeFrom, org.jvnet.jaxb.lang.ToString
Polygon: one or more vertices; counter-clockwise (as seen from "inside" or from "top") encircled area is enclosed; sides should span less than 180 deg in each coordinate if spherical; a polygon may not intersect itself
Java class for polygonType complex type
.The following schema fragment specifies the expected content contained within this class.
<complexType name="polygonType">
<complexContent>
<extension base="{http://www.ivoa.net/xml/STC/stc-v1.30.xsd}shapeType">
<sequence>
<element name="Vertex" type="{http://www.ivoa.net/xml/STC/stc-v1.30.xsd}vertexType" maxOccurs="unbounded"/>
</sequence>
</extension>
</complexContent>
</complexType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<VertexType>In order to form polygons, vertices are to be connected with straight line segments.Fields inherited from class org.javastro.ivoa.entities.stc.v1.RegionType
area, coordSystemId, noteFields inherited from class org.javastro.ivoa.entities.stc.v1.SpatialIntervalType
epoch, unitFields inherited from class org.javastro.ivoa.entities.stc.v1.CoordIntervalType
fillFactor, frameId, hiInclude, loInclude -
Constructor Summary
ConstructorsConstructorDescriptionDefault no-arg constructorPolygonType(String id, Object idref, String ucd, String type, String href, String idType, String idrefType, Boolean loInclude, Boolean hiInclude, Float fillFactor, Object frameId, BigDecimal epoch, String unit, RegionAreaType area, String note, Object coordSystemId, List<VertexType> vertices) Fully-initialising value constructor -
Method Summary
Modifier and TypeMethodDescriptionappend(org.jvnet.jaxb.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb.lang.ToStringStrategy strategy) appendFields(org.jvnet.jaxb.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb.lang.ToStringStrategy strategy) booleanIn order to form polygons, vertices are to be connected with straight line segments.inthashCode()voidvoidmergeFrom(org.jvnet.jaxb.locator.ObjectLocator leftLocator, org.jvnet.jaxb.locator.ObjectLocator rightLocator, Object left, Object right, org.jvnet.jaxb.lang.MergeStrategy strategy) toString()withArea(RegionAreaType value) withCoordSystemId(Object value) withEpoch(BigDecimal value) withFillFactor(Float value) withFrameId(Object value) withHiInclude(Boolean value) withIDREFType(String value) withIDType(String value) withLoInclude(Boolean value) withVertices(Collection<VertexType> values) withVertices(VertexType... values) Methods inherited from class org.javastro.ivoa.entities.stc.v1.RegionType
getArea, getCoordSystemId, getNote, setArea, setCoordSystemId, setNoteMethods inherited from class org.javastro.ivoa.entities.stc.v1.SpatialIntervalType
getEpoch, getUnit, setEpoch, setUnitMethods inherited from class org.javastro.ivoa.entities.stc.v1.CoordIntervalType
getFillFactor, getFrameId, isHiInclude, isLoInclude, setFillFactor, setFrameId, setHiInclude, setLoIncludeMethods inherited from class org.javastro.ivoa.entities.stc.v1.StcBaseType
getHref, getId, getIdref, getIDREFType, getIDType, getType, getUcd, setHref, setId, setIdref, setIDREFType, setIDType, setType, setUcd
-
Field Details
-
vertices
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") protected List<VertexType> verticesIn order to form polygons, vertices are to be connected with straight line segments. In the case of spherical coordinates: greatcircle segments; if a smallCircle element si present, the vertex and its predecessor are to be connected with a smallcircle, by default in the CoordSys that is referenced; optionally, a pole may be specified (other than the CoordSys pole) that defines the smallcircle system
-
-
Constructor Details
-
PolygonType
public PolygonType()Default no-arg constructor -
PolygonType
public PolygonType(String id, Object idref, String ucd, String type, String href, String idType, String idrefType, Boolean loInclude, Boolean hiInclude, Float fillFactor, Object frameId, BigDecimal epoch, String unit, RegionAreaType area, String note, Object coordSystemId, List<VertexType> vertices) Fully-initialising value constructor
-
-
Method Details
-
getVertices
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public List<VertexType> getVertices()In order to form polygons, vertices are to be connected with straight line segments. In the case of spherical coordinates: greatcircle segments; if a smallCircle element si present, the vertex and its predecessor are to be connected with a smallcircle, by default in the CoordSys that is referenced; optionally, a pole may be specified (other than the CoordSys pole) that defines the smallcircle system Gets the value of the vertices property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the vertices property.For example, to add a new item, do as follows:
getVertices().add(newItem);
Objects of the following type(s) are allowed in the list
VertexType- Returns:
- The value of the vertices property.
-
equals
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public boolean equals(Object object) -
hashCode
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public int hashCode() -
toString
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public String toString() -
append
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public StringBuilder append(org.jvnet.jaxb.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb.lang.ToStringStrategy strategy) -
appendFields
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public StringBuilder appendFields(org.jvnet.jaxb.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb.lang.ToStringStrategy strategy) - Specified by:
appendFieldsin interfaceorg.jvnet.jaxb.lang.ToString- Overrides:
appendFieldsin classShapeType
-
withVertices
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public PolygonType withVertices(VertexType... values) -
withVertices
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public PolygonType withVertices(Collection<VertexType> values) -
withArea
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public PolygonType withArea(RegionAreaType value) -
withNote
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public PolygonType withNote(String value) -
withCoordSystemId
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public PolygonType withCoordSystemId(Object value) - Overrides:
withCoordSystemIdin classShapeType
-
withEpoch
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public PolygonType withEpoch(BigDecimal value) -
withUnit
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public PolygonType withUnit(String value) -
withLoInclude
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public PolygonType withLoInclude(Boolean value) - Overrides:
withLoIncludein classShapeType
-
withHiInclude
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public PolygonType withHiInclude(Boolean value) - Overrides:
withHiIncludein classShapeType
-
withFillFactor
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public PolygonType withFillFactor(Float value) - Overrides:
withFillFactorin classShapeType
-
withFrameId
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public PolygonType withFrameId(Object value) - Overrides:
withFrameIdin classShapeType
-
withId
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public PolygonType withId(String value) -
withIdref
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public PolygonType withIdref(Object value) -
withUcd
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public PolygonType withUcd(String value) -
withType
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public PolygonType withType(String value) -
withHref
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public PolygonType withHref(String value) -
withIDType
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public PolygonType withIDType(String value) - Overrides:
withIDTypein classShapeType
-
withIDREFType
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public PolygonType withIDREFType(String value) - Overrides:
withIDREFTypein classShapeType
-
mergeFrom
-
mergeFrom
-
createNewInstance
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Object createNewInstance()- Specified by:
createNewInstancein interfaceorg.jvnet.jaxb.lang.MergeFrom- Overrides:
createNewInstancein classShapeType
-