Package gov.nih.mipav.view
Class ShortCutted
- java.lang.Object
-
- gov.nih.mipav.view.ShortCutted
-
public class ShortCutted extends java.lang.Object
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!
-
-
-
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 classjava.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!
-
-