org.graphper.draw.svg.SvgConstants Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of graph-support Show documentation
Show all versions of graph-support Show documentation
Java re-implementation of tiny graphviz
The newest version!
/*
* Copyright 2022 The graph-support project
*
* 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 org.graphper.draw.svg;
public interface SvgConstants {
String SEMICOLON = "\"";
String SLASH = "/";
String GT = ">";
String LT = "<";
String SHAPE_GROUP_KEY = "shapeGroupKey";
String TEXT_GROUP_KEY = "textGroupKey";
String TAIL_ARROW_GROUP_KEY = "tailArrowGroupKey";
String HEAD_ARROW_GROUP_KEY = "headArrowGroupKey";
String PATH_START_M = "M";
String CURVE_PATH_MARK = "C";
String TRANSFORM_VAL = "scale(%s) rotate(%s)";
/* -------------------------------------------- Connect character ------------------------------------------ */
String COMMA = ",";
String SPACE = " ";
String UNDERSCORE = "_";
String COLON = ":";
String EQUAL_SIGN = "=";
/* -------------------------------------------- tag names ------------------------------------------ */
String SVG_ELE = "svg";
String G_ELE = "g";
String A_ELE = "a";
String PATH_ELE = "path";
String POLYGON_ELE = "polygon";
String ELLIPSE_ELE = "ellipse";
String TITLE_ELE = "title";
String TEXT_ELE = "text";
String DEFS_ELE = "defs";
String LINEARGRAD_ELE = "linearGradient";
String IMAGE_ELE = "image";
/* -------------------------------------------- attributes ------------------------------------------ */
String D = "d";
String PT = "pt";
String VIEWBOX = "viewBox";
String XMLNS = "xmlns";
String XMLNS_XLINK = "xmlns:xlink";
String ID = "id";
String CLASS = "class";
String STROKE = "stroke";
String STROKE_DASHARRAY = "stroke-dasharray";
String STROKE_WIDTH = "stroke-width";
String NODE = "node";
String GRAPH = "graph";
String CLUSTER = "cluster";
String TRANSFORM = "transform";
String HEIGHT = "height";
String WIDTH = "width";
String FILL = "fill";
String NONE = "none";
String MIDDLE = "middle";
String FONT_SIZE = "font-size";
String FONT_FAMILY = "font-family";
String TEXT_ANCHOR = "text-anchor";
String X = "x";
String Y = "y";
String CX = "cx";
String CY = "cy";
String RX = "rx";
String RY = "ry";
String POINTS = "points";
String XLINK = "xlink";
String HREF = "href";
}