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 interface
An 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 RJFontPanel
Returns the shared instance of the font panel.getUI()
Returns the Swing UI panel.boolean
Returns whether color panel ui window is visible.void
resetUI()
Called by Ribs to reset the UI from the current selection.void
Called by the GUI panel controls to change the current selection.void
Sets the currently selected font.void
Sets the Font panel model.void
setVisible
(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.