PenProfile 2.x

com.livescribe.geom
Class PolyLine

java.lang.Object
  extended by com.livescribe.geom.Shape
      extended by com.livescribe.geom.PolyLine

public class PolyLine
extends Shape

This class describes a multi-segment line, or polyline.


Field Summary
 
Fields inherited from class com.livescribe.geom.Shape
COORD_MAX, COORD_MIN, INTERSECT_CLIP, INTERSECT_EXTERNAL, INTERSECT_INTERNAL1, INTERSECT_INTERNAL2, SHAPE_COMPOSITE, SHAPE_ELLIPSE, SHAPE_LINESEGMENT, SHAPE_POINT, SHAPE_POLYGON, SHAPE_POLYLINE, SHAPE_RECTANGLE, SHAPE_STROKE, type, vertex
 
Constructor Summary
PolyLine()
          Creates a new polyline having no points.
PolyLine(int n)
          Creates a new polyline having n points set to (0,0).
PolyLine(int[] v)
          Creates a new polyline having the specified points.
 
Method Summary
 String toString()
          Returns a string representation of this object.
 
Methods inherited from class com.livescribe.geom.Shape
contains, getBoundingBox, getNumberofVertices, getNumberOfVertices, getSize, getType, getUnion, getX, getXY, getY, intersectsWith, setVertexArray, setX, setXY, setXY, setY
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PolyLine

public PolyLine()
Creates a new polyline having no points.

The internal Shape.vertex array is set to null.


PolyLine

public PolyLine(int n)
Creates a new polyline having n points set to (0,0).

Parameters:
n - the number of points

PolyLine

public PolyLine(int[] v)
Creates a new polyline having the specified points. The array should contain an even number of elements.

Parameters:
v - the vertex array
Method Detail

toString

public String toString()
Returns a string representation of this object.

Overrides:
toString in class Shape
Returns:
a string representation of this object.

PenProfile 2.x

Copyright © 2010 Livescribe Inc. All Rights Reserved.
Confidential and subject to NDA.