Class AbstractReadOnlyPoint

    • Constructor Detail

      • AbstractReadOnlyPoint

        protected AbstractReadOnlyPoint​(NativeObject nativeObject)
        Creates the object with native object instance to be wrapped.
        Parameters:
        nativeObject - native object instance to be wrapped.
      • AbstractReadOnlyPoint

        protected AbstractReadOnlyPoint​(AbstractNode parent,
                                        Key childKey,
                                        NativeObject nativeObject)
        Creates the object with the parent, the key of this element, default values and native object to map java script properties.
        Parameters:
        parent - parent node to use to add this element where changed
        childKey - the property name of this element to use to add it to the parent.
        nativeObject - native object to map java script properties
    • Method Detail

      • getX

        public final double getX()
        Returns the X coordinate of the point.
        Specified by:
        getX in interface IsPoint
        Returns:
        the X coordinate of the point.
      • getY

        public final double getY()
        Returns the Y coordinate of the point.
        Specified by:
        getY in interface IsPoint
        Returns:
        the Y coordinate of the point.