public class IlvMapDynamicStyle extends Object implements IlvPersistentObject, Comparable<IlvMapDynamicStyle>
IlvMapStyle
and a scale. This class is to be used with a IlvMapStyleController
that manages the selection of styles at the given scale.Constructor and Description |
---|
IlvMapDynamicStyle(double scale,
IlvMapStyle style,
String name)
Creates a new
IlvMapStyleAtScale instance for a given scale. |
IlvMapDynamicStyle(IlvInputStream stream)
Reads this dynamic style from an
IlvInputStream . |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(IlvMapDynamicStyle t)
Compares the order of this object with the specified object.
|
String |
getName()
Returns the name of the style.
|
double |
getScale()
Returns the scale at which the theme will be applied.
|
IlvMapStyle |
getStyle()
Returns the style for this theme.
|
void |
setName(String name)
Sets the name of the style.
|
void |
setScale(double scale)
Sets the scale at which the theme will be applied.
|
void |
setStyle(IlvMapStyle style)
Sets the style for this theme.
|
void |
write(IlvOutputStream stream)
Writes the attributes of a persistent object.
|
public IlvMapDynamicStyle(IlvInputStream stream) throws IlvReadFileException
IlvInputStream
.stream
- The stream to read from.IlvReadFileException
- if there is a problem reading from
stream
.public IlvMapDynamicStyle(double scale, IlvMapStyle style, String name)
IlvMapStyleAtScale
instance for a given scale.scale
- The scale activating the style.style
- The style to be set when the scale is reached.name
- The name of the object.public void write(IlvOutputStream stream) throws IOException
write
in interface IlvPersistentObject
stream
- the output streamIOException
- thrown when an exception occurs during
the write operation for this object.IlvPersistentObject.write(ilog.views.io.IlvOutputStream)
public void setStyle(IlvMapStyle style)
style
- The style for this theme.public IlvMapStyle getStyle()
public String getName()
public void setName(String name)
name
- The name of the style.public double getScale()
public void setScale(double scale)
scale
- The scale at which the theme will be applied.public int compareTo(IlvMapDynamicStyle t)
compareTo
in interface Comparable<IlvMapDynamicStyle>
t
- The object to compare with this IlvMapDynamicStyle
instance.0
is returned.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.