Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2012 Google Inc.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License"); you may not
   * use this file except in compliance with the License. You may obtain a copy of
   * the License at
   * 
   * http://www.apache.org/licenses/LICENSE-2.0
   * 
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  * License for the specific language governing permissions and limitations under
  * the License.
  */
 package elemental.svg;
 
 
 import java.util.Date;

The SVGPreserveAspectRatio interface corresponds to the preserveAspectRatio attribute, which is available for some of SVG's elements.

An SVGPreserveAspectRatio object can be designated as read only, which means that attempts to modify the object will result in an exception being thrown.

 
 public interface SVGPreserveAspectRatio {

  
Corresponds to value meet for attribute preserveAspectRatio.
 
 
     static final int SVG_MEETORSLICE_MEET = 1;

  
Corresponds to value slice for attribute preserveAspectRatio.
 
 
     static final int SVG_MEETORSLICE_SLICE = 2;

  
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.
 
 
     static final int SVG_MEETORSLICE_UNKNOWN = 0;

  
Corresponds to value none for attribute preserveAspectRatio.
 
 
     static final int SVG_PRESERVEASPECTRATIO_NONE = 1;

  
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.
 
 
     static final int SVG_PRESERVEASPECTRATIO_UNKNOWN = 0;

  
Corresponds to value xMaxYMax for attribute preserveAspectRatio.
 
 
     static final int SVG_PRESERVEASPECTRATIO_XMAXYMAX = 10;

  
Corresponds to value xMaxYMid for attribute preserveAspectRatio.
 
 
     static final int SVG_PRESERVEASPECTRATIO_XMAXYMID = 7;

  
Corresponds to value xMaxYMin for attribute preserveAspectRatio.
 
 
     static final int SVG_PRESERVEASPECTRATIO_XMAXYMIN = 4;

  
Corresponds to value xMidYMax for attribute preserveAspectRatio.
 
 
     static final int SVG_PRESERVEASPECTRATIO_XMIDYMAX = 9;

  
Corresponds to value xMidYMid for attribute preserveAspectRatio.
 
 
    static final int SVG_PRESERVEASPECTRATIO_XMIDYMID = 6;

  
Corresponds to value xMidYMin for attribute preserveAspectRatio.
    static final int SVG_PRESERVEASPECTRATIO_XMIDYMIN = 3;

  
Corresponds to value xMinYMax for attribute preserveAspectRatio.
    static final int SVG_PRESERVEASPECTRATIO_XMINYMAX = 8;

  
Corresponds to value xMinYMid for attribute preserveAspectRatio.
    static final int SVG_PRESERVEASPECTRATIO_XMINYMID = 5;

  
Corresponds to value xMinYMin for attribute preserveAspectRatio.
    static final int SVG_PRESERVEASPECTRATIO_XMINYMIN = 2;


  
The type of the alignment value as specified by one of the SVG_PRESERVEASPECTRATIO_* constants defined on this interface.
  int getAlign();
  void setAlign(int arg);


  
The type of the meet-or-slice value as specified by one of the SVG_MEETORSLICE_* constants defined on this interface.
  int getMeetOrSlice();
  void setMeetOrSlice(int arg);
New to GrepCode? Check out our FAQ X