|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vectomatic.client.rep.controller.ShapeSelection
public class ShapeSelection
Class to represent the currently selected shapes. Selected shapes are cloned and clones are accessed with getRootShape().
Constructor Summary | |
---|---|
ShapeSelection(DrawingModel model)
|
Method Summary | |
---|---|
void |
addShapeSelectionListener(IShapeSelectionListener listener)
|
void |
fireSelectionHasChanged()
|
Shape |
getRootShape()
Returns the clone of the currently selected shapes. |
List<Shape> |
getSelectedShapes()
Returns a list which contains all the selected shapes. |
boolean |
hasAttributeChanged(Attribute attribute,
IAttributeValue value)
|
Iterator<Shape> |
iterator()
|
void |
modelHasChanged(DrawingModel model)
Listens to model change events. |
void |
removeShapeSelectionListener(IShapeSelectionListener listener)
|
Shape |
select(List<Shape> shapes)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShapeSelection(DrawingModel model)
Method Detail |
---|
public void addShapeSelectionListener(IShapeSelectionListener listener)
public void removeShapeSelectionListener(IShapeSelectionListener listener)
public void fireSelectionHasChanged()
public Shape getRootShape()
public List<Shape> getSelectedShapes()
public Shape select(List<Shape> shapes)
rootShape
- public void modelHasChanged(DrawingModel model)
modelHasChanged
in interface IDrawingModelListener
public Iterator<Shape> iterator()
public boolean hasAttributeChanged(Attribute attribute, IAttributeValue value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |