Class Paint2PropertyEditor

  • All Implemented Interfaces:
    java.beans.PropertyEditor

    public class Paint2PropertyEditor
    extends java.beans.PropertyEditorSupport
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.awt.Paint paint  
      (package private) PaintPicker picker  
    • Constructor Summary

      Constructors 
      Constructor Description
      Paint2PropertyEditor()
      Creates a new instance of Paint2PropertyEditor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAsText()  
      java.awt.Component getCustomEditor()  
      java.lang.String getJavaInitializationString()  
      java.awt.Paint getValue()  
      boolean isPaintable()  
      void paintValue​(java.awt.Graphics g, java.awt.Rectangle box)  
      void setAsText​(java.lang.String text)  
      void setValue​(java.lang.Object object)  
      boolean supportsCustomEditor()  
      • Methods inherited from class java.beans.PropertyEditorSupport

        addPropertyChangeListener, firePropertyChange, getSource, getTags, removePropertyChangeListener, setSource
      • Methods inherited from class java.lang.Object

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

      • Paint2PropertyEditor

        public Paint2PropertyEditor()
        Creates a new instance of Paint2PropertyEditor
    • Method Detail

      • getValue

        public java.awt.Paint getValue()
        Specified by:
        getValue in interface java.beans.PropertyEditor
        Overrides:
        getValue in class java.beans.PropertyEditorSupport
      • setValue

        public void setValue​(java.lang.Object object)
        Specified by:
        setValue in interface java.beans.PropertyEditor
        Overrides:
        setValue in class java.beans.PropertyEditorSupport
      • getJavaInitializationString

        public java.lang.String getJavaInitializationString()
        Specified by:
        getJavaInitializationString in interface java.beans.PropertyEditor
        Overrides:
        getJavaInitializationString in class java.beans.PropertyEditorSupport
      • setAsText

        public void setAsText​(java.lang.String text)
                       throws java.lang.IllegalArgumentException
        Specified by:
        setAsText in interface java.beans.PropertyEditor
        Overrides:
        setAsText in class java.beans.PropertyEditorSupport
        Throws:
        java.lang.IllegalArgumentException
      • getAsText

        public java.lang.String getAsText()
        Specified by:
        getAsText in interface java.beans.PropertyEditor
        Overrides:
        getAsText in class java.beans.PropertyEditorSupport
      • paintValue

        public void paintValue​(java.awt.Graphics g,
                               java.awt.Rectangle box)
        Specified by:
        paintValue in interface java.beans.PropertyEditor
        Overrides:
        paintValue in class java.beans.PropertyEditorSupport
      • isPaintable

        public boolean isPaintable()
        Specified by:
        isPaintable in interface java.beans.PropertyEditor
        Overrides:
        isPaintable in class java.beans.PropertyEditorSupport
      • supportsCustomEditor

        public boolean supportsCustomEditor()
        Specified by:
        supportsCustomEditor in interface java.beans.PropertyEditor
        Overrides:
        supportsCustomEditor in class java.beans.PropertyEditorSupport
      • getCustomEditor

        public java.awt.Component getCustomEditor()
        Specified by:
        getCustomEditor in interface java.beans.PropertyEditor
        Overrides:
        getCustomEditor in class java.beans.PropertyEditorSupport