/* 
______________________________________________________________________
*
* Copyright (c) 1996-2004 QUEST SOFTWARE INC.  All Rights Reserved.
* http://java.quest.com
*
* This software is the confidential and proprietary information of
* Quest Software Inc. ("Confidential Information").  You shall not disclose
* such Confidential Information and shall use it only in accordance with the
* terms of the license agreement you entered into with Quest Software.
*
* QUEST SOFTWARE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY
* OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
* TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
* PURPOSE, OR NON-INFRINGEMENT. QUEST SOFTWARE SHALL NOT BE LIABLE FOR ANY
* DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
* DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
* ______________________________________________________________________
*/

// RCSID -- $RCSfile: KernPCL.java,v $ $Revision: 1.2 $ $Date: 2006-03-17 21:13:25 $ $Locker:  $  Quest Software Inc.

package com.klg.jclass.page.pcl;

import java.util.*;

/**
 * This class stores the kerning information (track and per-character) of
 * a PCL font
 */
public class KernPCL {

Vector kernPairs    = new Vector();
Vector sectors      = new Vector();
Hashtable tracks    = new Hashtable();
int numberKernChars;
int numberSectors;
int numberTracks;
int numberPairs;

// boo, linear search
public KernPairPCL findPairByIndex(int index) {
	KernPairPCL p = null;
	for (Enumeration e = kernPairs.elements(); e.hasMoreElements(); ) {
		p = (KernPairPCL) e.nextElement();
		if (p.firstCharIndex == index) {
			break;
		}
	}
	return p;
}
}
