Package com.ribs.plus

Class RJFontPanel

java.lang.Object
com.ribs.plus.RJFontPanel

public class RJFontPanel extends 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.
  • Constructor Details

    • RJFontPanel

      public RJFontPanel()
      Creates a new font panel.
  • Method Details

    • getShared

      public static RJFontPanel getShared()
      Returns the shared instance of the font panel.
    • getFont

      public Font getFont()
      Returns the currently selected font.
    • setFont

      public void setFont(Font aFont)
      Sets the currently selected font.
    • getModel

      public RJFontPanel.FPModel getModel()
      Returns the Font Panel Model.
    • setModel

      public void setModel(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(Object anObj)
      Called by the GUI panel controls to change the current selection.