Class ShortCutted


  • public class ShortCutted
    extends java.lang.Object
    DOCUMENT ME!
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String alias
      DOCUMENT ME!
      private java.awt.Color color
      DOCUMENT ME!
      private java.lang.String path
      DOCUMENT ME!
    • Constructor Summary

      Constructors 
      Constructor Description
      ShortCutted​(java.lang.String alias, java.lang.String path, java.lang.String color)
      Creates a new ShortCutted object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.lang.String colorToString​(java.awt.Color color)
      Converts color to string.
      java.lang.String getAlias()
      DOCUMENT ME!
      java.awt.Color getColor()
      DOCUMENT ME!
      java.lang.String getColorString()
      DOCUMENT ME!
      java.lang.String getDisplayName()
      Formats shortcut's name for display.
      java.lang.String getName()
      DOCUMENT ME!
      java.lang.String getPath()
      DOCUMENT ME!
      boolean hasAlias()
      DOCUMENT ME!
      private java.awt.Color parseColor​(java.lang.String colorString)
      DOCUMENT ME!
      void setAlias​(java.lang.String newAlias)
      DOCUMENT ME!
      void setColor​(java.lang.String color)
      DOCUMENT ME!
      java.lang.String toString()
      DOCUMENT ME!
      • Methods inherited from class java.lang.Object

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

      • alias

        private java.lang.String alias
        DOCUMENT ME!
      • color

        private java.awt.Color color
        DOCUMENT ME!
      • path

        private java.lang.String path
        DOCUMENT ME!
    • Constructor Detail

      • ShortCutted

        public ShortCutted​(java.lang.String alias,
                           java.lang.String path,
                           java.lang.String color)
        Creates a new ShortCutted object.
        Parameters:
        alias - DOCUMENT ME!
        path - DOCUMENT ME!
        color - DOCUMENT ME!
    • Method Detail

      • getAlias

        public java.lang.String getAlias()
        DOCUMENT ME!
        Returns:
        DOCUMENT ME!
      • getColor

        public java.awt.Color getColor()
        DOCUMENT ME!
        Returns:
        DOCUMENT ME!
      • getColorString

        public java.lang.String getColorString()
        DOCUMENT ME!
        Returns:
        DOCUMENT ME!
      • getDisplayName

        public java.lang.String getDisplayName()
        Formats shortcut's name for display.

        This method can be modified to meet other display format expectations.

        Returns:
        DOCUMENT ME!
      • getName

        public java.lang.String getName()
        DOCUMENT ME!
        Returns:
        DOCUMENT ME!
      • getPath

        public java.lang.String getPath()
        DOCUMENT ME!
        Returns:
        DOCUMENT ME!
      • hasAlias

        public boolean hasAlias()
        DOCUMENT ME!
        Returns:
        DOCUMENT ME!
      • setAlias

        public void setAlias​(java.lang.String newAlias)
        DOCUMENT ME!
        Parameters:
        newAlias - DOCUMENT ME!
      • setColor

        public void setColor​(java.lang.String color)
        DOCUMENT ME!
        Parameters:
        color - DOCUMENT ME!
      • toString

        public java.lang.String toString()
        DOCUMENT ME!
        Overrides:
        toString in class java.lang.Object
        Returns:
        DOCUMENT ME!
      • colorToString

        private java.lang.String colorToString​(java.awt.Color color)
        Converts color to string.

        Some colors defined in Color are used as is (for instance, Color.blue). Green, teal and yellow colors are defined in this method. Other colors are represented as an RGB hexadecimal string (without the alpha component).

        Parameters:
        color - DOCUMENT ME!
        Returns:
        DOCUMENT ME!
      • parseColor

        private java.awt.Color parseColor​(java.lang.String colorString)
        DOCUMENT ME!
        Parameters:
        colorString - DOCUMENT ME!
        Returns:
        DOCUMENT ME!