Package iofXml.v3
Class MapPosition
java.lang.Object
iofXml.v3.MapPosition
Defines a position in a map's coordinate system.
Java class for MapPosition complex type
.The following schema fragment specifies the expected content contained within this class.
<complexType name="MapPosition">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<attribute name="x" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
<attribute name="y" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
<attribute name="unit" default="mm">
<simpleType>
<restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
<enumeration value="px"/>
<enumeration value="mm"/>
</restriction>
</simpleType>
</attribute>
</restriction>
</complexContent>
</complexType>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetUnit()The type of unit used.doublegetX()The number of units right of the center of the coordinate system.doublegetY()The number of units below the center of the coordinate system.voidSets the value of the unit property.voidsetX(double value) Sets the value of the x property.voidsetY(double value) Sets the value of the y property.
-
Field Details
-
x
protected double xThe number of units right of the center of the coordinate system. -
y
protected double yThe number of units below the center of the coordinate system. -
unit
The type of unit used.
-
-
Constructor Details
-
MapPosition
public MapPosition()
-
-
Method Details
-
getX
public double getX()The number of units right of the center of the coordinate system. -
setX
public void setX(double value) Sets the value of the x property. -
getY
public double getY()The number of units below the center of the coordinate system. -
setY
public void setY(double value) Sets the value of the y property. -
getUnit
The type of unit used.- Returns:
- possible object is
String
-
setUnit
Sets the value of the unit property.
-