Package com.ribs.plus
Class RJFontPanel
java.lang.Object
com.ribs.plus.RJFontPanel
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 ClassesModifier and TypeClassDescriptionstatic interfaceAn interface for Font Panel Model. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFont()Returns the currently selected font.getModel()Returns the Font Panel Model.static RJFontPanelReturns the shared instance of the font panel.getUI()Returns the Swing UI panel.booleanReturns whether color panel ui window is visible.voidresetUI()Called by Ribs to reset the UI from the current selection.voidCalled by the GUI panel controls to change the current selection.voidSets the currently selected font.voidSets the Font panel model.voidsetVisible(boolean aValue) Sets the color panel visible (true==onscreen, false==offscreen).
-
Constructor Details
-
RJFontPanel
public RJFontPanel()Creates a new font panel.
-
-
Method Details
-
getFont
Returns the currently selected font. -
setFont
Sets the currently selected font. -
getModel
Returns the Font Panel Model. -
setModel
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
Returns the Swing UI panel. -
resetUI
public void resetUI()Called by Ribs to reset the UI from the current selection. -
respondUI
Called by the GUI panel controls to change the current selection.