org.geotools.swt.styling.simple
Class FontEditor

Object
  extended by FontEditor

public class FontEditor
extends Object

A "button" with an icon/text that pops up the font window.

Since:
0.6.0
Author:
aalam

Constructor Summary
FontEditor(Composite parent)
           
FontEditor(Composite parent, SelectionListener parentListener)
           
 
Method Summary
 void clearListener()
           
 Color getAWTColor()
           
 Button getButton()
           
 Color getColor()
           
 RGB getColorValue()
           
 Font getFont()
          Returns the currently selected font object
 FontData[] getFontList()
           
 void setColorValue(Color colour)
           
 void setColorValue(RGB rgb)
           
 void setEnabled(boolean enabled)
           
 void setFontList(FontData[] list)
           
 void setListener(SelectionListener parentListener)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontEditor

public FontEditor(Composite parent)

FontEditor

public FontEditor(Composite parent,
                  SelectionListener parentListener)
Method Detail

setListener

public void setListener(SelectionListener parentListener)

clearListener

public void clearListener()

getColor

public Color getColor()

getAWTColor

public Color getAWTColor()

getFont

public Font getFont()
Returns the currently selected font object

Returns:
Font

getFontList

public FontData[] getFontList()

setFontList

public void setFontList(FontData[] list)

getColorValue

public RGB getColorValue()

setColorValue

public void setColorValue(RGB rgb)

setColorValue

public void setColorValue(Color colour)

getButton

public Button getButton()

setEnabled

public void setEnabled(boolean enabled)


Copyright © 1996-2014 Geotools. All Rights Reserved.