Class FlatThemeEditorOverlay

  • All Implemented Interfaces:
    java.io.Serializable

    class FlatThemeEditorOverlay
    extends javax.swing.plaf.LayerUI<FlatSyntaxTextArea>
    An overlay layer that paints additional information about line content on the right side.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.awt.Font baseFont  
      private static int COLOR_PREVIEW_WIDTH  
      private java.awt.Font font  
      (package private) static boolean showHSL  
      (package private) static boolean showLuma  
      (package private) static boolean showRGB  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.awt.Color getColorInLine​(FlatSyntaxTextArea textArea, int line)  
      void paint​(java.awt.Graphics g, javax.swing.JComponent c)  
      • Methods inherited from class javax.swing.plaf.LayerUI

        addPropertyChangeListener, addPropertyChangeListener, applyPropertyChange, doLayout, eventDispatched, firePropertyChange, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, imageUpdate, installUI, paintImmediately, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removePropertyChangeListener, removePropertyChangeListener, uninstallUI, updateUI
      • Methods inherited from class javax.swing.plaf.ComponentUI

        contains, createUI, getAccessibleChild, getAccessibleChildrenCount, update
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • showHSL

        static boolean showHSL
      • showRGB

        static boolean showRGB
      • showLuma

        static boolean showLuma
      • font

        private java.awt.Font font
      • baseFont

        private java.awt.Font baseFont
    • Constructor Detail

      • FlatThemeEditorOverlay

        FlatThemeEditorOverlay()
    • Method Detail

      • paint

        public void paint​(java.awt.Graphics g,
                          javax.swing.JComponent c)
        Overrides:
        paint in class javax.swing.plaf.LayerUI<FlatSyntaxTextArea>
      • getColorInLine

        private java.awt.Color getColorInLine​(FlatSyntaxTextArea textArea,
                                              int line)