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, sizeStringprotected 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 GeometricObjectNodepublic javax.swing.ImageIcon getIcon()
getIcon in class GeometricObjectNodepublic GeometricObjectNode getChildAt(int index)
getChildAt in class GeometricObjectNodepublic int getChildCount()
getChildCount in class GeometricObjectNodepublic int getIndexOfChild(GeometricObjectNode child)
getIndexOfChild in class GeometricObjectNodeprivate void populateChildren()
protected abstract void fillChildren()