예제 #1
0
 public EllipseResizer(Ellipse sceneGraphObject) {
   super(sceneGraphObject);
   originalRadiusX = sceneGraphObject.getRadiusX();
   originalRadiusY = sceneGraphObject.getRadiusY();
   propertyNames.add(radiusXName);
   propertyNames.add(radiusYName);
 }
예제 #2
0
 private static void write(Ellipse ellipse, Writer writer) throws IOException {
   writer.write(
       String.format(
           "<ellipse cx=\"%f\" cy=\"%f\" rx=\"%f\" ry=\"%f\" />\n",
           ellipse.getCenterX(),
           ellipse.getCenterY(),
           ellipse.getRadiusX(),
           ellipse.getRadiusY()));
 }