Package iofXml.v3

Class MapPosition

java.lang.Object
iofXml.v3.MapPosition

public class MapPosition extends Object
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
    Modifier and Type
    Field
    Description
    protected String
    The type of unit used.
    protected double
    The number of units right of the center of the coordinate system.
    protected double
    The number of units below the center of the coordinate system.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    The type of unit used.
    double
    The number of units right of the center of the coordinate system.
    double
    The number of units below the center of the coordinate system.
    void
    setUnit(String value)
    Sets the value of the unit property.
    void
    setX(double value)
    Sets the value of the x property.
    void
    setY(double value)
    Sets the value of the y property.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • x

      protected double x
      The number of units right of the center of the coordinate system.
    • y

      protected double y
      The number of units below the center of the coordinate system.
    • unit

      protected String 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

      public String getUnit()
      The type of unit used.
      Returns:
      possible object is String
    • setUnit

      public void setUnit(String value)
      Sets the value of the unit property.
      Parameters:
      value - allowed object is String
      See Also: