/* Copyright 2003-2012 GanttProject Team This file is part of GanttProject, an opensource project management tool. GanttProject is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. GanttProject 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 General Public License for more details. You should have received a copy of the GNU General Public License along with GanttProject. If not, see <http://www.gnu.org/licenses/>. */ package biz.ganttproject.core.chart.render; /* *@author Etienne L'kenfack (etienne.lkenfack@itcogita.com) */ public class ShapeConstants { public static final ShapePaint TRANSPARENT = new ShapePaint(4, 4, new int[] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }); public static final ShapePaint DEFAULT = new ShapePaint(4, 4, new int[] { 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1 }); public static final ShapePaint CROSS = new ShapePaint(4, 4, new int[] { 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 0, 0 }); public static final ShapePaint VERT = new ShapePaint(4, 4, new int[] { 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0 }); public static final ShapePaint HORZ = new ShapePaint(4, 4, new int[] { 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1 }); public static final ShapePaint GRID = new ShapePaint(4, 4, new int[] { 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1 }); public static final ShapePaint ROUND = new ShapePaint(4, 4, new int[] { 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 }); public static final ShapePaint NW_TRIANGLE = new ShapePaint(4, 4, new int[] { 1, 1, 1, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 }); public static final ShapePaint NE_TRIANGLE = new ShapePaint(4, 4, new int[] { 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0 }); public static final ShapePaint SW_TRIANGLE = new ShapePaint(4, 4, new int[] { 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0 }); public static final ShapePaint SE_TRIANGLE = new ShapePaint(4, 4, new int[] { 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 1, 1, 1 }); public static final ShapePaint DIAMOND = new ShapePaint(4, 4, new int[] { 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0 }); public static final ShapePaint DOTS = new ShapePaint(4, 4, new int[] { 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0 }); public static final ShapePaint DOT = new ShapePaint(4, 4, new int[] { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 }); public static final ShapePaint SLASH = new ShapePaint(4, 4, new int[] { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 }); public static final ShapePaint BACKSLASH = new ShapePaint(4, 4, new int[] { 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0 }); public static final ShapePaint THICK_VERT = new ShapePaint(4, 4, new int[] { 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0 }); public static final ShapePaint THICK_HORZ = new ShapePaint(4, 4, new int[] { 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0 }); public static final ShapePaint THICK_GRID = new ShapePaint(4, 4, new int[] { 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0 }); public static final ShapePaint THICK_SLASH = new ShapePaint(4, 4, new int[] { 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1 }); public static final ShapePaint THICK_BACKSLASH = new ShapePaint(4, 4, new int[] { 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1 }); public static ShapePaint[] PATTERN_LIST = { TRANSPARENT, DEFAULT, CROSS, VERT, HORZ, GRID, ROUND, NW_TRIANGLE, NE_TRIANGLE, SW_TRIANGLE, SE_TRIANGLE, DIAMOND, DOTS, DOT, SLASH, BACKSLASH, THICK_VERT, THICK_HORZ, THICK_GRID, THICK_SLASH, THICK_BACKSLASH }; }