Class CmsPoint

  • All Implemented Interfaces:
    com.google.gwt.user.client.rpc.IsSerializable

    public class CmsPoint
    extends java.lang.Object
    implements com.google.gwt.user.client.rpc.IsSerializable
    A point in 2D space.

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected CmsPoint()
      Empty default constructor for serialization.
        CmsPoint​(double x, double y)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getX()
      Gets the x coordinate.
      double getY()
      Gets the y coordinate.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CmsPoint

        public CmsPoint​(double x,
                        double y)
        Creates a new instance.

        Parameters:
        x - the x coordinate
        y - the y coordinate
      • CmsPoint

        protected CmsPoint()
        Empty default constructor for serialization.

    • Method Detail

      • getX

        public double getX()
        Gets the x coordinate.

        Returns:
        the x coordinate
      • getY

        public double getY()
        Gets the y coordinate.

        Returns:
        the y coordinate
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()