public EllipseResizer(Ellipse sceneGraphObject) { super(sceneGraphObject); originalRadiusX = sceneGraphObject.getRadiusX(); originalRadiusY = sceneGraphObject.getRadiusY(); propertyNames.add(radiusXName); propertyNames.add(radiusYName); }
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())); }