nl.tudelft.simulation.dsol.animation.D2
Interface EditableRenderable2DInterface

All Superinterfaces:
Renderable2DInterface
All Known Implementing Classes:
EditableRenderable2D

public interface EditableRenderable2DInterface
extends Renderable2DInterface

This interface provides the functionality that editable animation objects must implement.

(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser General Public License (LGPL) , no warranty.

Since:
1.4
Version:
$Revision: 1.1 $ $Date: 2007/01/06 13:21:28 $
Author:
Peter Jacobs

Nested Class Summary
 
Nested classes/interfaces inherited from interface nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface
Renderable2DInterface.Util
 
Method Summary
 boolean allowAddOrDeletePoints()
          Is the user allowed to add or delete points of this editable?
 boolean allowDelete()
          Is the user allowed to delete this object?
 boolean allowEditPoints()
          Is the user allowed to edit individual points of this editable?
 boolean allowMove()
          Is the user allowed to move this editable?
 boolean allowRotate()
          Is the user allowed to rotate this editable?
 boolean allowScale()
          Is the user allowed to scale this editable?
 int getMaxNumberOfPoints()
          Get the maximum allowed number of points for this editable
 int getMinNumberOfPoints()
          Get the minimum allowed number of points for this editable
 boolean isClosedShape()
          Returns whether this shape is closed or open.
 
Methods inherited from interface nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface
contains, destroy, getSource, paint
 

Method Detail

isClosedShape

boolean isClosedShape()
                      throws RemoteException
Returns whether this shape is closed or open. For example an area is a closed shape while a trajectory is open (has ends).

Returns:
true or false
Throws:
RemoteException - RemoteException

allowMove

boolean allowMove()
                  throws RemoteException
Is the user allowed to move this editable?

Returns:
True or false
Throws:
RemoteException - RemoteException

allowRotate

boolean allowRotate()
                    throws RemoteException
Is the user allowed to rotate this editable?

Returns:
True or false
Throws:
RemoteException - RemoteException

allowScale

boolean allowScale()
                   throws RemoteException
Is the user allowed to scale this editable?

Returns:
True or false
Throws:
RemoteException - RemoteException

allowEditPoints

boolean allowEditPoints()
                        throws RemoteException
Is the user allowed to edit individual points of this editable?

Returns:
True or false
Throws:
RemoteException - RemoteException

allowDelete

boolean allowDelete()
                    throws RemoteException
Is the user allowed to delete this object?

Returns:
True or false
Throws:
RemoteException - RemoteException

allowAddOrDeletePoints

boolean allowAddOrDeletePoints()
                               throws RemoteException
Is the user allowed to add or delete points of this editable?

Returns:
True or false
Throws:
RemoteException - RemoteException

getMaxNumberOfPoints

int getMaxNumberOfPoints()
                         throws RemoteException
Get the maximum allowed number of points for this editable

Returns:
Maximum number of points
Throws:
RemoteException - RemoteException

getMinNumberOfPoints

int getMinNumberOfPoints()
                         throws RemoteException
Get the minimum allowed number of points for this editable

Returns:
Minimum number of points
Throws:
RemoteException - RemoteException


Copyright © 2002-2010 Delft University of Technology, the Netherlands. All Rights Reserved.