forked from classgraph/classgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShapeImpl.java
More file actions
52 lines (44 loc) · 821 Bytes
/
ShapeImpl.java
File metadata and controls
52 lines (44 loc) · 821 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
package com.xyz.fig.shape;
import java.awt.Graphics2D;
/**
* ShapeImpl.
*/
public abstract class ShapeImpl implements Shape {
/** The x. */
private final float x;
/** The y. */
private final float y;
/**
* Constructor.
*
* @param x
* the x
* @param y
* the y
*/
public ShapeImpl(final float x, final float y) {
this.x = x;
this.y = y;
}
/**
* Get the x.
*
* @return the x
*/
public float getX() {
return x;
}
/**
* Get the y.
*
* @return the y
*/
public float getY() {
return y;
}
/* (non-Javadoc)
* @see com.xyz.fig.Drawable#draw(java.awt.Graphics2D)
*/
@Override
public abstract void draw(Graphics2D f);
}