You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

BFEntry.java 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. * Copyright 1999-2004 The Apache Software Foundation.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. /* $Id$ */
  17. package org.apache.fop.fonts;
  18. /**
  19. * This is just a holder class for bfentries.
  20. */
  21. public class BFEntry {
  22. private int unicodeStart;
  23. private int unicodeEnd;
  24. private int glyphStartIndex;
  25. /**
  26. * Main constructor.
  27. * @param unicodeStart Unicode start index
  28. * @param unicodeEnd Unicode end index
  29. * @param glyphStartIndex glyph start index
  30. */
  31. public BFEntry(int unicodeStart, int unicodeEnd, int glyphStartIndex) {
  32. this.unicodeStart = unicodeStart;
  33. this.unicodeEnd = unicodeEnd;
  34. this.glyphStartIndex = glyphStartIndex;
  35. }
  36. /**
  37. * Returns the unicodeStart.
  38. * @return the Unicode start index
  39. */
  40. public int getUnicodeStart() {
  41. return unicodeStart;
  42. }
  43. /**
  44. * Returns the unicodeEnd.
  45. * @return the Unicode end index
  46. */
  47. public int getUnicodeEnd() {
  48. return unicodeEnd;
  49. }
  50. /**
  51. * Returns the glyphStartIndex.
  52. * @return the glyph start index
  53. */
  54. public int getGlyphStartIndex() {
  55. return glyphStartIndex;
  56. }
  57. }