Sweet Home 3D 4.1

com.eteks.sweethome3d.model
Interface Selectable

All Superinterfaces:
Cloneable
All Known Implementing Classes:
Compass, DimensionLine, HomeDoorOrWindow, HomeFurnitureGroup, HomeLight, HomePieceOfFurniture, Label, ObserverCamera, Room, Wall

public interface Selectable
extends Cloneable

An object that is selectable in home.

Author:
Emmanuel Puybaret

Method Summary
 Selectable clone()
          Returns a clone of this object.
 boolean containsPoint(float x, float y, float margin)
          Returns true if this object contains the point at (x, y) with a given margin.
 float[][] getPoints()
          Returns the points of the shape surrounding this object.
 boolean intersectsRectangle(float x0, float y0, float x1, float y1)
          Returns true if this object intersects with the horizontal rectangle which opposite corners are at points (x0, y0) and (x1, y1).
 void move(float dx, float dy)
          Moves this object of (dx, dy) units.
 

Method Detail

getPoints

float[][] getPoints()
Returns the points of the shape surrounding this object.

Returns:
an array of the (x,y) coordinates of the rectangle.

intersectsRectangle

boolean intersectsRectangle(float x0,
                            float y0,
                            float x1,
                            float y1)
Returns true if this object intersects with the horizontal rectangle which opposite corners are at points (x0, y0) and (x1, y1).


containsPoint

boolean containsPoint(float x,
                      float y,
                      float margin)
Returns true if this object contains the point at (x, y) with a given margin.


move

void move(float dx,
          float dy)
Moves this object of (dx, dy) units.


clone

Selectable clone()
Returns a clone of this object.


Sweet Home 3D 4.1

© Copyrights 2006-2013 eTeks - All rights reserved
Distributed under GNU General Public License