diff --git a/index.html b/index.html index b37f7df..ac7ca46 100644 --- a/index.html +++ b/index.html @@ -57,7 +57,7 @@ You only specify the details you want to appear on the graph. If you wish your (Java) implementation to evolve together with the design feel free to include code or additional details. You can hide these details from the UML diagram using the javadoc -@hide tag applied to classes, methods, and fields. +@hidden tag applied to classes, methods, and fields. In theory you can also use UMLGraph to reverse engineer existing Java code. Note however that UMLGraph is not designed for this purpose; @@ -163,6 +163,14 @@ visibility (private, public, protected) -operations -visibility -types +
-nodefillcolor
Specify the color to use to fill the shapes. +The color can be either a symbolic name (e.g. blue), +a tripple specifying hue-saturation-brightness as values 0-1 +(e.g. ".13 0.9 1"), +or a tripple specifying red-green-blue values as hexadecimal +digits prefixed by a # (e.g. "#ff8020"). +The symbolic color names are derived from the X Windows System; +you can find a complete list in the Graphviz documentation.

Since the options are really a part of the generated graph you @@ -178,6 +186,11 @@ of a class named UMLOptions, as in the following example: class UMLOptions {} +You can also change the UMLGraph operation on a per-class basis by +using @opt attributes on individual classes. +In this case the @opt specification temporarily overrides +the particular global setting for the class being processed. +

Availability

UMLGraph is hereby made freely available as Open Source Software. You can download it in source and compiled format from the following links: @@ -488,6 +501,45 @@ class ActionQueue { Download the declarative specification, the generated dot code. +

Global and Local Options

+ +
+
+/**
+ * @opt nodefillcolor "#a0a0a0" 
+ * @hidden
+ */
+class UMLOptions{}
+
+/** 
+ * @composed - - - Red
+ * @composed - - - Green
+ * @composed - - - Blue
+ * @opt attributes
+ * @opt visibility
+ * @opt types
+ */
+class Pixel {
+	private int x, y;
+	public void setColor(ColorValue v) {}
+}
+
+/** @opt nodefillcolor red */
+class Red {}
+
+/** @opt nodefillcolor green */
+class Green {}
+
+/** @opt nodefillcolor blue */
+class Blue {}
+
+/** @hidden */
+class ColorValue{}
+
+
+ +
+Download the declarative specification, the generated dot code.

Diomidis Spinellis home page diff --git a/web/index.html b/web/index.html index b37f7df..ac7ca46 100644 --- a/web/index.html +++ b/web/index.html @@ -57,7 +57,7 @@ You only specify the details you want to appear on the graph. If you wish your (Java) implementation to evolve together with the design feel free to include code or additional details. You can hide these details from the UML diagram using the javadoc -@hide tag applied to classes, methods, and fields. +@hidden tag applied to classes, methods, and fields. In theory you can also use UMLGraph to reverse engineer existing Java code. Note however that UMLGraph is not designed for this purpose; @@ -163,6 +163,14 @@ visibility (private, public, protected) -operations -visibility -types +

-nodefillcolor
Specify the color to use to fill the shapes. +The color can be either a symbolic name (e.g. blue), +a tripple specifying hue-saturation-brightness as values 0-1 +(e.g. ".13 0.9 1"), +or a tripple specifying red-green-blue values as hexadecimal +digits prefixed by a # (e.g. "#ff8020"). +The symbolic color names are derived from the X Windows System; +you can find a complete list in the Graphviz documentation.

Since the options are really a part of the generated graph you @@ -178,6 +186,11 @@ of a class named UMLOptions, as in the following example: class UMLOptions {} +You can also change the UMLGraph operation on a per-class basis by +using @opt attributes on individual classes. +In this case the @opt specification temporarily overrides +the particular global setting for the class being processed. +

Availability

UMLGraph is hereby made freely available as Open Source Software. You can download it in source and compiled format from the following links: @@ -488,6 +501,45 @@ class ActionQueue { Download the declarative specification, the generated dot code. +

Global and Local Options

+ +
+
+/**
+ * @opt nodefillcolor "#a0a0a0" 
+ * @hidden
+ */
+class UMLOptions{}
+
+/** 
+ * @composed - - - Red
+ * @composed - - - Green
+ * @composed - - - Blue
+ * @opt attributes
+ * @opt visibility
+ * @opt types
+ */
+class Pixel {
+	private int x, y;
+	public void setColor(ColorValue v) {}
+}
+
+/** @opt nodefillcolor red */
+class Red {}
+
+/** @opt nodefillcolor green */
+class Green {}
+
+/** @opt nodefillcolor blue */
+class Blue {}
+
+/** @hidden */
+class ColorValue{}
+
+
+ +
+Download the declarative specification, the generated dot code.

Diomidis Spinellis home page