Package com.ribs.plus
Class RJFontPanel
- java.lang.Object
-
- com.ribs.plus.RJFontPanel
-
public class RJFontPanel extends java.lang.Object
This class is a Swing/Ribs Font panel for selecting fonts. It lets the user easily select a font family, font size and font style (bold, italic, underline, outline). It also has a convenient slider for interactively changing the size and a text field for specificly setting a size. In addition, there is a pick list that shows all the individual fonts available for a given family.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
RJFontPanel.FPModel
An interface for Font Panel Model.
-
Constructor Summary
Constructors Constructor Description RJFontPanel()
Creates a new font panel.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Font
getFont()
Returns the currently selected font.RJFontPanel.FPModel
getModel()
Returns the Font Panel Model.static RJFontPanel
getShared()
Returns the shared instance of the font panel.RJPanel
getUI()
Returns the Swing UI panel.boolean
isVisible()
Returns whether color panel ui window is visible.void
resetUI()
Called by Ribs to reset the UI from the current selection.void
respondUI(java.lang.Object anObj)
Called by the GUI panel controls to change the current selection.void
setFont(java.awt.Font aFont)
Sets the currently selected font.void
setModel(java.lang.Object aModel)
Sets the Font panel model.void
setVisible(boolean aValue)
Sets the color panel visible (true==onscreen, false==offscreen).
-
-
-
Method Detail
-
getShared
public static RJFontPanel getShared()
Returns the shared instance of the font panel.
-
getFont
public java.awt.Font getFont()
Returns the currently selected font.
-
setFont
public void setFont(java.awt.Font aFont)
Sets the currently selected font.
-
getModel
public RJFontPanel.FPModel getModel()
Returns the Font Panel Model.
-
setModel
public void setModel(java.lang.Object aModel)
Sets the Font panel model.
-
isVisible
public boolean isVisible()
Returns whether color panel ui window is visible.
-
setVisible
public void setVisible(boolean aValue)
Sets the color panel visible (true==onscreen, false==offscreen).
-
getUI
public RJPanel getUI()
Returns the Swing UI panel.
-
resetUI
public void resetUI()
Called by Ribs to reset the UI from the current selection.
-
respondUI
public void respondUI(java.lang.Object anObj)
Called by the GUI panel controls to change the current selection.
-
-