SRJRCFrames
v0.1.296

de.schwarzrot.ui.control.model
Class FontSelectionModel

java.lang.Object
  extended by de.schwarzrot.ui.control.model.FontSelectionModel
Direct Known Subclasses:
FontSelectionAdapter

public class FontSelectionModel
extends Object

a model for font selection. A Font consists of 3 main properties:

This model allows the change of each property independantly of the others and access to the combined result getSelectedFont().

Author:
Reinhard Mantey

Field Summary
protected  ChangeEvent changeEvent
           
protected  EventListenerList listenerList
           
 
Constructor Summary
FontSelectionModel()
           
 
Method Summary
 void addChangeListener(ChangeListener cl)
           
 void fireStateChanged()
           
 ChangeListener[] getChangeListeners()
           
 String getFontName()
           
 int getFontSize()
           
 int getFontStyle()
           
 String getSampleText()
           
 Font getSelectedFont()
           
 void removeChangeListener(ChangeListener cl)
           
 void setFontName(String newFontName)
           
 void setFontSize(int newFontSize)
           
 void setFontStyle(int newFontStyle)
           
 void setSampleText(String newSampleText)
           
 void updateFont()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

changeEvent

protected transient ChangeEvent changeEvent

listenerList

protected EventListenerList listenerList
Constructor Detail

FontSelectionModel

public FontSelectionModel()
Method Detail

addChangeListener

public void addChangeListener(ChangeListener cl)

fireStateChanged

public void fireStateChanged()

getChangeListeners

public ChangeListener[] getChangeListeners()

getFontName

public String getFontName()

getFontSize

public int getFontSize()

getFontStyle

public int getFontStyle()

getSampleText

public String getSampleText()

getSelectedFont

public Font getSelectedFont()

removeChangeListener

public void removeChangeListener(ChangeListener cl)

setFontName

public void setFontName(String newFontName)

setFontSize

public void setFontSize(int newFontSize)

setFontStyle

public void setFontStyle(int newFontStyle)

setSampleText

public void setSampleText(String newSampleText)

updateFont

public void updateFont()

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
Submit a bug or request a feature

SRJRCFrames is published according to the GNU General Public License
Copyright 2005-2012 Reinhard Mantey - some rights reserved.