Triangle.
| 6 | * Triangle. |
| 7 | */ |
| 8 | public class Triangle extends ShapeImpl { |
| 9 | /** The edge len. */ |
| 10 | private final float edgeLen; |
| 11 | |
| 12 | /** The rotation. */ |
| 13 | private final float rotation; |
| 14 | |
| 15 | /** |
| 16 | * Constructor. |
| 17 | * |
| 18 | * @param x |
| 19 | * the x |
| 20 | * @param y |
| 21 | * the y |
| 22 | * @param edgeLen |
| 23 | * the edge len |
| 24 | * @param rotation |
| 25 | * the rotation |
| 26 | */ |
| 27 | public Triangle(final float x, final float y, final float edgeLen, final float rotation) { |
| 28 | super(x, y); |
| 29 | this.edgeLen = edgeLen; |
| 30 | this.rotation = rotation; |
| 31 | } |
| 32 | |
| 33 | /** |
| 34 | * Get the edge len. |
| 35 | * |
| 36 | * @return the edge len |
| 37 | */ |
| 38 | public float getEdgeLen() { |
| 39 | return edgeLen; |
| 40 | } |
| 41 | |
| 42 | /** |
| 43 | * Get the rotation. |
| 44 | * |
| 45 | * @return the rotation |
| 46 | */ |
| 47 | public float getRotation() { |
| 48 | return rotation; |
| 49 | } |
| 50 | |
| 51 | /* (non-Javadoc) |
| 52 | * @see com.xyz.fig.shape.ShapeImpl#draw(java.awt.Graphics2D) |
| 53 | */ |
| 54 | @Override |
| 55 | public void draw(final Graphics2D f) { |
| 56 | throw new RuntimeException("Not implemented"); |
| 57 | } |
| 58 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…