Package com.ribs.plus
Class RJFontPanel
- java.lang.Object
-
- com.ribs.plus.RJFontPanel
-
public class RJFontPanel extends java.lang.ObjectThis 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 interfaceRJFontPanel.FPModelAn 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.FontgetFont()Returns the currently selected font.RJFontPanel.FPModelgetModel()Returns the Font Panel Model.static RJFontPanelgetShared()Returns the shared instance of the font panel.RJPanelgetUI()Returns the Swing UI panel.booleanisVisible()Returns whether color panel ui window is visible.voidresetUI()Called by Ribs to reset the UI from the current selection.voidrespondUI(java.lang.Object anObj)Called by the GUI panel controls to change the current selection.voidsetFont(java.awt.Font aFont)Sets the currently selected font.voidsetModel(java.lang.Object aModel)Sets the Font panel model.voidsetVisible(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.
-
-