com.hfg.svg.SvgAttr Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com_hfg Show documentation
Show all versions of com_hfg Show documentation
com.hfg xml, html, svg, and bioinformatics utility library
package com.hfg.svg;
import java.util.regex.Pattern;
//------------------------------------------------------------------------------
/**
Attribute name constants for use with SVG (Scalable Vector Graphics) tags.
@author J. Alex Taylor, hairyfatguy.com
*/
//------------------------------------------------------------------------------
// com.hfg XML/HTML Coding Library
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// J. Alex Taylor, President, Founder, CEO, COO, CFO, OOPS hairyfatguy.com
// [email protected]
//------------------------------------------------------------------------------
public class SvgAttr
{
public static final String amplitude = "amplitude";
public static final String azimuth = "azimuth";
public static final String baseFrequency = "baseFrequency";
public static final String bias = "bias";
public static final String CLASS = "class"; // Uppercase to avoid collision with Java class
public static final String colorInterpolationFilters = "color-interpolation-filters";
public static final String cx = "cx";
public static final String cy = "cy";
public static final String d = "d"; // Path data
public static final String diffuseConstant = "diffuseConstant";
public static final String divisor = "divisor";
public static final String dx = "dx";
public static final String dy = "dy";
public static final String edgeMode = "edgeMode";
public static final String elevation = "elevation";
public static final String exponent = "exponent";
public static final String externalResourcesRequired = "externalResourcesRequired";
public static final String fill = "fill";
public static final String fillOpacity = "fill-opacity";
public static final String filter = "filter";
public static final String filterUnits = "filterUnits";
public static final String floodColor = "flood-color";
public static final String floodOpacity = "flood-opacity";
public static final String fontFamily = "font-family";
public static final String fontSize = "font-size";
public static final String fontStyle = "font-style";
public static final String fontWeight = "font-weight";
public static final String height = "height";
public static final String href = "href";
public static final String id = "id";
public static final String in = "in";
public static final String in2 = "in2";
public static final String intercept = "intercept";
public static final String k1 = "k1";
public static final String k2 = "k2";
public static final String k3 = "k3";
public static final String k4 = "k4";
public static final String kernelMatrix = "kernelMatrix";
public static final String kernelUnitLength = "kernelUnitLength";
public static final String lightingColor = "lighting-color";
public static final String limitingConeAngle = "limitingConeAngle";
public static final String markerHeight = "markerHeight";
public static final String markerUnits = "markerUnits";
public static final String markerWidth = "markerWidth";
public static final String mode = "mode";
public static final String numOctaves = "numOctaves";
public static final String offset = "offset";
public static final String onclick = "onclick";
public static final String ondblclick = "ondblclick";
public static final String onmousedown = "onmousedown";
public static final String onmousemove = "onmousemove";
public static final String onmouseout = "onmouseout";
public static final String onmouseover = "onmouseover";
public static final String onmouseup = "onmouseup";
public static final String opacity = "opacity";
public static final String operator = "operator";
public static final String order = "order";
public static final String orient = "orient";
public static final String points = "points";
public static final String pointsAtX = "pointsAtX";
public static final String pointsAtY = "pointsAtY";
public static final String pointsAtZ = "pointsAtZ";
public static final String preserveAlpha = "preserveAlpha";
public static final String r = "r";
public static final String radius = "radius";
public static final String refX = "refX";
public static final String refY = "refY";
public static final String requiredExtensions = "requiredExtensions";
public static final String requiredFeatures = "requiredFeatures";
public static final String result = "result";
public static final String rx = "rx";
public static final String ry = "ry";
public static final String scale = "scale";
public static final String seed = "seed";
public static final String slope = "slope";
public static final String specularExponent = "specularExponent";
public static final String stdDeviation = "stdDeviation";
public static final String stitchTiles = "stitchTiles";
public static final String stroke = "stroke";
public static final String strokeOpacity = "stroke-opacity";
public static final String strokeWidth = "stroke-width";
public static final String style = "style";
public static final String surfaceScale = "surfaceScale";
public static final String systemLanguage = "systemLanguage";
public static final String tableValues = "tableValues";
public static final String targetX = "targetX";
public static final String targetY = "targetY";
public static final String textAnchor = "text-anchor";
public static final String title = "title";
public static final String transform = "transform";
public static final String type = "type";
public static final String values = "values";
public static final String viewBox = "viewBox";
public static final String width = "width";
public static final String x = "x";
public static final String x1 = "x1";
public static final String x2 = "x2";
public static final String xChannelSelector = "xChannelSelector";
public static final String y = "y";
public static final String y1 = "y1";
public static final String y2 = "y2";
public static final String yChannelSelector = "yChannelSelector";
public static final String z = "z";
protected static final Pattern TRANSLATE_PATTERN = Pattern.compile("translate\\(([\\d\\-\\.]+),\\s*([\\d\\-\\.]+)\\)");
protected static final Pattern ROTATE_PATTERN = Pattern.compile("rotate\\(([\\d\\-\\.]+)(?:\\s*([\\d\\-\\.]+),?\\s*([\\d\\-\\.]+))?\\)");
public class Value
{
public static final String none = "none";
}
}