Class FontPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class FontPanel extends EnabledJPanel
See Also:
  • Constructor Details

    • FontPanel

      public FontPanel(Font font)
  • Method Details

    • buildControls

      protected void buildControls()
    • updateSamplePanel

      protected void updateSamplePanel()
    • fontScaleCheckAction

      protected void fontScaleCheckAction()
    • setSelectedFont

      public void setSelectedFont(Font font)
      Parameters:
      font -
    • getSelectedFont

      public Font getSelectedFont()
    • useFontScaling

      public boolean useFontScaling()
    • getMinScalingSize

      public int getMinScalingSize()
    • getMaxScalingSize

      public int getMaxScalingSize()
    • setUseFontScaling

      public void setUseFontScaling(boolean useIt)
    • setMinScalingSize

      public void setMinScalingSize(int size)
    • setMaxScalingSize

      public void setMaxScalingSize(int size)
    • setSamplePanel

      public void setSamplePanel(JPanel samplePanel)
      Parameters:
      samplePanel -
    • setFontColor

      public void setFontColor(Color textColor)
      Parameters:
      textColor -
    • getFontColor

      public Color getFontColor()
      Returns:
    • setEnabled

      public void setEnabled(boolean enabled)
      Description copied from class: EnabledJPanel
      Sets whether or not this component is enabled. A component that is enabled may respond to user input, while a component that is not enabled cannot respond to user input. Some components may alter their visual representation when they are disabled in order to provide feedback to the user that they cannot take input.

      Note: Disabling this component also disables it's immediate children.

      Note: Disabling a lightweight component does not prevent it from receiving MouseEvents.

      Overrides:
      setEnabled in class EnabledJPanel
      Parameters:
      enabled - true if this component should be enabled, false otherwise
      See Also:
    • setMinimumFontSize

      public void setMinimumFontSize(int minFontSize)
    • setMaximumFontSize

      public void setMaximumFontSize(int maxFontSize)
    • setFontScalingAvailable

      public void setFontScalingAvailable(boolean available)
      Hides and shows the Font Scaling options.
      Parameters:
      available -