KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > nightlabs > editor2d > figures > EllipseFigure


1 /**
2  * <p> Project: com.nightlabs.editor2d </p>
3  * <p> Copyright: Copyright (c) 2004 </p>
4  * <p> Company: NightLabs GmbH (Germany) </p>
5  * <p> Creation Date: 25.11.2004 </p>
6  * <p> Author: Daniel Mazurek </p>
7 **/

8 package com.nightlabs.editor2d.figures;
9
10
11 public class EllipseFigure
12 extends AbstractShapeFigure
13 {
14
15   public EllipseFigure()
16   {
17     super();
18 // createableFromBounds = true;
19
// getGeneralShape();
20
}
21     
22 // /* (non-Javadoc)
23
// * @see com.nightlabs.editor2d.figures.AbstractShapeFigure#getGeneralPath()
24
// */
25
// public GeneralShape getGeneralShape()
26
// {
27
// if (gp == null) {
28
//// Arc2D arc = new Arc2D.Double(getGPBounds().x, getGPBounds().y, getGPBounds().width, getGPBounds().height, startAngle, endAngle, Arc2D.OPEN);
29
// Arc2D arc = new Arc2D.Double(bounds.x, bounds.y, bounds.width, bounds.height, startAngle, endAngle, Arc2D.OPEN);
30
// gp = new GeneralShape(arc);
31
// }
32
// return gp;
33
// }
34

35   protected double endAngle = 360;
36   public double getEndAngle() {
37     return endAngle;
38   }
39   public void setEndAngle(double endAngle) {
40     this.endAngle = endAngle;
41   }
42   
43   protected double startAngle = 0;
44   public double getStartAngle() {
45     return startAngle;
46   }
47   public void setStartAngle(double startAngle) {
48     this.startAngle = startAngle;
49   }
50 }
51
Popular Tags