Class PaintContext


  • public class PaintContext
    extends java.lang.Object
    Miscellaneous information needed by fields to paint.
    • Constructor Detail

      • PaintContext

        public PaintContext()
        Create a new PaintContext with default color values.
    • Method Detail

      • getDefaultBackground

        public final java.awt.Color getDefaultBackground()
        Returns the current default background color setting that is used when there is no special background color or highlight or selection.
      • getBackground

        public final java.awt.Color getBackground()
        Returns the current background color setting.
      • getForeground

        public final java.awt.Color getForeground()
        Returns the current foreground color setting.
      • getSelectionColor

        public final java.awt.Color getSelectionColor()
        Returns the current selection color setting.
      • getHighlightColor

        public final java.awt.Color getHighlightColor()
        Returns the current selection color setting.
      • getSelectedHighlightColor

        public final java.awt.Color getSelectedHighlightColor()
        Returns the current selection color setting.
      • getCursorColor

        public final java.awt.Color getCursorColor()
        Returns the current cursor color setting.
      • getFocusedCursorColor

        public final java.awt.Color getFocusedCursorColor()
      • setSelectionColor

        public void setSelectionColor​(java.awt.Color c)
      • setHighlightColor

        public void setHighlightColor​(java.awt.Color c)
      • setDefaultBackgroundColor

        public void setDefaultBackgroundColor​(java.awt.Color c)
      • isDefaultBackground

        public final boolean isDefaultBackground()
        Returns true if the current background color matches the default background color.
      • setBackgroundColor

        public void setBackgroundColor​(java.awt.Color c)
      • setForegroundColor

        public void setForegroundColor​(java.awt.Color c)
      • setCursorColor

        public void setCursorColor​(java.awt.Color c)
      • cursorHidden

        public boolean cursorHidden()
      • cursorFocused

        public boolean cursorFocused()
      • setCursorFocused

        public void setCursorFocused​(boolean isFocused)
      • setCursorHidden

        public void setCursorHidden​(boolean isHidden)
      • setFocusedCursorColor

        public void setFocusedCursorColor​(java.awt.Color color)
      • setNotFocusedCursorColor

        public void setNotFocusedCursorColor​(java.awt.Color color)
      • getNotFocusedCursorColor

        public java.awt.Color getNotFocusedCursorColor()
      • setPrintColor

        public void setPrintColor​(java.awt.Color c)
      • setPrinting

        public void setPrinting​(boolean b)
      • setTextCopying

        public void setTextCopying​(boolean b)
      • isPrinting

        public boolean isPrinting()
      • isTextCopying

        public boolean isTextCopying()