forked from classgraph/classgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDiamond.java
More file actions
58 lines (51 loc) · 1003 Bytes
/
Diamond.java
File metadata and controls
58 lines (51 loc) · 1003 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package com.xyz.fig.shape;
import java.awt.Graphics2D;
/**
* Diamond.
*/
public class Diamond extends ShapeImpl {
/** The w. */
private final float w;
/** The h. */
private final float h;
/**
* Constructor.
*
* @param x
* the x
* @param y
* the y
* @param w
* the w
* @param h
* the h
*/
public Diamond(final float x, final float y, final float w, final float h) {
super(x, y);
this.w = w;
this.h = h;
}
/**
* Get the w.
*
* @return the w
*/
public float getW() {
return w;
}
/**
* Get the h.
*
* @return the h
*/
public float getH() {
return h;
}
/* (non-Javadoc)
* @see com.xyz.fig.shape.ShapeImpl#draw(java.awt.Graphics2D)
*/
@Override
public void draw(final Graphics2D f) {
throw new RuntimeException("Not implemented");
}
}