Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.pictures.tiles.gwt.client.util
Class Rectangle

java.lang.Object
  extended by org.nuxeo.ecm.platform.pictures.tiles.gwt.client.util.Rectangle

public class Rectangle
extends java.lang.Object

Author:
Thomas Roger

Constructor Summary
Rectangle()
           
Rectangle(Point topLeft, int width, int height)
           
 
Method Summary
 void centerOn(int x, int y)
           
 boolean contains(Point p)
           
 boolean containsAll(java.util.List<Point> points)
           
 boolean containsAll(Point... points)
           
 boolean containsAny(java.util.List<Point> points)
           
 boolean containsAny(Point... points)
           
 Point getCenter()
           
 int getHeight()
           
 Point getTopLeft()
           
 int getWidth()
           
 void move(int x, int y)
           
 void setLocation(int x, int y)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rectangle

public Rectangle()

Rectangle

public Rectangle(Point topLeft,
                 int width,
                 int height)
Method Detail

move

public void move(int x,
                 int y)

setLocation

public void setLocation(int x,
                        int y)

centerOn

public void centerOn(int x,
                     int y)

getTopLeft

public Point getTopLeft()
Returns:
the topLeft.

getWidth

public int getWidth()

getHeight

public int getHeight()

getCenter

public Point getCenter()

contains

public boolean contains(Point p)

containsAny

public boolean containsAny(Point... points)

containsAny

public boolean containsAny(java.util.List<Point> points)

containsAll

public boolean containsAll(Point... points)

containsAll

public boolean containsAll(java.util.List<Point> points)

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.