public class

KmlNode

extends Object
java.lang.Object
   ↳ com.esri.core.map.ogc.kml.KmlNode

Class Overview

A KmlNode represents a KML Feature or Geometry which could be a folder, placemark, line, polygon, screen overlay, ground overlay etc.. A KML node may or may not have child nodes depending upon its type. Certain properties of a node only relate to nodes of a certain type. For Example KML nodes with defined graphic type will have a center and out bound envelope.

Summary

Nested Classes
class KmlNode.BalloonStyle Specifies the properties of this KML node's balloon popup. 
enum KmlNode.GraphicType KmlNode graphic type 
enum KmlNode.ListItemType ListItemType specifies how a Feature is displayed in the list view or Table of content. 
class KmlNode.NodeIcon Represents the KML node icon. 
enum KmlNode.Type KmlNode type 
Public Constructors
KmlNode()
Public Methods
static KmlNode fromJson(JsonParser parser)
For internal use only
KmlNode.BalloonStyle getBalloonStyle()
Returns the balloon style for the node.
Point getCenter()
Returns the projected center point of the node.
List<KmlNode> getChildNodes()
Returns a list of child nodes for this KML node.
int getChildNodesCount()
Returns the total number of child nodes for this KML node.
int getColor()
Returns the icon data of the node.
Envelope getDefaultExtent()
Returns the original extent of the node in WGS84.
Envelope getExtent()
Returns the projected extent of the node.
KmlNode.GraphicType getGraphicType()
Returns graphic type of the node.
long getHandle()
For internal use only.
KmlNode.NodeIcon getIcon()
Returns a node icon data object.
long getId()
Returns the unique identifier for the node.
KmlNode.ListItemType getListItemType()
Returns the ListItemType that specifies how the node is displayed in a table of contents.
String getName()
Returns the name of the KML node or null.
KmlNode.Type getType()
Returns the node type.
boolean hasChildNode()
Returns whether this node has child nodes or not.
boolean isPartiallyVisible()
Indicates the partial visibility of the node.
boolean isSelected()
Indicates if the node is selected or not.
boolean isVisible()
Indicates the visibility of the node.
void setVisible(boolean visible)
Sets the visibility of the node.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public KmlNode ()

Public Methods

public static KmlNode fromJson (JsonParser parser)

For internal use only

Parameters
parser JsonParser: Json parser
Returns
KmlNode a Kml node
Throws
Exception when parsing fails.

public KmlNode.BalloonStyle getBalloonStyle ()

Returns the balloon style for the node.

Returns
KmlNode.BalloonStyle BalloonStyle

public Point getCenter ()

Returns the projected center point of the node. Null is returned if the node doesn't has a valid geometry, such as folder node, or screen overlay.

Returns
Point the center point of the node.

public List<KmlNode> getChildNodes ()

Returns a list of child nodes for this KML node.

Returns
List<KmlNode> a list of child nodes.

public int getChildNodesCount ()

Returns the total number of child nodes for this KML node.

Returns
int integer

public int getColor ()

Returns the icon data of the node.

Returns
int color integer in ARGB format

public Envelope getDefaultExtent ()

Returns the original extent of the node in WGS84.

Returns
Envelope the default extent of the node.

public Envelope getExtent ()

Returns the projected extent of the node. Null is returned if the node doesn't has a valid geometry, such as folder node, or screen overlay.

Returns
Envelope the extent of the node.

public KmlNode.GraphicType getGraphicType ()

Returns graphic type of the node.

Returns
KmlNode.GraphicType KmlNode.GraphicType

public long getHandle ()

For internal use only.

Returns
long long

public KmlNode.NodeIcon getIcon ()

Returns a node icon data object.

Returns
KmlNode.NodeIcon the icon of the kml node.

public long getId ()

Returns the unique identifier for the node.

Returns
long long

public KmlNode.ListItemType getListItemType ()

Returns the ListItemType that specifies how the node is displayed in a table of contents.

Returns
KmlNode.ListItemType ListItemType

public String getName ()

Returns the name of the KML node or null.

Returns
String String

public KmlNode.Type getType ()

Returns the node type.

Returns
KmlNode.Type the node type

public boolean hasChildNode ()

Returns whether this node has child nodes or not.

Returns
boolean true if this node has child node.

public boolean isPartiallyVisible ()

Indicates the partial visibility of the node. A node is considered partially visible if some of its child nodes are visible and some are not.

Returns
boolean boolean

public boolean isSelected ()

Indicates if the node is selected or not.

Returns
boolean boolean true if the KML node is selected, otherwise false.

public boolean isVisible ()

Indicates the visibility of the node.

Returns
boolean boolean

public void setVisible (boolean visible)

Sets the visibility of the node.

Parameters
visible boolean: boolean

public String toString ()

Returns
String