|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
net.java.sip.communicator.impl.gui.main.chat.FontChooser
public class FontChooser
The FontChooserDialog is a dialog for font selection
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static int |
CANCEL_OPTION
|
static int |
OK_OPTION
|
protected int |
option
|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
FontChooser()
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
|
Color |
getFontColor()
Returns the font color |
String |
getFontFamily()
Returns the family name of the selected font |
int |
getFontSize()
Returns the size of the selected font |
boolean |
isBoldStyleSelected()
Checks if bold checkbox is selected |
boolean |
isItalicStyleSelected()
Checks if italic checkbox is selected |
boolean |
isUnderlineStyleSelected()
Checks if underline checkbox is selected |
void |
setBoldStyle(boolean b)
Enables the bold style |
void |
setColor(Color c)
Sets the font's color |
void |
setFontFamily(String family)
Sets the family name of the font |
void |
setFontSize(int size)
Sets the size of the font |
void |
setItalicStyle(boolean b)
Enables the italic style |
void |
setUnderlineStyle(boolean b)
Enables the underline style |
int |
showDialog(Component parent)
|
void |
valueChanged(ListSelectionEvent e)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int OK_OPTION
public static final int CANCEL_OPTION
protected int option
| Constructor Detail |
|---|
public FontChooser()
| Method Detail |
|---|
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void valueChanged(ListSelectionEvent e)
valueChanged in interface ListSelectionListenerpublic void setFontFamily(String family)
family - the family namepublic void setFontSize(int size)
size - public void setBoldStyle(boolean b)
b - TRUE enable - FALSE disablepublic void setItalicStyle(boolean b)
b - TRUE enable - FALSE disablepublic void setUnderlineStyle(boolean b)
b - TRUE enable - FALSE disablepublic void setColor(Color c)
c - the colorpublic String getFontFamily()
setFontFamily(java.lang.String)public int getFontSize()
setFontSize(int)public boolean isBoldStyleSelected()
public boolean isItalicStyleSelected()
public boolean isUnderlineStyleSelected()
public Color getFontColor()
public int showDialog(Component parent)
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||