3261N/A * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * @author Charlton Innovations, Inc. 0N/A * defines interface for primitives which can be placed into 0N/A * the graphic component manager framework 0N/A * This method allows the setupGeneralBinaryOp method to set 0N/A * the converters into the General version of the Primitive. 0N/A * These 4 methods are implemented automatically for any 0N/A * GraphicsPrimitive. They are used by setupGeneralBinaryOp 0N/A * to retrieve the information needed to find the right 0N/A * converter primitives. 0N/A * This method allows the setupGeneralUnaryOp method to set 0N/A * the converters into the General version of the Primitive. 0N/A * These 3 methods are implemented automatically for any 0N/A * GraphicsPrimitive. They are used by setupGeneralUnaryOp 0N/A * to retrieve the information needed to find the right 0N/A * converter primitives. 0N/A * INSTANCE DATA MEMBERS DESCRIBING CHARACTERISTICS OF THIS PRIMITIVE 0N/A // Making these be instance data members (instead of virtual methods 0N/A // overridden by subclasses) is actually cheaper, since each class 0N/A // is a singleton. As instance data members with final accessors, 0N/A // accesses can be inlined. 0N/A * Create a new GraphicsPrimitive with all of the required 0N/A * descriptive information. 0N/A * Create a new GraphicsPrimitive for native invocation 0N/A * with all of the required descriptive information. 0N/A * METHODS TO DESCRIBE THE SURFACES PRIMITIVES 0N/A * CAN OPERATE ON AND THE FUNCTIONALITY THEY IMPLEMENT 0N/A * Gets instance ID of this graphics primitive. 0N/A * Instance ID is comprised of four distinct ids (ORed together) 0N/A * that uniquely identify each instance of a GraphicsPrimitive 0N/A * object. The four ids making up instance ID are: 0N/A * 1. primitive id - identifier shared by all primitives of the 0N/A * same type (eg. all Blits have the same primitive id) 0N/A * 2. sourcetype id - identifies source surface type 0N/A * 3. desttype id - identifies destination surface type 0N/A * 4. compositetype id - identifies composite used 0N/A * @return instance ID 0N/A * Gets unique id for this GraphicsPrimitive type. 0N/A * This id is used to identify the TYPE of primitive (Blit vs. BlitBg) 0N/A * as opposed to INSTANCE of primitive. 0N/A * @return primitive ID 0N/A * Return true if this primitive can be used for the given signature 0N/A * surfaces, and composite. 0N/A * @param signature The signature of the given operation. Must be 0N/A * == (not just .equals) the signature string given by the 0N/A * abstract class that declares the operation. 0N/A * @param srctype The surface type for the source of the operation 0N/A * @param comptype The composite type for the operation 0N/A * @param dsttype The surface type for the destination of the operation 0N/A // A version of satisfies used for regression testing 0N/A "[log[,timestamp]],[count],"+
0N/A "[out:<filename>],[help],[verbose]");