abstract class GeometryNode extends GeometricObjectNode
Modifier and Type | Field and Description |
---|---|
protected java.util.List<GeometricObjectNode> |
children |
protected GeometryContext |
context |
private boolean |
isLeaf |
index, text
Constructor and Description |
---|
GeometryNode(Geometry geom,
GeometryContext context) |
GeometryNode(Geometry geom,
int size,
java.lang.String tag,
GeometryContext context) |
Modifier and Type | Method and Description |
---|---|
private static double |
area(Geometry geom) |
static GeometryNode |
create(Geometry geom,
GeometryContext context) |
protected abstract void |
fillChildren() |
private static java.lang.String |
geometryText(Geometry geom,
int size,
java.lang.String tag) |
GeometricObjectNode |
getChildAt(int index) |
int |
getChildCount() |
javax.swing.ImageIcon |
getIcon() |
int |
getIndexOfChild(GeometricObjectNode child) |
private static boolean |
hasArea(Geometry geom) |
private static boolean |
hasLength(Geometry geom) |
boolean |
isLeaf() |
private void |
populateChildren()
Lazily creates child nodes
|
getGeometry, getText, indexString, setIndex, sizeString
protected GeometryContext context
private boolean isLeaf
protected java.util.List<GeometricObjectNode> children
public GeometryNode(Geometry geom, GeometryContext context)
public GeometryNode(Geometry geom, int size, java.lang.String tag, GeometryContext context)
public static GeometryNode create(Geometry geom, GeometryContext context)
private static java.lang.String geometryText(Geometry geom, int size, java.lang.String tag)
private static double area(Geometry geom)
private static boolean hasArea(Geometry geom)
private static boolean hasLength(Geometry geom)
public boolean isLeaf()
isLeaf
in class GeometricObjectNode
public javax.swing.ImageIcon getIcon()
getIcon
in class GeometricObjectNode
public GeometricObjectNode getChildAt(int index)
getChildAt
in class GeometricObjectNode
public int getChildCount()
getChildCount
in class GeometricObjectNode
public int getIndexOfChild(GeometricObjectNode child)
getIndexOfChild
in class GeometricObjectNode
private void populateChildren()
protected abstract void fillChildren()