|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISetShapes
Defines an interface of a set of 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
Method Summary | |
---|---|
void |
addShape(IShape s)
Adds a shape to the drawing. |
void |
addShape(IShape s,
int index)
Adds a shape to the drawing at at given position. |
void |
clear()
Empties the drawing. |
boolean |
contains(IShape s)
Allows to know if a shape is in the drawing. |
IShape |
getShapeAt(int i)
Allows to get the shape located at the given position. |
java.util.List<IShape> |
getShapes()
|
boolean |
isEmpty()
Allows to know if the drawing is empty or not. |
IShape |
removeShape(int i)
Removes a shape of the drawing a the given position. |
boolean |
removeShape(IShape s)
Removes a shape of the drawing. |
int |
size()
Allows to get the number of shapes that contains the drawing. |
Method Detail |
---|
void addShape(IShape s)
s
- The shape to add. Does nothing if the given shape is null.void addShape(IShape s, int index)
s
- The shape to add. Does nothing if the given shape is null.index
- The position where the figure must be inserted. Does nothing if the given position is not valid.boolean removeShape(IShape s)
s
- The shape to remove.
IShape removeShape(int i)
i
- the position of the shape in the vector (-1: the last shape of the vector).
IShape getShapeAt(int i)
i
- The position of the figure (-1: the last shape of the drawing).
int size()
boolean contains(IShape s)
s
- The shape to check.
boolean isEmpty()
void clear()
java.util.List<IShape> getShapes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |