forked from classgraph/classgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSquare.java
More file actions
43 lines (38 loc) · 799 Bytes
/
Square.java
File metadata and controls
43 lines (38 loc) · 799 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
package com.xyz.fig.shape;
import java.awt.Graphics2D;
/**
* Square.
*/
public class Square extends ShapeImpl {
/** The size. */
private final float size;
/**
* Constructor.
*
* @param x
* the x
* @param y
* the y
* @param size
* the size
*/
public Square(final float x, final float y, final float size) {
super(x, y);
this.size = size;
}
/**
* Get the size.
*
* @return the size
*/
public float getSize() {
return size;
}
/* (non-Javadoc)
* @see com.xyz.fig.shape.ShapeImpl#draw(java.awt.Graphics2D)
*/
@Override
public void draw(final Graphics2D f) {
throw new RuntimeException("Not implemented");
}
}