001/********************************************** 002 * Copyright (C) 2010 Lukas Laag 003 * This file is part of lib-gwt-svg. 004 * 005 * libgwtsvg is free software: you can redistribute it and/or modify 006 * it under the terms of the GNU Lesser General Public License as published by 007 * the Free Software Foundation, either version 3 of the License, or 008 * (at your option) any later version. 009 * 010 * libgwtsvg is distributed in the hope that it will be useful, 011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 013 * GNU Lesser General Public License for more details. 014 * 015 * You should have received a copy of the GNU Lesser General Public License 016 * along with libgwtsvg. If not, see http://www.gnu.org/licenses/ 017 **********************************************/ 018/* 019 * Copyright (c) 2004 World Wide Web Consortium, 020 * 021 * (Massachusetts Institute of Technology, European Research Consortium for 022 * Informatics and Mathematics, Keio University). All Rights Reserved. This 023 * work is distributed under the W3C(r) Software License [1] in the hope that 024 * it will be useful, but WITHOUT ANY WARRANTY; without even the implied 025 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 026 * 027 * [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 028 */ 029 030package org.vectomatic.dom.svg; 031 032import com.google.gwt.core.client.JavaScriptException; 033 034/** 035 * The {@link org.vectomatic.dom.svg.OMSVGPathSegArcRel} interface corresponds 036 * to a "relative arcto" (a) path data command. 037 */ 038public class OMSVGPathSegArcRel extends OMSVGPathSeg { 039 protected OMSVGPathSegArcRel() { 040 } 041 042 // Implementation of the svg::SVGPathSegArcRel W3C IDL interface 043 /** 044 * The relative X coordinate for the end point of this path segment. 045 */ 046 public final native float getX() /*-{ 047 return this.x; 048 }-*/; 049 /** 050 * The relative X coordinate for the end point of this path segment. 051 * @throws DOMException(NO_MODIFICATION_ALLOWED_ERR) Raised on an attempt 052 * to change the value of a <a href="svgdom.html#ReadOnlyNodes">read only 053 * attribute</a>. 054 */ 055 public final native void setX(float value) throws JavaScriptException /*-{ 056 this.x = value; 057 }-*/; 058 /** 059 * The relative Y coordinate for the end point of this path segment. 060 */ 061 public final native float getY() /*-{ 062 return this.y; 063 }-*/; 064 /** 065 * The relative Y coordinate for the end point of this path segment. 066 * @throws DOMException(NO_MODIFICATION_ALLOWED_ERR) Raised on an attempt 067 * to change the value of a <a href="svgdom.html#ReadOnlyNodes">read only 068 * attribute</a>. 069 */ 070 public final native void setY(float value) throws JavaScriptException /*-{ 071 this.y = value; 072 }-*/; 073 /** 074 * The x-axis radius for the ellipse (i.e., r1). 075 */ 076 public final native float getR1() /*-{ 077 return this.r1; 078 }-*/; 079 /** 080 * The x-axis radius for the ellipse (i.e., r1). 081 * @throws DOMException(NO_MODIFICATION_ALLOWED_ERR) Raised on an attempt 082 * to change the value of a <a href="svgdom.html#ReadOnlyNodes">read only 083 * attribute</a>. 084 */ 085 public final native void setR1(float value) throws JavaScriptException /*-{ 086 this.r1 = value; 087 }-*/; 088 /** 089 * The y-axis radius for the ellipse (i.e., r2). 090 */ 091 public final native float getR2() /*-{ 092 return this.r2; 093 }-*/; 094 /** 095 * The y-axis radius for the ellipse (i.e., r2). 096 * @throws DOMException(NO_MODIFICATION_ALLOWED_ERR) Raised on an attempt 097 * to change the value of a <a href="svgdom.html#ReadOnlyNodes">read only 098 * attribute</a>. 099 */ 100 public final native void setR2(float value) throws JavaScriptException /*-{ 101 this.r2 = value; 102 }-*/; 103 /** 104 * The rotation angle in degrees for the ellipse's x-axis relative to the 105 * x-axis of the user coordinate system. 106 */ 107 public final native float getAngle() /*-{ 108 return this.angle; 109 }-*/; 110 /** 111 * The rotation angle in degrees for the ellipse's x-axis relative to the 112 * x-axis of the user coordinate system. 113 * @throws DOMException(NO_MODIFICATION_ALLOWED_ERR) Raised on an attempt 114 * to change the value of a <a href="svgdom.html#ReadOnlyNodes">read only 115 * attribute</a>. 116 */ 117 public final native void setAngle(float value) throws JavaScriptException /*-{ 118 this.angle = value; 119 }-*/; 120 /** 121 * The value of the large-arc-flag parameter. 122 */ 123 public final native boolean getLargeArcFlag() /*-{ 124 return this.largeArcFlag; 125 }-*/; 126 /** 127 * The value of the large-arc-flag parameter. 128 * @throws DOMException(NO_MODIFICATION_ALLOWED_ERR) Raised on an attempt 129 * to change the value of a <a href="svgdom.html#ReadOnlyNodes">read only 130 * attribute</a>. 131 */ 132 public final native void setLargeArcFlag(boolean value) throws JavaScriptException /*-{ 133 this.largeArcFlag = value; 134 }-*/; 135 /** 136 * The value of the sweep-flag parameter. 137 */ 138 public final native boolean getSweepFlag() /*-{ 139 return this.sweepFlag; 140 }-*/; 141 /** 142 * The value of the sweep-flag parameter. 143 * @throws DOMException(NO_MODIFICATION_ALLOWED_ERR) Raised on an attempt 144 * to change the value of a <a href="svgdom.html#ReadOnlyNodes">read only 145 * attribute</a>. 146 */ 147 public final native void setSweepFlag(boolean value) throws JavaScriptException /*-{ 148 this.sweepFlag = value; 149 }-*/; 150 151}