public class ImageStyle extends AbstractStyle
Copyright 2003-2009 Partner Software, Inc.
| Modifier and Type | Field and Description |
|---|---|
int |
offsetX |
int |
offsetY |
int |
rotationOffset |
| Constructor and Description |
|---|
ImageStyle() |
ImageStyle(Cog newState) |
| Modifier and Type | Method and Description |
|---|---|
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 |
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() |
getName, isNotPrinted, setName, setNotPrinted, toIcon, toIconpublic int rotationOffset
public int offsetX
public int offsetY
public ImageStyle()
public ImageStyle(Cog newState)
public Cog toCog()
CoggableCog.toCog in interface CoggabletoCog in class AbstractStylepublic boolean isValid()
public java.lang.String toString()
toString in class java.lang.Objectpublic int getRotationOffset()
public void setRotationOffset(int rotationOffset)
public int getOffsetX()
public void setOffsetX(int offsetX)
public int getOffsetY()
public void setOffsetY(int offsetY)
public double getScaleFactor()
public void setScaleFactor(double scaleFactor)
public boolean getScaleToMap()
public void setScaleToMap(boolean scaleToMap)
public javax.swing.Icon getThumbnailIcon(MapSet mapset)
Stylemapset - - The mapset containing this style and any decorator styles.public double getRotationOffsetRadians()