×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: sumesh tg
Added: Jul 13, 2016 8:54 AM
Views: 1
Tags: etet
rtet
  1. /**
  2.  * Get more info at : www.jrebirth.org .
  3.  * Copyright JRebirth.org © 2011-2013
  4.  * Contact : sebastien.bordes@jrebirth.org
  5.  *
  6.  * Licensed under the Apache License, Version 2.0 (the "License");
  7.  * you may not use this file except in compliance with the License.
  8.  * You may obtain a copy of the License at
  9.  *
  10.  *     http://www.apache.org/licenses/LICENSE-2.0
  11.  *
  12.  * Unless required by applicable law or agreed to in writing, software
  13.  * distributed under the License is distributed on an "AS IS" BASIS,
  14.  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15.  * See the License for the specific language governing permissions and
  16.  * limitations under the License.
  17.  */
  18. package org.jrebirth.af.presentation.lightningtalk.resources;
  19.  
  20. import javafx.scene.paint.Color;
  21.  
  22. import org.jrebirth.af.api.resource.color.ColorItem;
  23. import org.jrebirth.af.api.resource.color.ColorParams;
  24. import org.jrebirth.af.core.resource.ResourceBuilders;
  25. import org.jrebirth.af.core.resource.color.ColorBuilder;
  26. import org.jrebirth.af.core.resource.color.WebColor;
  27.  
  28. /**
  29.  * The class <strong>LtColors</strong>.
  30.  *
  31.  * @author Sébastien Bordes
  32.  *
  33.  */
  34. public enum LtColors implements ColorItem {
  35.  
  36.     /** The slide title. */
  37.     SLIDE_TITLE(new WebColor("0088D3", 1.0));
  38.  
  39.     /**
  40.      * Private Constructor.
  41.      *
  42.      * @param colorParams the primitive values for the color
  43.      */
  44.     private LtColors(final ColorParams colorParams) {
  45.         builder().storeParams(this, colorParams);
  46.     }
  47.  
  48.     /**
  49.      * {@inheritDoc}
  50.      */
  51.     @Override
  52.     public Color get() {
  53.         return builder().get(this);
  54.     }
  55.  
  56.     /**
  57.      * {@inheritDoc}
  58.      */
  59.     @Override
  60.     public ColorBuilder builder() {
  61.         return ResourceBuilders.COLOR_BUILDER;
  62.     }
  63. }
  64.  

1 comment

sumesh tg 1 year ago
ghjhj

Write a comment