View Javadoc

1   package org.devaki.nextobjects.constants;
2   /*
3   
4   nextobjects Copyright (C) 2001-2005 Emmanuel Florent
5   
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by the
8   Free Software Foundation; either version 2 of the License, or (at your
9   option) any later version.
10  
11  This program is distributed in the hope that it will
12  be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
13  of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14  PURPOSE. See the GNU General Public License for more details.
15  
16  You should have received a copy of the GNU General Public License along
17  with this program; if not, write to the Free Software Foundation, Inc., 59
18  Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19  
20  */
21  import java.awt.Color;
22  import java.awt.Dimension;
23  import java.awt.Point;
24  /***
25   *  Description: Some default values retaled to the graphic models
26   * @author <a href="mailto:eflorent@devaki.org">Emmanuel Florent</a>
27   * test for cvs locks.
28   *
29   */
30  public class CstGraphics
31  {
32      /***
33       * The model dimension
34       */
35      public static final Dimension MODEL_DIMENSION = new Dimension(10000, 5000);
36      /***
37       * The model initial position
38       */
39      public static final Point MODEL_INITIAL_POSITION = new Point(4860, 2460);
40      /***
41       * The model background color
42       */
43      public static final Color MODEL_BACKGROUND_COLOR = Color.white;
44      /***
45       * The model selection color
46       */
47      public static final Color SELECTION_COLOR = Color.black;
48      /***
49       *  MINIMUM_OBJECT_SIZE
50       */
51      public static final Dimension MIN_OBJECT_SIZE = new Dimension(30, 30);
52      /***
53       *  DEFAULT_ENTITY_BACKGROUND_COLOR
54       */
55      public static final Color DEFAULT_ENTITY_BACKGROUND_COLOR =
56          new Color(176, 176, 216);
57      /***
58       *  DEFAULT_ENTITY_BORDER_COLOR
59       */
60      public static final Color DEFAULT_ENTITY_BORDER_COLOR = Color.black;
61      /***
62       * DEFAULT_ENTITY_SIZE
63       */
64      public static final Dimension DEFAULT_ENTITY_SIZE = new Dimension(80, 60);
65      /***
66       * DEFAULT_ASSOCIATION_BACKGROUND_COLOR
67       */
68      public static final Color DEFAULT_ASSOCIATION_BACKGROUND_COLOR =
69          new Color(197, 216, 176);
70      /***
71       * DEFAULT_ASSOCIATION_BORDER_COLOR
72       */
73      public static final Color DEFAULT_ASSOCIATION_BORDER_COLOR = Color.black;
74      /***
75       *   DEFAULT_ASSOCIATION_SIZE
76       */
77      public static final Dimension DEFAULT_ASSOCIATION_SIZE =
78          new Dimension(90, 35);
79      /***
80       * DEFAULT_ASSOCIATIONLINK_COLOR
81       */
82      public static final Color DEFAULT_ASSOCIATIONLINK_COLOR = Color.black;
83      /***
84       * DEFAULT_INHERITANCELINK_COLOR
85       */
86      public static final Color DEFAULT_INHERITANCELINK_COLOR = Color.black;
87      /***
88       *   DEFAULT_TABLE_BACKGROUND_COLOR
89       */
90      public static final Color DEFAULT_TABLE_BACKGROUND_COLOR =
91          new Color(176, 176, 216);
92      /***
93       * DEFAULT_TABLE_BORDER_COLOR
94       */
95      public static final Color DEFAULT_TABLE_BORDER_COLOR = Color.black;
96      /***
97       *  DEFAULT_TABLE_SIZE
98       */
99      public static final Dimension DEFAULT_TABLE_SIZE = new Dimension(80, 50);
100     /***
101      * DEFAULT_CONSTRAINT_COLOR
102      */
103     public static final Color DEFAULT_CONSTRAINT_COLOR = Color.blue;
104     /***
105      * DEFAULT_MODELTITLE_SIZE
106      */
107     public static final Dimension DEFAULT_MODELTITLE_SIZE =
108         new Dimension(250, 50);
109     /***
110      * DEFAULT_MODELTITLE_COLOR
111      */
112     public static final Color DEFAULT_MODELTITLE_COLOR = Color.blue;
113     /***
114      * DEFAULT_LABEL_BACKGROUNG_COLOR
115      */
116     public static final Color DEFAULT_LABEL_BACKROUNG_COLOR = Color.YELLOW;
117     /***
118      * DEFAULT_LABEL_SIZE
119      */
120     public static final Dimension DEFAULT_LABEL_SIZE = new Dimension(120, 120);
121 }