mirror of https://github.com/dspinellis/UMLGraph
Tests for view inheritance
This commit is contained in:
parent
761320b44d
commit
cd90d5b402
|
|
@ -0,0 +1,17 @@
|
|||
#!/usr/local/bin/dot
|
||||
#
|
||||
# Class diagram
|
||||
# Generated by UmlGraph version 4.1 (http://www.spinellis.gr/sw/umlgraph)
|
||||
#
|
||||
|
||||
digraph G {
|
||||
edge [fontname="Helvetica",fontsize=10,labelfontname="Helvetica",labelfontsize=10];
|
||||
node [fontname="Helvetica",fontsize=10,shape=record];
|
||||
// gr.spinellis.product.Product
|
||||
c146 [label="Product", fontname="Helvetica", style=filled, fillcolor="LemonChiffon", fontcolor="black", fontsize=10.0];
|
||||
// gr.spinellis.product.Category
|
||||
c147 [label="Category", fontname="Helvetica", style=filled, fillcolor="LemonChiffon", fontcolor="black", fontsize=10.0];
|
||||
// gr.spinellis.product.Product assoc gr.spinellis.product.Category
|
||||
c146 -> c147 [taillabel="*", label="", headlabel="1", fontname="Helvetica", fontcolor="black", fontsize=10.0, color="black", arrowhead=none];
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
#!/usr/local/bin/dot
|
||||
#
|
||||
# Class diagram
|
||||
# Generated by UmlGraph version 4.1 (http://www.spinellis.gr/sw/umlgraph)
|
||||
#
|
||||
|
||||
digraph G {
|
||||
edge [fontname="Helvetica",fontsize=10,labelfontname="Helvetica",labelfontsize=10];
|
||||
node [fontname="Helvetica",fontsize=10,shape=record];
|
||||
// gr.spinellis.product.Product
|
||||
c132 [label="{Product\n|name\lstock\lprice\lcategory\l|}", fontname="Helvetica", style=filled, fillcolor="LemonChiffon", fontcolor="black", fontsize=10.0];
|
||||
// gr.spinellis.product.Category
|
||||
c133 [label="Category", fontname="Helvetica", style=filled, fillcolor="brown", fontcolor="black", fontsize=10.0];
|
||||
// gr.spinellis.product.Product assoc gr.spinellis.product.Category
|
||||
c132 -> c133 [taillabel="*", label="", headlabel="1", fontname="Helvetica", fontcolor="black", fontsize=10.0, color="black", arrowhead=none];
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
package gr.spinellis.views;
|
||||
|
||||
/**
|
||||
* @view
|
||||
* @opt hide
|
||||
*
|
||||
* @match gr.spinellis.product.*
|
||||
* @opt !hide
|
||||
* @match gr.spinellis.*
|
||||
* @opt nodefillcolor LemonChiffon
|
||||
*/
|
||||
public abstract class ViewAbstract {
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
package gr.spinellis.views;
|
||||
|
||||
/**
|
||||
* @view
|
||||
*/
|
||||
public class ViewChildEmpty extends ViewAbstract {
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
package gr.spinellis.views;
|
||||
|
||||
/**
|
||||
* @view
|
||||
*
|
||||
* @opt nodefillcolor LightGray
|
||||
* @match gr.spinellis.product.Product
|
||||
* @opt attributes
|
||||
* @match gr.spinellis.product.Category
|
||||
* @opt nodefillcolor brown
|
||||
*/
|
||||
public class ViewChildOverride extends ViewAbstract {
|
||||
}
|
||||
Loading…
Reference in New Issue