com.phloc.css.propertyvalue.CCSSValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of phloc-css-jdk5 Show documentation
Show all versions of phloc-css-jdk5 Show documentation
phloc CSS parser an other components
/**
* Copyright (C) 2006-2014 phloc systems
* http://www.phloc.com
* office[at]phloc[dot]com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.phloc.css.propertyvalue;
import javax.annotation.concurrent.Immutable;
import com.phloc.commons.annotations.PresentForCodeCoverage;
import com.phloc.css.ECSSUnit;
//ESCA-JAVA0022:
//ESCA-JAVA0116:
/**
* Contains CSS style constants and utility stuff. Only constants that are part
* of the CSS specification are contained in this class.
* Units of measurement are based on:
* http://de.selfhtml.org/css/formate/wertzuweisung.htm
*
* @author Philip Helger
*/
@Immutable
public final class CCSSValue
{
public static final String PREFIX_RECT = "rect";
public static final String PREFIX_RECT_OPEN = PREFIX_RECT + '(';
public static final String SUFFIX_RECT_CLOSE = ")";
public static final String PREFIX_URL = "url";
public static final String PREFIX_URL_OPEN = PREFIX_URL + '(';
public static final String SUFFIX_URL_CLOSE = ")";
public static final String PREFIX_RGB = "rgb";
public static final String PREFIX_RGB_OPEN = PREFIX_RGB + '(';
public static final String SUFFIX_RGB_CLOSE = ")";
public static final String PREFIX_RGBA = "rgba";
public static final String PREFIX_RGBA_OPEN = PREFIX_RGBA + '(';
public static final String SUFFIX_RGBA_CLOSE = ")";
public static final String PREFIX_HSL = "hsl";
public static final String PREFIX_HSL_OPEN = PREFIX_HSL + '(';
public static final String SUFFIX_HSL_CLOSE = ")";
public static final String PREFIX_HSLA = "hsla";
public static final String PREFIX_HSLA_OPEN = PREFIX_HSLA + '(';
public static final String SUFFIX_HSLA_CLOSE = ")";
public static final String PREFIX_VAR = "var";
public static final String PREFIX_VAR_OPEN = PREFIX_VAR + '(';
public static final String SUFFIX_VAR_CLOSE = ")";
public static final int HEXVALUE_LENGTH = 7;
public static final char PREFIX_HEX = '#';
// values
public static final String _100 = "100";
public static final String _200 = "200";
public static final String _300 = "300";
public static final String _400 = "400";
public static final String _500 = "500";
public static final String _600 = "600";
public static final String _700 = "700";
public static final String _800 = "800";
public static final String _900 = "900";
public static final String ABSOLUTE = "absolute";
public static final String ALWAYS = "always";
public static final String AUTO = "auto";
public static final String BASELINE = "baseline";
public static final String BLINK = "blink";
public static final String BLOCK = "block";
public static final String BOLD = "bold";
public static final String BOLDER = "bolder";
public static final String BORDER_BOX = "border-box";
public static final String BOTH = "both";
public static final String BOTTOM = "bottom";
public static final String CAPITALIZE = "capitalize";
public static final String CENTER = "center";
public static final String CIRCLE = "circle";
public static final String COLLAPSE = "collapse";
public static final String CONTAIN = "contain";
public static final String CONTENT_BOX = "content-box";
public static final String COVER = "cover";
public static final String CROSSHAIR = "crosshair";
public static final String CURRENTCOLOR = "currentColor";
public static final String CURSIVE = "cursive";
public static final String DASHED = "dashed";
public static final String DECIMAL = "decimal";
public static final String DEFAULT = "default";
public static final String DISC = "disc";
public static final String DOTTED = "dotted";
public static final String DOUBLE = "double";
public static final String E_RESIZE = "e-resize";
public static final String FANTASY = "fantasy";
public static final String FIXED = "fixed";
public static final String GROOVE = "groove";
public static final String HELP = "help";
public static final String HIDDEN = "hidden";
public static final String HIDE = "hide";
public static final String INHERIT = "inherit";
public static final String INITIAL = "initial";
public static final String INLINE = "inline";
public static final String INLINE_BLOCK = "inline-block";
public static final String INLINE_TABLE = "inline-table";
public static final String INSET = "inset";
public static final String INSIDE = "inside";
public static final String INVERT = "invert";
public static final String ITALIC = "italic";
public static final String JUSTIFY = "justify";
public static final String LANDSCAPE = "landscape";
public static final String LARGE = "large";
public static final String LARGER = "larger";
public static final String LEFT = "left";
public static final String LIGHTER = "lighter";
public static final String LINE_THROUGH = "line-through";
public static final String LIST_ITEM = "list-item";
public static final String LOWER_ALPHA = "lower-alpha";
public static final String LOWER_LATIN = "lower-latin";
public static final String LOWER_ROMAN = "lower-roman";
public static final String LOWERCASE = "lowercase";
public static final String LTR = "ltr";
public static final String MEDIUM = "medium";
public static final String MIDDLE = "middle";
public static final String MONOSPACE = "monospace";
public static final String MOVE = "move";
public static final String N_RESIZE = "n-resize";
public static final String NE_RESIZE = "ne-resize";
public static final String NO_REPEAT = "no-repeat";
public static final String NONE = "none";
public static final String NORMAL = "normal";
public static final String NOWRAP = "nowrap";
public static final String NW_RESIZE = "nw-resize";
public static final String OBLIQUE = "oblique";
public static final String ONCE = "once";
public static final String OUTSET = "outset";
public static final String OUTSIDE = "outside";
public static final String OVERLINE = "overline";
public static final String PADDING_BOX = "padding-box";
public static final String POINTER = "pointer";
public static final String PORTRAIT = "portrait";
public static final String PRE = "pre";
public static final String PRE_LINE = "pre-line";
public static final String PRE_WRAP = "pre-wrap";
public static final String PROGRESS = "progress";
public static final String RELATIVE = "relative";
public static final String REPEAT = "repeat";
public static final String REPEAT_X = "repeat-x";
public static final String REPEAT_Y = "repeat-y";
public static final String RIDGE = "ridge";
public static final String RIGHT = "right";
public static final String RTL = "rtl";
public static final String RUN_IN = "run-in";
public static final String S_RESIZE = "s-resize";
public static final String SANS_SERIF = "sans-serif";
public static final String SCROLL = "scroll";
public static final String SE_RESIZE = "se-resize";
public static final String SEPARATE = "separate";
public static final String SERIF = "serif";
public static final String SHOW = "show";
public static final String SMALL = "small";
public static final String SMALL_CAPS = "small-caps";
public static final String SMALLER = "smaller";
public static final String SOLID = "solid";
public static final String SQUARE = "square";
public static final String STATIC = "static";
public static final String SUB = "sub";
public static final String SUPER = "super";
public static final String SW_RESIZE = "sw-resize";
public static final String TABLE = "table";
public static final String TABLE_CAPTION = "table-caption";
public static final String TABLE_CELL = "table-cell";
public static final String TABLE_COLUMN = "table-column";
public static final String TABLE_COLUMN_GROUP = "table-column-group";
public static final String TABLE_FOOTER_GROUP = "table-footer-group";
public static final String TABLE_HEADER_GROUP = "table-header-group";
public static final String TABLE_ROW = "table-row";
public static final String TABLE_ROW_GROUP = "table-row-group";
public static final String TEXT = "text";
public static final String TEXT_BOTTOM = "text-bottom";
public static final String TEXT_TOP = "text-top";
public static final String THICK = "thick";
public static final String THIN = "thin";
public static final String TOP = "top";
public static final String TRANSPARENT = "transparent";
public static final String UNDERLINE = "underline";
public static final String UNSET = "unset";
public static final String UPPER_ALPHA = "upper-alpha";
public static final String UPPER_LATIN = "upper-latin";
public static final String UPPER_ROMAN = "upper-roman";
public static final String UPPERCASE = "uppercase";
public static final String VISIBLE = "visible";
public static final String W_RESIZE = "w-resize";
public static final String WAIT = "wait";
public static final String X_LARGE = "x-large";
public static final String X_SMALL = "x-small";
public static final String XX_LARGE = "xx-large";
public static final String XX_SMALL = "xx-small";
public static final String ZOOM = "zoom";
@Deprecated
public static final String PX0 = ECSSUnit.px (0);
/** 10% */
public static final String PERC10 = ECSSUnit.perc (10);
/** 20% */
public static final String PERC20 = ECSSUnit.perc (20);
/** 30% */
public static final String PERC30 = ECSSUnit.perc (30);
/** 40% */
public static final String PERC40 = ECSSUnit.perc (40);
/** 50% */
public static final String PERC50 = ECSSUnit.perc (50);
/** 60% */
public static final String PERC60 = ECSSUnit.perc (60);
/** 70% */
public static final String PERC70 = ECSSUnit.perc (70);
/** 80% */
public static final String PERC80 = ECSSUnit.perc (80);
/** 90% */
public static final String PERC90 = ECSSUnit.perc (90);
/** 95% */
public static final String PERC95 = ECSSUnit.perc (95);
/** 96% */
public static final String PERC96 = ECSSUnit.perc (96);
/** 97% */
public static final String PERC97 = ECSSUnit.perc (97);
/** 98% */
public static final String PERC98 = ECSSUnit.perc (98);
/** 99% */
public static final String PERC99 = ECSSUnit.perc (99);
/** 100% */
public static final String PERC100 = ECSSUnit.perc (100);
// CSS values that occur recurrently but are not part of the CSS
// specification.
public static final String FONT_ARIAL = "Arial";
public static final String FONT_COURIER_NEW = "Courier New";
public static final String FONT_HELVETICA = "Helvetica";
public static final String FONT_TAHOMA = "Tahoma";
public static final String FONT_VERDANA = "Verdana";
public static final String FONT_MONOSPACE = FONT_COURIER_NEW;
@PresentForCodeCoverage
@SuppressWarnings ("unused")
private static final CCSSValue s_aInstance = new CCSSValue ();
private CCSSValue ()
{}
}