public class KMLStyle extends KMLAbstractStyleSelector
MSG_BOX_CHANGED, MSG_GEOMETRY_CHANGED, MSG_LINK_CHANGED, MSG_STYLE_CHANGED, MSG_TIME_CHANGED, MSG_VIEW_CHANGED
CHARACTERS_CONTENT, fields, namespaceURI, parent
Constructor and Description |
---|
KMLStyle(String namespaceURI)
Construct an instance.
|
Modifier and Type | Method and Description |
---|---|
void |
applyChange(KMLAbstractObject sourceValues) |
KMLBalloonStyle |
getBaloonStyle() |
KMLIconStyle |
getIconStyle() |
KMLLabelStyle |
getLabelStyle() |
KMLLineStyle |
getLineStyle() |
KMLListStyle |
getListStyle() |
KMLPolyStyle |
getPolyStyle() |
KMLAbstractSubStyle |
mergeSubStyle(KMLAbstractSubStyle subStyle)
Adds the sub-style fields of a specified sub-style to this one's fields if they don't already exist.
|
void |
setField(String keyName,
Object value)
Overridden to handle deprecated
labelColor field. |
markUnresolved, mergeSubStyles, mergeSubStyles
getId, getRoot, getTargetId, onChange, onMessage
allocate, doAddCharacters, doAddEventAttribute, doAddEventContent, doParseEventAttributes, doParseEventContent, freeResources, getAConstructor, getCharacters, getField, getField, getFields, getNamespaceURI, getParent, hasField, hasField, hasFields, mergeFields, newInstance, overrideFields, parse, parseCharacterContent, removeField, setField, setFields, setNamespaceURI, setParent
public KMLStyle(String namespaceURI)
namespaceURI
- the qualifying namespace URI. May be null to indicate no namespace qualification.public void applyChange(KMLAbstractObject sourceValues)
applyChange
in class KMLAbstractObject
public KMLBalloonStyle getBaloonStyle()
public KMLIconStyle getIconStyle()
public KMLLabelStyle getLabelStyle()
public KMLLineStyle getLineStyle()
public KMLListStyle getListStyle()
public KMLPolyStyle getPolyStyle()
public KMLAbstractSubStyle mergeSubStyle(KMLAbstractSubStyle subStyle)
subStyle
- the sub-style to merge with this one.IllegalArgumentException
- if the sub-style parameter is null.public void setField(String keyName, Object value)
labelColor
field. The labelColor
field is
deprecated, and has been replaced by LabelStyle
. If labelColor
is set this method will apply the
color to the LabelStyle
, creating a new LabelStyle
if necessary.setField
in class AbstractXMLEventParser