com.partnersoft.maps.model
Class Decoration
java.lang.Object
com.partnersoft.maps.model.Decoration
- All Implemented Interfaces:
- Coggable
- Direct Known Subclasses:
- LineDecoration, LineStyleSection
public abstract class Decoration
- extends java.lang.Object
- implements Coggable
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UNIT_MAP
public static final int UNIT_MAP
- See Also:
- Constant Field Values
UNIT_PIXELS
public static final int UNIT_PIXELS
- See Also:
- Constant Field Values
UNIT_PERCENT
public static final int UNIT_PERCENT
- See Also:
- Constant Field Values
UNIT_INCHES
public static final int UNIT_INCHES
- See Also:
- Constant Field Values
unitType
protected int unitType
interval
protected double interval
Decoration
public Decoration()
Decoration
public Decoration(Cog state)
toCog
public Cog toCog()
- Description copied from interface:
Coggable
- Returns the complete internal state of this object in the form of a
Cog.
- Specified by:
toCog in interface Coggable
- Returns:
- Cog representing the internal state of this object
createInterval
public double createInterval(double scale,
double lineLength)
- Parameters:
scale - of maplineLength - of entire polyline.
- Returns:
- the correct interval in map units based on the stored interval
and unitType
getUnitType
public int getUnitType()
- Returns:
- the integer flag for UNIT_MAP, UNIT_PIXELS, UNIT_PERCENT, or
UNIT_INCHES.
getInterval
public double getInterval()
setInterval
public void setInterval(double interval)
setUnitType
public void setUnitType(int unitType)