01: /*
02: *******************************************************************************
03: * Copyright (C) 1998-2004, International Business Machines Corporation and *
04: * others. All Rights Reserved. *
05: *******************************************************************************
06: *
07: * Created on Dec 3, 2003
08: *
09: *******************************************************************************
10: */
11: package com.ibm.icu.dev.tool.layout;
12:
13: public class LigatureEntry {
14: private int[] componentChars;
15: private int ligature;
16:
17: public LigatureEntry(int ligature, int[] componentChars,
18: int componentCount) {
19: this .componentChars = new int[componentCount];
20: this .ligature = ligature;
21: System.arraycopy(componentChars, 0, this .componentChars, 0,
22: componentCount);
23: }
24:
25: public int getComponentCount() {
26: return componentChars.length;
27: }
28:
29: public int getComponentChar(int componentIndex) {
30: return componentChars[componentIndex];
31: }
32:
33: public int getLigature() {
34: return ligature;
35: }
36: }
|