com.partnersoft.maps.model
Class ImageStyle

java.lang.Object
  extended by 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

Field Summary
 java.lang.String name
           
 int offsetX
           
 int offsetY
           
 int rotationOffset
           
 
Constructor Summary
ImageStyle()
           
ImageStyle(Cog newState)
           
 
Method Summary
 java.lang.String getName()
          Name of style.
 int getOffsetX()
           
 int getOffsetY()
           
 int getRotationOffset()
           
 double getRotationOffsetRadians()
           
 double getScaleFactor()
           
 boolean getScaleToMap()
           
 javax.swing.Icon getThumbnailIcon(MapSet mapset)
          Icon used as a thumbnail in GUIs.
 boolean isValid()
           
 void setName(java.lang.String name)
           
 void setOffsetX(int offsetX)
           
 void setOffsetY(int offsetY)
           
 void setRotationOffset(int rotationOffset)
           
 void setScaleFactor(double scaleFactor)
           
 void setScaleToMap(boolean scaleToMap)
           
 Cog toCog()
          Returns the complete internal state of this object in the form of a Cog.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public java.lang.String name

rotationOffset

public int rotationOffset

offsetX

public int offsetX

offsetY

public int offsetY
Constructor Detail

ImageStyle

public ImageStyle()

ImageStyle

public ImageStyle(Cog newState)
Method Detail

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()