svn commit: r16473 - trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/ArgoFig.java
Tom Morris <[email protected]>
| Newsgroups | gmane.comp.lang.uml.argouml.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: tfmorris
Date: 2008-12-30 14:08:54-0800
New Revision: 16473
Modified:
trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/ArgoFig.java
Log:
Add some more Color constants so we can get rid of magic values
Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/ArgoFig.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/ArgoFig.java?view=diff&pathrev=16473&r1=16472&r2=16473
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/ArgoFig.java (original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/ArgoFig.java 2008-12-30 14:08:54-0800
@@ -1,5 +1,5 @@
// $Id$
-// Copyright (c) 2007 The Regents of the University of California. All
+// Copyright (c) 2007-2008 The Regents of the University of California. All
// Rights Reserved. Permission to use, copy, modify, and distribute this
// software and its documentation without fee, and without a written
// agreement is hereby granted, provided that the above copyright notice
@@ -50,7 +50,6 @@
/** Default Y offset of origin used when building figs */
static final int Y0 = 10;
-
/**
* min. 17, used to calculate y pos of FigText items in a compartment
*/
@@ -60,12 +59,36 @@
* in a compartment
*/
public static final int STEREOHEIGHT = 18;
+
+ /**
+ * Default line width in pixels.
+ */
+ static final int LINE_WIDTH = 1;
+
+ /**
+ * Default color for lines. This constant is an interim measure to get
+ * rid of all the Color.black references before moving to settable defaults.
+ */
+ static final Color LINE_COLOR = Color.black;
+
+ /**
+ * Default color for filled figures. This constant is an interim measure to
+ * get rid of all the Color.white references before moving to settable
+ * defaults.
+ */
+ static final Color FILL_COLOR = Color.white;
+
+ /**
+ * Default color for text. This constant is an interim measure to get
+ * rid of all the Color.black references before moving to settable defaults.
+ */
+ static final Color TEXT_COLOR = Color.black;
/**
* The color used for things which shouldn't normally be visible, so we can
* spot them easily when they are.
*/
- public static final Color DEBUG_COLOR = Color.cyan;
+ static final Color DEBUG_COLOR = Color.cyan;
/**
------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=996350
To unsubscribe from this discussion, e-mail: [[email protected]].