Skip to content

Package: DetailDrawPropertyEntry

DetailDrawPropertyEntry

nameinstructionbranchcomplexitylinemethod
DetailDrawPropertyEntry(PropertyDrawEntry)
M: 0 C: 18
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 7
100%
M: 0 C: 1
100%
DetailDrawPropertyEntry(PropertyDrawEntry, String, int, int, Color)
M: 0 C: 18
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 7
100%
M: 0 C: 1
100%
getColor()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getPositionX()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getPositionY()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getPrefix()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getPropertyDrawEntry()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%

Coverage

1: package networkconfigurator;
2:
3: import java.awt.Color;
4:
5: /**
6: *
7: * @author HFW416 Jannik
8: *
9: */
10: public class DetailDrawPropertyEntry {
11:
12:         /**
13:          * the value of the entry for the detail draw property.
14:          */
15:         private final PropertyDrawEntry propertyDrawEntry;
16:         /**
17:          * the prefix that stands ahead of the value.
18:          */
19:         private final String prefix;
20:         /**
21:          * This attribute can be used to set the position x.
22:          */
23:         private final int positionX;
24:         /**
25:          * This attribute can be used to set the position y.
26:          */
27:         private final int positionY;
28:         /**
29:          * This attribute can be used to set the color.
30:          */
31:         private final Color color;
32:
33:         /**
34:          *
35:          * Constructor for the detail draw property entry.
36:          *
37:          * @param propertyDrawEntry
38:          * the value of the entry for the detail draw property.
39:          */
40:         public DetailDrawPropertyEntry(final PropertyDrawEntry propertyDrawEntry) {
41:                 super();
42:                 this.propertyDrawEntry = propertyDrawEntry;
43:                 this.prefix = "";
44:                 this.positionX = 0;
45:                 this.positionY = 0;
46:                 this.color = Color.black;
47:         }
48:
49:         /**
50:          *
51:          * Constructor for the detail draw property entry.
52:          *
53:          * @param propertyDrawEntry
54:          * the value of the entry for the detail draw property.
55:          * @param prefix
56:          * the prefix that stands ahead of the value.
57:          * @param positionX
58:          * This attribute can be used to set the position x.
59:          * @param positionY
60:          * This attribute can be used to set the position y.
61:          * @param color
62:          * This attribute can be used to set the color.
63:          */
64:         public DetailDrawPropertyEntry(final PropertyDrawEntry propertyDrawEntry, final String prefix,
65:                         final int positionX, final int positionY, final Color color) {
66:                 super();
67:                 this.propertyDrawEntry = propertyDrawEntry;
68:                 this.prefix = prefix;
69:                 this.positionX = positionX;
70:                 this.positionY = positionY;
71:                 this.color = color;
72:         }
73:
74:         /**
75:          * getter for propertyDrawEntry.
76:          *
77:          * @return propertyDrawEntry.
78:          */
79:         public final PropertyDrawEntry getPropertyDrawEntry() {
80:                 return propertyDrawEntry;
81:         }
82:
83:         /**
84:          * getter for prefix.
85:          *
86:          * @return prefix.
87:          */
88:         public final String getPrefix() {
89:                 return prefix;
90:         }
91:
92:         /**
93:          * getter for positionX.
94:          *
95:          * @return positionX.
96:          */
97:         public final int getPositionX() {
98:                 return positionX;
99:         }
100:
101:         /**
102:          * getter for positionY.
103:          *
104:          * @return positionY.
105:          */
106:         public final int getPositionY() {
107:                 return positionY;
108:         }
109:
110:         /**
111:          * getter for color.
112:          *
113:          * @return color.
114:          */
115:         public final Color getColor() {
116:                 return color;
117:         }
118:
119: }