Class ColorIcon

    • Constructor Detail

      • ColorIcon

        public ColorIcon​(int width,
                         int height,
                         int insets,
                         Paint paint)
      • ColorIcon

        public ColorIcon​(int width,
                         int height,
                         int insets,
                         Paint paint,
                         Paint border)
      • ColorIcon

        public ColorIcon​(int width,
                         int height,
                         int arc,
                         int insets,
                         Paint paint)
      • ColorIcon

        public ColorIcon​(int width,
                         int height,
                         int arc,
                         int insets,
                         Paint paint,
                         Paint border)
    • Method Detail

      • getIconWidth

        public int getIconWidth()
        Specified by:
        getIconWidth in interface Icon
      • getIconHeight

        public int getIconHeight()
        Specified by:
        getIconHeight in interface Icon
      • getDescription

        public String getDescription()
        Gets the description of the image. This is meant to be a brief textual description of the object. For example, it might be presented to a blind user to give an indication of the purpose of the image. The description may be null.
        Returns:
        a brief textual description of the image
      • setDescription

        public void setDescription​(String description)
        Sets the description of the image. This is meant to be a brief textual description of the object. For example, it might be presented to a blind user to give an indication of the purpose of the image.
        Parameters:
        description - a brief textual description of the image
      • getAccessibleContext

        public AccessibleContext getAccessibleContext()
        Gets the AccessibleContext associated with this ColorIcon. For image icons, the AccessibleContext takes the form of an AccessibleColorIcon. A new AccessibleColorIcon instance is created if necessary.
        Specified by:
        getAccessibleContext in interface Accessible
        Returns:
        an AccessibleColorIcon that serves as the AccessibleContext of this ColorIcon
        Since:
        1.3