1 // University of Santa Cruz, California, USA and 2 // CERN, Geneva, Switzerland, Copyright (c) 2000 3 package org.freehep.graphics2d; 4 5 /** 6 * This interface defines useful constants for users of the VectorGraphics 7 * interface. 8 * 9 * @author Charles Loomis 10 * @version $Id: VectorGraphicsConstants.java 8584 2006-08-10 23:06:37Z duns $ 11 */ 12 public interface VectorGraphicsConstants { 13 14 // // 15 // Symbol definitions 16 // // 17 18 /** 19 * Vertical line (|) symbol. 20 */ 21 final public static int SYMBOL_VLINE = 0; 22 23 /** 24 * Horizontal line (-) symbol. 25 */ 26 final public static int SYMBOL_HLINE = 1; 27 28 /** 29 * Plus-shaped (+) symbol. 30 */ 31 final public static int SYMBOL_PLUS = 2; 32 33 /** 34 * An x-shaped (x) symbol. 35 */ 36 final public static int SYMBOL_CROSS = 3; 37 38 /** 39 * An eight-point star created by combining the plus and cross symbols. 40 */ 41 final public static int SYMBOL_STAR = 4; 42 43 /** 44 * An open circle (o) symbol. 45 */ 46 final public static int SYMBOL_CIRCLE = 5; 47 48 /** 49 * An open square symbol. 50 */ 51 final public static int SYMBOL_BOX = 6; 52 53 /** 54 * An open equilateral triangle pointing up. 55 */ 56 final public static int SYMBOL_UP_TRIANGLE = 7; 57 58 /** 59 * An open equilateral triangle pointing down. 60 */ 61 final public static int SYMBOL_DN_TRIANGLE = 8; 62 63 /** 64 * An open square symbol rotated by 45 degrees. 65 */ 66 final public static int SYMBOL_DIAMOND = 9; 67 68 /** 69 * The number of defined symbols. Used in implementations of the 70 * VectorGraphics interfaces. 71 */ 72 final public static int NUMBER_OF_SYMBOLS = 10; 73 74 // // 75 // Text alignment definitions 76 // // 77 78 /** 79 * Constant indicating that a string should be aligned vertically with the 80 * baseline of the text. This is the default in drawString calls which do 81 * not specify an alignment. 82 */ 83 public static final int TEXT_BASELINE = 0; 84 85 /** 86 * Constant indicating that a string should be aligned vertically with the 87 * top of the text. 88 */ 89 public static final int TEXT_TOP = 1; 90 91 /** 92 * Constant indicating that a string should be aligned vertically with the 93 * bottom of the text. 94 */ 95 public static final int TEXT_BOTTOM = 3; 96 97 /** 98 * Constant indicating that a string should be aligned by the center. This 99 * is used for both horizontal and vertical alignment. 100 */ 101 public static final int TEXT_CENTER = 2; 102 103 /** 104 * Constant indicating that a string should be aligned horizontally with the 105 * left side of the text. This is the default for drawString calls which do 106 * not specify an alignment. 107 */ 108 public static final int TEXT_LEFT = 1; 109 110 /** 111 * Constant indicating that the string should be aligned horizontally with 112 * the right side of the text. 113 */ 114 public static final int TEXT_RIGHT = 3; 115 116 /** 117 * Constant indicating the maximum number of vertical alignments. Used in 118 * implementation of the VectorGraphics interfaces. 119 */ 120 public static final int NUMBER_OF_VERTICAL_ALIGNMENTS = 4; 121 122 /** 123 * Constant indicating the maximum number of horizontal alignments. Used in 124 * implementation of the VectorGraphics interfaces. 125 */ 126 public static final int NUMBER_OF_HORIZ_ALIGNMENTS = 4; 127 128 }