blob: 23efdc3c6e4fe56107154d52daefa1b2b7202087 [file] [log] [blame]
/*
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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 flash.swf.types;
/**
* A common base class for edge record data and logic.
*/
public abstract class EdgeRecord extends ShapeRecord
{
/**
* The maximum value that an EdgeRecord delta can take in SWF.
* <p>
* This limit arises due to the SWF encoding format of a Shape's EdgeRecord.
* A delta is encoded using a specified bit length, however, the number
* of bits used to record this bitlength (minus 2) is restricted to 4 bits,
* which is 15 + 2 = 17 bits for unsigned, or 16 bits for signed.
* <p>
* This restricts the signed delta values to 65535 twips, i.e. (2 pow 16) - 1.
*
*/
public static final int MAX_DELTA_IN_TWIPS = 65535;
public boolean equals( Object o )
{
return (super.equals( o ) && (o instanceof EdgeRecord));
}
}