org.vectomatic.dom.svg.OMSVGPreserveAspectRatio Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lib-gwt-svg Show documentation
Show all versions of lib-gwt-svg Show documentation
A GWT library to access the SVG functionalities of web browsers
/**********************************************
* Copyright (C) 2010 Lukas Laag
* This file is part of lib-gwt-svg.
*
* libgwtsvg is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* libgwtsvg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with libgwtsvg. If not, see http://www.gnu.org/licenses/
**********************************************/
/*
* Copyright (c) 2004 World Wide Web Consortium,
*
* (Massachusetts Institute of Technology, European Research Consortium for
* Informatics and Mathematics, Keio University). All Rights Reserved. This
* work is distributed under the W3C(r) Software License [1] in the hope that
* it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
*/
package org.vectomatic.dom.svg;
import com.google.gwt.core.client.JavaScriptException;
import com.google.gwt.core.client.JavaScriptObject;
/**
* The {@link org.vectomatic.dom.svg.OMSVGPreserveAspectRatio} interface corresponds
* to the preserveAspectRatio
attribute, which is available for
* some of SVG's elements. An {@link org.vectomatic.dom.svg.OMSVGPreserveAspectRatio}
* object can be designated as read only, which means that attempts
* to modify the object will result in an exception being thrown, as described
* below.
*/
public class OMSVGPreserveAspectRatio extends JavaScriptObject {
/**
* The enumeration was set to a value that is not one of predefined types.
* It is invalid to attempt to define a new value of this type or to attempt
* to switch an existing value to this type.
*/
public static final short SVG_PRESERVEASPECTRATIO_UNKNOWN = 0;
/**
* Corresponds to value 'none' for attribute
* preserveAspectRatio
.
*/
public static final short SVG_PRESERVEASPECTRATIO_NONE = 1;
/**
* Corresponds to value 'xMinYMin' for attribute
* preserveAspectRatio
.
*/
public static final short SVG_PRESERVEASPECTRATIO_XMINYMIN = 2;
/**
* Corresponds to value 'xMidYMin' for attribute
* preserveAspectRatio
.
*/
public static final short SVG_PRESERVEASPECTRATIO_XMIDYMIN = 3;
/**
* Corresponds to value 'xMaxYMin' for attribute
* preserveAspectRatio
.
*/
public static final short SVG_PRESERVEASPECTRATIO_XMAXYMIN = 4;
/**
* Corresponds to value 'XMinYMid' for attribute
* preserveAspectRatio
.
*/
public static final short SVG_PRESERVEASPECTRATIO_XMINYMID = 5;
/**
* Corresponds to value 'xMidYMid' for attribute
* preserveAspectRatio
.
*/
public static final short SVG_PRESERVEASPECTRATIO_XMIDYMID = 6;
/**
* Corresponds to value 'xMaxYMid' for attribute
* preserveAspectRatio
.
*/
public static final short SVG_PRESERVEASPECTRATIO_XMAXYMID = 7;
/**
* Corresponds to value 'xMinYMax' for attribute
* preserveAspectRatio
.
*/
public static final short SVG_PRESERVEASPECTRATIO_XMINYMAX = 8;
/**
* Corresponds to value 'xMidYMax' for attribute
* preserveAspectRatio
.
*/
public static final short SVG_PRESERVEASPECTRATIO_XMIDYMAX = 9;
/**
* Corresponds to value 'xMaxYMax' for attribute
* preserveAspectRatio
.
*/
public static final short SVG_PRESERVEASPECTRATIO_XMAXYMAX = 10;
/**
* The enumeration was set to a value that is not one of predefined types.
* It is invalid to attempt to define a new value of this type or to attempt
* to switch an existing value to this type.
*/
public static final short SVG_MEETORSLICE_UNKNOWN = 0;
/**
* Corresponds to value 'meet' for attribute
* preserveAspectRatio
.
*/
public static final short SVG_MEETORSLICE_MEET = 1;
/**
* Corresponds to value 'slice' for attribute
* preserveAspectRatio
.
*/
public static final short SVG_MEETORSLICE_SLICE = 2;
protected OMSVGPreserveAspectRatio() {
}
// Implementation of the svg::SVGPreserveAspectRatio W3C IDL interface
/**
* The type of the alignment value as specified by one of the SVG_PRESERVEASPECTRATIO_
* constants defined on this interface.
*/
public final native short getAlign() /*-{
return this.align;
}-*/;
/**
* The type of the alignment value as specified by one of the SVG_PRESERVEASPECTRATIO_
* constants defined on this interface.
* @throws DOMException(NO_MODIFICATION_ALLOWED_ERR) Raised when the object
* corresponds to a read only attribute
* or when the object itself is read
* only.
*/
public final native void setAlign(short value) throws JavaScriptException /*-{
this.align = value;
}-*/;
/**
* The type of the meet-or-slice value as specified by one of the SVG_MEETORSLICE_
* constants defined on this interface.
*/
public final native short getMeetOrSlice() /*-{
return this.meetOrSlice;
}-*/;
/**
* The type of the meet-or-slice value as specified by one of the SVG_MEETORSLICE_
* constants defined on this interface.
* @throws DOMException(NO_MODIFICATION_ALLOWED_ERR) Raised when the object
* corresponds to a read only attribute
* or when the object itself is read
* only.
*/
public final native void setMeetOrSlice(short value) throws JavaScriptException /*-{
this.meetOrSlice = value;
}-*/;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy