001    package echopoint.style;
002    
003    import static echopoint.Anchor.PROPERTY_FOREGROUND;
004    import static echopoint.Anchor.PROPERTY_TARGET;
005    import static echopoint.util.ColorKit.makeColor;
006    
007    /**
008     * The default style used for all {@link echopoint.Anchor} components.
009     *
010     * @author Rakesh 2009-05-12
011     * @version $Id: AnchorStyle.java 208 2009-05-25 02:40:35Z sptrakesh $
012     */
013    public class AnchorStyle extends AbstractStyle
014    {
015      private static final long serialVersionUID = 1L;
016    
017      /**
018       * The default foreground colour for the anchor tag.
019       *
020       * {@value}
021       */
022      public static final String COLOR = "#2f2f4f";
023    
024      /**
025       * The default target to associate with the anchor tag.
026       *
027       * {@value}
028       */
029      public static final String TARGET = "_blank";
030    
031      /** {@inheritDoc} */
032      protected void init()
033      {
034        super.init();
035        set( PROPERTY_FOREGROUND, makeColor( COLOR ) );
036        set( PROPERTY_TARGET, TARGET );
037      }
038    }