com.partnersoft.maps.model
Class ImageStyle
java.lang.Object
com.partnersoft.maps.model.ImageStyle
- All Implemented Interfaces:
- Coggable, Style
public class ImageStyle
- extends java.lang.Object
- implements Style, Coggable
A visual styling for an image object.
Copyright 2003-2009 Partner Software, Inc.
- Version:
- $Id: PointStyle.java 2055 2009-08-26 14:05:38Z paul $
- Author:
- Paul Reavis
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
name
public java.lang.String name
rotationOffset
public int rotationOffset
offsetX
public int offsetX
offsetY
public int offsetY
ImageStyle
public ImageStyle()
ImageStyle
public ImageStyle(Cog newState)
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
isValid
public boolean isValid()
getName
public java.lang.String getName()
- Description copied from interface:
Style
- Name of style.
- Specified by:
getName in interface Style
- Returns:
- name
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getRotationOffset
public int getRotationOffset()
setRotationOffset
public void setRotationOffset(int rotationOffset)
getOffsetX
public int getOffsetX()
setOffsetX
public void setOffsetX(int offsetX)
getOffsetY
public int getOffsetY()
setOffsetY
public void setOffsetY(int offsetY)
setName
public void setName(java.lang.String name)
getScaleFactor
public double getScaleFactor()
setScaleFactor
public void setScaleFactor(double scaleFactor)
getScaleToMap
public boolean getScaleToMap()
setScaleToMap
public void setScaleToMap(boolean scaleToMap)
getThumbnailIcon
public javax.swing.Icon getThumbnailIcon(MapSet mapset)
- Description copied from interface:
Style
- Icon used as a thumbnail in GUIs.
- Specified by:
getThumbnailIcon in interface Style
- Parameters:
mapset - - The mapset containing this style and any decorator styles.
- Returns:
- small icon for display in GUIs
getRotationOffsetRadians
public double getRotationOffsetRadians()