org.vectomatic.common.model.geometry
Class ShapeGroup

java.lang.Object
  extended by org.vectomatic.common.model.Shape
      extended by org.vectomatic.common.model.geometry.ShapeGroup
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable

public class ShapeGroup
extends Shape
implements com.google.gwt.user.client.rpc.IsSerializable

Class to represent a group of shapes (composite design pattern)


Field Summary
protected  List<Shape> _shapes
          A List of palettes.
 
Fields inherited from class org.vectomatic.common.model.Shape
_attributes, _bbox, _dirty, _id, _m, _model, _r, _s, _t
 
Constructor Summary
ShapeGroup()
           
ShapeGroup(List<Shape> shapes)
           
ShapeGroup(ShapeGroup group)
           
 
Method Summary
 void acceptVisitor(IShapeVisitor visitor)
           
 boolean containsRotatedShape()
           
 List<Shape> getShapes()
           
 boolean isSame(Shape shape)
          Returns true if the specified shape has the same geometrical and styling properties as this shape, false otherwise.
 void setShapes(List<Shape> shapes)
           
 String toString()
           
 void updateGroup()
           
 
Methods inherited from class org.vectomatic.common.model.Shape
clearAttribute, copyAttributes, definesAttribute, getAttribute, getBoundingBox, getDefinedAttributes, getModel, getRotation, getScaling, getTransform, getTranslation, setAttribute, setModel, setRotation, setScaling, setTransform, setTranslation, updateTransform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_shapes

protected List<Shape> _shapes
A List of palettes.

Constructor Detail

ShapeGroup

public ShapeGroup()

ShapeGroup

public ShapeGroup(List<Shape> shapes)

ShapeGroup

public ShapeGroup(ShapeGroup group)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

isSame

public boolean isSame(Shape shape)
Description copied from class: Shape
Returns true if the specified shape has the same geometrical and styling properties as this shape, false otherwise.

Specified by:
isSame in class Shape
Parameters:
shape - A shape
Returns:
True if the specified shape has the same geometrical and styling properties as this shape, false otherwise.

updateGroup

public void updateGroup()

acceptVisitor

public void acceptVisitor(IShapeVisitor visitor)
Specified by:
acceptVisitor in class Shape

getShapes

public List<Shape> getShapes()

setShapes

public void setShapes(List<Shape> shapes)

containsRotatedShape

public boolean containsRotatedShape()


Copyright © 2010. All Rights Reserved.