com.hardcode.gdbms.engine.spatial
Class ClosedGeneralPath

java.lang.Object
  extended by com.hardcode.gdbms.engine.spatial.GeneralPath
      extended by com.hardcode.gdbms.engine.spatial.ClosedGeneralPath
All Implemented Interfaces:
java.awt.Shape, java.lang.Cloneable

public class ClosedGeneralPath
extends GeneralPath


Field Summary
 
Fields inherited from class com.hardcode.gdbms.engine.spatial.GeneralPath
numTypes, pointCoords, pointTypes, SEG_CLOSE, SEG_CUBICTO, SEG_LINETO, SEG_MOVETO, SEG_QUADTO, singleGeometry, WIND_EVEN_ODD, WIND_NON_ZERO
 
Constructor Summary
ClosedGeneralPath()
           
 
Method Summary
 void append(java.awt.geom.PathIterator pi, boolean connect)
          Appends the geometry of the specified PathIterator object to the path, possibly connecting the new geometry to the existing path segments with a line segment.
 void changeVertexOrder()
           
 void closePath()
          Closes the current subpath by drawing a straight line back to the coordinates of the last moveTo.
static ClosedGeneralPath[] getParts(java.awt.geom.PathIterator pathIterator)
           
 SnapPoint[] getSnapPoints()
           
 boolean isCCW()
           
 void lineTo(double x, double y)
          Adds a point to the path by drawing a straight line from the current coordinates to the new specified coordinates.
 void moveTo(double x, double y)
          Adds a point to the path by moving to the specified coordinates.
 void reset()
          Resets the path to empty.
 
Methods inherited from class com.hardcode.gdbms.engine.spatial.GeneralPath
append, clone, closePath, contains, contains, contains, contains, createTransformedShape, curveTo, doHashCode, getBounds, getBounds2D, getCurrentPoint, getHandlerPoints, getJTSGeometry, getPathIterator, getPathIterator, getWindingRule, intersects, intersects, isSingleGeometry, quadTo, setSingleGeometry, setWindingRule, transform
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClosedGeneralPath

public ClosedGeneralPath()
Method Detail

lineTo

public void lineTo(double x,
                   double y)
Description copied from class: GeneralPath
Adds a point to the path by drawing a straight line from the current coordinates to the new specified coordinates.

Overrides:
lineTo in class GeneralPath
Parameters:
x - the specified coordinates
y - DOCUMENT ME!

append

public void append(java.awt.geom.PathIterator pi,
                   boolean connect)
Description copied from class: GeneralPath
Appends the geometry of the specified PathIterator object to the path, possibly connecting the new geometry to the existing path segments with a line segment. If the connect parameter is true and the path is not empty then any initial moveTo in the geometry of the appended Shape is turned into a lineTo segment. If the destination coordinates of such a connecting lineTo segment match the ending coordinates of a currently open subpath then the segment is omitted as superfluous. The winding rule of the specified Shape is ignored and the appended geometry is governed by the winding rule specified for this path.

Overrides:
append in class GeneralPath
Parameters:
pi - the PathIterator whose geometry is appended to this path
connect - a boolean to control whether or not to turn an initial moveTo segment into a lineTo segment to connect the new geometry to the existing path

moveTo

public void moveTo(double x,
                   double y)
Description copied from class: GeneralPath
Adds a point to the path by moving to the specified coordinates.

Overrides:
moveTo in class GeneralPath
Parameters:
x - the specified coordinates
y - DOCUMENT ME!

isCCW

public boolean isCCW()

changeVertexOrder

public void changeVertexOrder()

closePath

public void closePath()
Description copied from class: GeneralPath
Closes the current subpath by drawing a straight line back to the coordinates of the last moveTo. If the path is already closed then this method has no effect.

Overrides:
closePath in class GeneralPath

reset

public void reset()
Description copied from class: GeneralPath
Resets the path to empty. The append position is set back to the beginning of the path and all coordinates and point types are forgotten.

Overrides:
reset in class GeneralPath

getParts

public static ClosedGeneralPath[] getParts(java.awt.geom.PathIterator pathIterator)

getSnapPoints

public SnapPoint[] getSnapPoints()
Overrides:
getSnapPoints in class GeneralPath


Copyright © 2005-2006 . All Rights Reserved.