com.rednels.ofcgwt.client.model.elements
Class Shape.Point

java.lang.Object
  extended by com.rednels.ofcgwt.client.model.elements.Shape.Point
All Implemented Interfaces:
JSONizable
Enclosing class:
Shape

public static class Shape.Point
extends java.lang.Object
implements JSONizable

Base class for OFC shape points


Constructor Summary
Shape.Point(java.lang.Number x, java.lang.Number y)
          Creates a new point.
 
Method Summary
 com.google.gwt.json.client.JSONValue buildJSON()
          Build (and return) a JSONObject that contains all the items of this object.
 java.lang.Number getX()
          Gets the x.
 java.lang.Number getY()
          Gets the y.
 void setX(java.lang.Number x)
          Sets the x.
 void setY(java.lang.Number y)
          Sets the y.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Shape.Point

public Shape.Point(java.lang.Number x,
                   java.lang.Number y)
Creates a new point.

Parameters:
x - the x
y - the y
Method Detail

buildJSON

public com.google.gwt.json.client.JSONValue buildJSON()
Description copied from interface: JSONizable
Build (and return) a JSONObject that contains all the items of this object. If required, will call.buildJSON() on any contained JSONizable objects, thus producing an entire JSON tree.

Specified by:
buildJSON in interface JSONizable
Returns:
the JSONObject

getX

public java.lang.Number getX()
Gets the x.

Returns:
the x

getY

public java.lang.Number getY()
Gets the y.

Returns:
the y

setX

public void setX(java.lang.Number x)
Sets the x.

Parameters:
x - the new x

setY

public void setY(java.lang.Number y)
Sets the y.

Parameters:
y - the new y