com.partnersoft.maps.model
Class TextStyle
java.lang.Object
com.partnersoft.maps.model.TextStyle
- All Implemented Interfaces:
- Coggable, Style
public class TextStyle
- extends java.lang.Object
- implements Style, Coggable
A visual styling for a text.
Copyright 2003 Partner Software, Inc.
- Version:
- $Id: TextStyle.java 2474 2010-03-13 14:28:43Z 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
fontName
public java.lang.String fontName
fontSize
public int fontSize
fontStyle
public java.lang.String fontStyle
textColorName
public java.lang.String textColorName
backgroundColorName
public java.lang.String backgroundColorName
textAlignment
public java.lang.String textAlignment
rotationOffset
public int rotationOffset
pixelOffsetX
public int pixelOffsetX
pixelOffsetY
public int pixelOffsetY
lineStyle
public java.lang.String lineStyle
decoratorShape
public java.lang.String decoratorShape
color
public transient int color
redf
public transient float redf
greenf
public transient float greenf
bluef
public transient float bluef
alphaf
public transient float alphaf
backgroundColor
public transient int backgroundColor
fontSpec
public transient FontSpecification fontSpec
alignmentCode
public transient int alignmentCode
font
public transient OpenglFontHandle font
icon
public transient javax.swing.Icon icon
TextStyle
public TextStyle()
TextStyle
public TextStyle(Cog newState)
getGLKey
public java.lang.String getGLKey()
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
setTextColorName
public void setTextColorName(java.lang.String newName)
setBackgroundColorName
public void setBackgroundColorName(java.lang.String newName)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getName
public java.lang.String getName()
- Description copied from interface:
Style
- Name of style.
- Specified by:
getName in interface Style
- Returns:
- name
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
getDecoratorShape
public java.lang.String getDecoratorShape()
getLineStyle
public java.lang.String getLineStyle()
getFontName
public java.lang.String getFontName()
setFontName
public void setFontName(java.lang.String fontName)
getFontSize
public int getFontSize()
setFontSize
public void setFontSize(int fontSize)
getFontStyle
public java.lang.String getFontStyle()
setFontStyle
public void setFontStyle(java.lang.String fontStyle)
getTextAlignment
public java.lang.String getTextAlignment()
setTextAlignment
public void setTextAlignment(java.lang.String textAlignment)
getRotationOffset
public int getRotationOffset()
setRotationOffset
public void setRotationOffset(int rotationOffset)
getPixelOffsetX
public int getPixelOffsetX()
setPixelOffsetX
public void setPixelOffsetX(int pixelOffsetX)
getPixelOffsetY
public int getPixelOffsetY()
setPixelOffsetY
public void setPixelOffsetY(int pixelOffsetY)
getTextColorName
public java.lang.String getTextColorName()
setName
public void setName(java.lang.String name)
setLineStyle
public void setLineStyle(java.lang.String lineStyle)
setDecoratorShape
public void setDecoratorShape(java.lang.String decoratorShape)
getBackgroundColorName
public java.lang.String getBackgroundColorName()
getRotationOffsetRadians
public double getRotationOffsetRadians()
getRotationOffsetByte
public int getRotationOffsetByte()