net.sf.latexdraw.glib.models.interfaces
Interface IDrawing

All Superinterfaces:
AbstractPresentation, ISetShapes, Modifiable, Reinitialisable
All Known Implementing Classes:
LDrawing

public interface IDrawing
extends ISetShapes, AbstractPresentation

Defines an interface of a drawing that contains a set of shapes and a set of selected shapes.

This file is part of LaTeXDraw.
Copyright (c) 2005-2012 Arnaud BLOUIN

LaTeXDraw is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
LaTeXDraw is distributed without any warranty; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

02/22/2010

Since:
3.0
Version:
3.0
Author:
Arnaud BLOUIN

Method Summary
 void addToSelection(IShape sh)
          Adds the given shape to the selection.
 void addToSelection(java.util.List<IShape> shapes)
          Adds the given shapes to the selection.
 IGroup getSelection()
           
 IShape getTempShape()
           
 IUnary<IShape> getUnaryTempShape()
           
 void removeFromSelection(IShape sh)
          Removes the given shape from the selection.
 void removeSelection()
          Clears the selection.
 void setSelection(IShape sh)
          Selects the given shape and unselect the already selected shapes.
 void setSelection(java.util.List<IShape> shapes)
          Selects the given shapes and unselect the already selected shapes.
 void setTempShape(IShape tempShape)
          Sets the temporary shape.
 
Methods inherited from interface net.sf.latexdraw.glib.models.interfaces.ISetShapes
addShape, addShape, clear, contains, getShapeAt, getShapes, isEmpty, removeShape, removeShape, size
 
Methods inherited from interface org.malai.properties.Modifiable
isModified, setModified
 
Methods inherited from interface org.malai.properties.Reinitialisable
reinit
 

Method Detail

getSelection

IGroup getSelection()
Returns:
The group that contains the selected shape. Cannot be null.
Since:
3.0

removeSelection

void removeSelection()
Clears the selection.

Since:
3.0

setSelection

void setSelection(IShape sh)
Selects the given shape and unselect the already selected shapes.

Parameters:
sh - The shape to select.
Since:
3.0

setSelection

void setSelection(java.util.List<IShape> shapes)
Selects the given shapes and unselect the already selected shapes.

Parameters:
shapes - The shapes to select.
Since:
3.0

removeFromSelection

void removeFromSelection(IShape sh)
Removes the given shape from the selection.

Parameters:
sh - The shape to remove from the selection.
Since:
3.0

addToSelection

void addToSelection(IShape sh)
Adds the given shape to the selection.

Parameters:
sh - The shape to select.
Since:
3.0

addToSelection

void addToSelection(java.util.List<IShape> shapes)
Adds the given shapes to the selection.

Parameters:
shapes - The shapes to select.
Since:
3.0

getTempShape

IShape getTempShape()
Returns:
The temporary shape. Null is there is no temporary shape.
Since:
3.0

setTempShape

void setTempShape(IShape tempShape)
Sets the temporary shape.

Parameters:
tempShape - The new temporary shape. Can be null.
Since:
3.0

getUnaryTempShape

IUnary<IShape> getUnaryTempShape()
Returns:
The unary relation that contains the temporary shape.
Since:
3.0