org.vectomatic.common.model.geometry
Class Polyline

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

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

Class to represent a polyline


Field Summary
 
Fields inherited from class org.vectomatic.common.model.Shape
_attributes, _bbox, _dirty, _id, _m, _model, _r, _s, _t
 
Constructor Summary
Polyline()
           
Polyline(Point[] pts, int count)
           
Polyline(Polyline polyline)
           
 
Method Summary
 void acceptVisitor(IShapeVisitor visitor)
           
 Point[] getVertices()
           
 boolean isClosed()
           
 boolean isSame(Shape shape)
          Returns true if the specified shape has the same geometrical and styling properties as this shape, false otherwise.
 void setVertices(Point[] pts)
           
 String toString()
           
 
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
 

Constructor Detail

Polyline

public Polyline()

Polyline

public Polyline(Point[] pts,
                int count)

Polyline

public Polyline(Polyline polyline)
Method Detail

isClosed

public boolean isClosed()

acceptVisitor

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

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.

getVertices

public Point[] getVertices()

setVertices

public void setVertices(Point[] pts)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010. All Rights Reserved.