public abstract class KMLAbstractStyleSelector extends KMLAbstractObject
MSG_BOX_CHANGED, MSG_GEOMETRY_CHANGED, MSG_LINK_CHANGED, MSG_STYLE_CHANGED, MSG_TIME_CHANGED, MSG_VIEW_CHANGED
CHARACTERS_CONTENT, fields, namespaceURI, parent
Modifier | Constructor and Description |
---|---|
protected |
KMLAbstractStyleSelector(java.lang.String namespaceURI)
Construct an instance.
|
Modifier and Type | Method and Description |
---|---|
protected static void |
markUnresolved(boolean tf,
KMLAbstractSubStyle subStyle)
Marks a sub-style to indicate that a style URL associated with it has not yet been resolved, or removes the mark
if the style URL has been resolved.
|
static KMLAbstractSubStyle |
mergeSubStyles(KMLStyleUrl styleUrl,
KMLAbstractStyleSelector styleSelector,
java.lang.String styleState,
KMLAbstractSubStyle subStyle)
Obtains the selector's effective style for a specified style type (IconStyle, ListStyle, etc.) and
state (normal or highlight).
|
static KMLAbstractSubStyle |
mergeSubStyles(KMLStyleUrl styleUrl,
java.util.List<KMLAbstractStyleSelector> styleSelectors,
java.lang.String styleState,
KMLAbstractSubStyle subStyle)
Obtains the selector's effective style for a specified style type (IconStyle, ListStyle, etc.) and
state (normal or highlight).
|
applyChange, 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, setField, setFields, setNamespaceURI, setParent
protected KMLAbstractStyleSelector(java.lang.String namespaceURI)
namespaceURI
- the qualifying namespace URI. May be null to indicate no namespace qualification.protected static void markUnresolved(boolean tf, KMLAbstractSubStyle subStyle)
tf
- true to indicate an unresolved style URL, otherwise false.subStyle
- the sub-style to mark.public static KMLAbstractSubStyle mergeSubStyles(KMLStyleUrl styleUrl, KMLAbstractStyleSelector styleSelector, java.lang.String styleState, KMLAbstractSubStyle subStyle)
Remote styleUrls that have not yet been resolved are not included in the result. In this case the returned
sub-style is marked with the value AVKey.UNRESOLVED
.
styleUrl
- an applicable style URL. May be null.styleSelector
- the KMLAbstractStyleSelector
to consider when determining
the effective attributes. May be null, in which case only the specified
styleUrl
is considered.styleState
- the style mode, either \"normal\" or \"highlight\".subStyle
- an instance of the KMLAbstractSubStyle
class desired,
such as KMLIconStyle
. The effective style values are
accumulated and merged into this instance. The instance should not be one from within the
KML document because its values may be overridden and augmented. The instance specified is
the return value of this method.subStyle
parameter.java.lang.IllegalArgumentException
- if the sub-style parameter is null.public static KMLAbstractSubStyle mergeSubStyles(KMLStyleUrl styleUrl, java.util.List<KMLAbstractStyleSelector> styleSelectors, java.lang.String styleState, KMLAbstractSubStyle subStyle)
Remote styleUrls that have not yet been resolved are not included in the result. In this case the returned
sub-style is marked with a field named AVKey.UNRESOLVED
. The same is true when
a StyleMap refers to a Style other than one internal to the KML document.
styleUrl
- an applicable style URL. May be null.styleSelectors
- a list of KMLAbstractStyleSelector
s to consider when
determining the effective attributes. May be null, in which case only the specified
styleUrl
is considered.styleState
- the style mode, either \"normal\" or \"highlight\".subStyle
- an instance of the KMLAbstractSubStyle
class desired,
such as KMLIconStyle
. The effective style values are
accumulated and merged into this instance. The instance should not be one from within the
KML document because its values may be overridden and augmented. The instance specified is
the return value of this method.subStyle
argument.java.lang.IllegalArgumentException
- if the sub-style parameter is null.