com.partnersoft.maps.model
Class TextStyle

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

Field Summary
 int alignmentCode
           
 float alphaf
           
 int backgroundColor
           
 java.lang.String backgroundColorName
           
 float bluef
           
 int color
           
 java.lang.String decoratorShape
           
 OpenglFontHandle font
           
 java.lang.String fontName
           
 int fontSize
           
 FontSpecification fontSpec
           
 java.lang.String fontStyle
           
 float greenf
           
 javax.swing.Icon icon
           
 java.lang.String lineStyle
           
 java.lang.String name
           
 int pixelOffsetX
           
 int pixelOffsetY
           
 float redf
           
 int rotationOffset
           
 java.lang.String textAlignment
           
 java.lang.String textColorName
           
 
Constructor Summary
TextStyle()
           
TextStyle(Cog newState)
           
 
Method Summary
 java.lang.String getBackgroundColorName()
           
 java.lang.String getDecoratorShape()
           
 java.lang.String getFontName()
           
 int getFontSize()
           
 java.lang.String getFontStyle()
           
 java.lang.String getGLKey()
           
 java.lang.String getLineStyle()
           
 java.lang.String getName()
          Name of style.
 int getPixelOffsetX()
           
 int getPixelOffsetY()
           
 int getRotationOffset()
           
 int getRotationOffsetByte()
           
 double getRotationOffsetRadians()
           
 java.lang.String getTextAlignment()
           
 java.lang.String getTextColorName()
           
 javax.swing.Icon getThumbnailIcon(MapSet mapset)
          Icon used as a thumbnail in GUIs.
 void setBackgroundColorName(java.lang.String newName)
           
 void setDecoratorShape(java.lang.String decoratorShape)
           
 void setFontName(java.lang.String fontName)
           
 void setFontSize(int fontSize)
           
 void setFontStyle(java.lang.String fontStyle)
           
 void setLineStyle(java.lang.String lineStyle)
           
 void setName(java.lang.String name)
           
 void setPixelOffsetX(int pixelOffsetX)
           
 void setPixelOffsetY(int pixelOffsetY)
           
 void setRotationOffset(int rotationOffset)
           
 void setTextAlignment(java.lang.String textAlignment)
           
 void setTextColorName(java.lang.String newName)
           
 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

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
Constructor Detail

TextStyle

public TextStyle()

TextStyle

public TextStyle(Cog newState)
Method Detail

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