|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.geom.Area
com.sun.electric.database.geometry.PolyQTree.PolyNode
public static class PolyQTree.PolyNode
Class to define a node in a Quad Tree of polygons.
Constructor Summary | |
---|---|
PolyQTree.PolyNode(java.awt.Shape shape)
|
Method Summary | |
---|---|
int |
compareTo(PolyQTree.PolyNode n1)
Compare objects based on area. |
boolean |
doesTouch(java.awt.geom.PathIterator opi)
|
boolean |
equals(java.lang.Object obj)
|
double |
getArea()
Calculates area |
double |
getMaxLength()
Method to calculate longest edge. |
double |
getPerimeter()
|
java.awt.geom.Point2D[] |
getPoints(boolean includeInitialPoint)
|
PolyBase |
getPolygon()
Method to get the polygon object. |
java.util.List |
getSortedLoops()
Sort list of objects based on area |
int |
hasCode()
Not to violate that equal objects must have equal hashcodes. |
boolean |
intersects(java.awt.geom.Area a)
Overwriting original for Area to consider touching polygons |
java.lang.String |
toString()
Returns a printable version of this PolyNode. |
Methods inherited from class java.awt.geom.Area |
---|
add, clone, contains, contains, contains, contains, createTransformedArea, equals, exclusiveOr, getBounds, getBounds2D, getPathIterator, getPathIterator, intersect, intersects, intersects, isEmpty, isPolygonal, isRectangular, isSingular, reset, subtract, transform |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.sun.electric.database.geometry.PolyNodeMerge |
---|
getBounds2D |
Constructor Detail |
---|
public PolyQTree.PolyNode(java.awt.Shape shape)
Method Detail |
---|
public int compareTo(PolyQTree.PolyNode n1)
compareTo
in interface java.lang.Comparable<PolyQTree.PolyNode>
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public PolyBase getPolygon()
PolyNodeMerge
getPolygon
in interface PolyNodeMerge
public int hasCode()
public double getMaxLength()
public java.awt.geom.Point2D[] getPoints(boolean includeInitialPoint)
includeInitialPoint
- public double getPerimeter()
public boolean doesTouch(java.awt.geom.PathIterator opi)
public double getArea()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean intersects(java.awt.geom.Area a)
public java.util.List getSortedLoops()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |