Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

EscherPropertyMetaData.java 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /* ====================================================================
  2. Licensed to the Apache Software Foundation (ASF) under one or more
  3. contributor license agreements. See the NOTICE file distributed with
  4. this work for additional information regarding copyright ownership.
  5. The ASF licenses this file to You under the Apache License, Version 2.0
  6. (the "License"); you may not use this file except in compliance with
  7. the License. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. ==================================================================== */
  15. package org.apache.poi.ddf;
  16. /**
  17. * This class stores the type and description of an escher property.
  18. *
  19. * @author Glen Stampoultzis (glens at apache.org)
  20. */
  21. public class EscherPropertyMetaData
  22. {
  23. // Escher property types.
  24. public static final byte TYPE_UNKNOWN = (byte) 0;
  25. public static final byte TYPE_BOOLEAN = (byte) 1;
  26. public static final byte TYPE_RGB = (byte) 2;
  27. public static final byte TYPE_SHAPEPATH = (byte) 3;
  28. public static final byte TYPE_SIMPLE = (byte)4;
  29. public static final byte TYPE_ARRAY = (byte)5;
  30. private String description;
  31. private byte type;
  32. /**
  33. * @param description The description of the escher property.
  34. */
  35. public EscherPropertyMetaData( String description )
  36. {
  37. this.description = description;
  38. }
  39. /**
  40. *
  41. * @param description The description of the escher property.
  42. * @param type The type of the property.
  43. */
  44. public EscherPropertyMetaData( String description, byte type )
  45. {
  46. this.description = description;
  47. this.type = type;
  48. }
  49. public String getDescription()
  50. {
  51. return description;
  52. }
  53. public byte getType()
  54. {
  55. return type;
  56. }
  57. }