PageRenderTime 46ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

/components/forks/poi/src/loci/poi/hssf/record/TextRecord.java

http://github.com/openmicroscopy/bioformats
Java | 771 lines | 407 code | 87 blank | 277 comment | 2 complexity | 1e7f395ffda68b878bbae57caa69ee7e MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, Apache-2.0, BSD-2-Clause, MPL-2.0-no-copyleft-exception
  1. /*
  2. * #%L
  3. * Fork of Apache Jakarta POI.
  4. * %%
  5. * Copyright (C) 2008 - 2013 Open Microscopy Environment:
  6. * - Board of Regents of the University of Wisconsin-Madison
  7. * - Glencoe Software, Inc.
  8. * - University of Dundee
  9. * %%
  10. * Licensed under the Apache License, Version 2.0 (the "License");
  11. * you may not use this file except in compliance with the License.
  12. * You may obtain a copy of the License at
  13. *
  14. * http://www.apache.org/licenses/LICENSE-2.0
  15. *
  16. * Unless required by applicable law or agreed to in writing, software
  17. * distributed under the License is distributed on an "AS IS" BASIS,
  18. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  19. * See the License for the specific language governing permissions and
  20. * limitations under the License.
  21. * #L%
  22. */
  23. /* ====================================================================
  24. Licensed to the Apache Software Foundation (ASF) under one or more
  25. contributor license agreements. See the NOTICE file distributed with
  26. this work for additional information regarding copyright ownership.
  27. The ASF licenses this file to You under the Apache License, Version 2.0
  28. (the "License"); you may not use this file except in compliance with
  29. the License. You may obtain a copy of the License at
  30. http://www.apache.org/licenses/LICENSE-2.0
  31. Unless required by applicable law or agreed to in writing, software
  32. distributed under the License is distributed on an "AS IS" BASIS,
  33. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  34. See the License for the specific language governing permissions and
  35. limitations under the License.
  36. ==================================================================== */
  37. package loci.poi.hssf.record;
  38. import loci.poi.util.*;
  39. /**
  40. * The text record is used to define text stored on a chart.
  41. * NOTE: This source is automatically generated please do not modify this file. Either subclass or
  42. * remove the record in src/records/definitions.
  43. * @author Glen Stampoultzis (glens at apache.org)
  44. */
  45. public class TextRecord
  46. extends Record
  47. {
  48. public final static short sid = 0x1025;
  49. private byte field_1_horizontalAlignment;
  50. public final static byte HORIZONTAL_ALIGNMENT_LEFT = 1;
  51. public final static byte HORIZONTAL_ALIGNMENT_CENTER = 2;
  52. public final static byte HORIZONTAL_ALIGNMENT_BOTTOM = 3;
  53. public final static byte HORIZONTAL_ALIGNMENT_JUSTIFY = 4;
  54. private byte field_2_verticalAlignment;
  55. public final static byte VERTICAL_ALIGNMENT_TOP = 1;
  56. public final static byte VERTICAL_ALIGNMENT_CENTER = 2;
  57. public final static byte VERTICAL_ALIGNMENT_BOTTOM = 3;
  58. public final static byte VERTICAL_ALIGNMENT_JUSTIFY = 4;
  59. private short field_3_displayMode;
  60. public final static short DISPLAY_MODE_TRANSPARENT = 1;
  61. public final static short DISPLAY_MODE_OPAQUE = 2;
  62. private int field_4_rgbColor;
  63. private int field_5_x;
  64. private int field_6_y;
  65. private int field_7_width;
  66. private int field_8_height;
  67. private short field_9_options1;
  68. private BitField autoColor = BitFieldFactory.getInstance(0x1);
  69. private BitField showKey = BitFieldFactory.getInstance(0x2);
  70. private BitField showValue = BitFieldFactory.getInstance(0x4);
  71. private BitField vertical = BitFieldFactory.getInstance(0x8);
  72. private BitField autoGeneratedText = BitFieldFactory.getInstance(0x10);
  73. private BitField generated = BitFieldFactory.getInstance(0x20);
  74. private BitField autoLabelDeleted = BitFieldFactory.getInstance(0x40);
  75. private BitField autoBackground = BitFieldFactory.getInstance(0x80);
  76. private BitField rotation = BitFieldFactory.getInstance(0x0700);
  77. public final static short ROTATION_NONE = 0;
  78. public final static short ROTATION_TOP_TO_BOTTOM = 1;
  79. public final static short ROTATION_ROTATED_90_DEGREES = 2;
  80. public final static short ROTATION_ROTATED_90_DEGREES_CLOCKWISE = 3;
  81. private BitField showCategoryLabelAsPercentage = BitFieldFactory.getInstance(0x800);
  82. private BitField showValueAsPercentage = BitFieldFactory.getInstance(0x1000);
  83. private BitField showBubbleSizes = BitFieldFactory.getInstance(0x2000);
  84. private BitField showLabel = BitFieldFactory.getInstance(0x4000);
  85. private short field_10_indexOfColorValue;
  86. private short field_11_options2;
  87. private BitField dataLabelPlacement = BitFieldFactory.getInstance(0x000F);
  88. public final static short DATA_LABEL_PLACEMENT_CHART_DEPENDENT = 0;
  89. public final static short DATA_LABEL_PLACEMENT_OUTSIDE = 1;
  90. public final static short DATA_LABEL_PLACEMENT_INSIDE = 2;
  91. public final static short DATA_LABEL_PLACEMENT_CENTER = 3;
  92. public final static short DATA_LABEL_PLACEMENT_AXIS = 4;
  93. public final static short DATA_LABEL_PLACEMENT_ABOVE = 5;
  94. public final static short DATA_LABEL_PLACEMENT_BELOW = 6;
  95. public final static short DATA_LABEL_PLACEMENT_LEFT = 7;
  96. public final static short DATA_LABEL_PLACEMENT_RIGHT = 8;
  97. public final static short DATA_LABEL_PLACEMENT_AUTO = 9;
  98. public final static short DATA_LABEL_PLACEMENT_USER_MOVED = 10;
  99. private short field_12_textRotation;
  100. public TextRecord()
  101. {
  102. }
  103. /**
  104. * Constructs a Text record and sets its fields appropriately.
  105. *
  106. * @param in the RecordInputstream to read the record from
  107. */
  108. public TextRecord(RecordInputStream in)
  109. {
  110. super(in);
  111. }
  112. /**
  113. * Checks the sid matches the expected side for this record
  114. *
  115. * @param id the expected sid.
  116. */
  117. protected void validateSid(short id)
  118. {
  119. if (id != sid)
  120. {
  121. throw new RecordFormatException("Not a Text record");
  122. }
  123. }
  124. protected void fillFields(RecordInputStream in)
  125. {
  126. field_1_horizontalAlignment = in.readByte();
  127. field_2_verticalAlignment = in.readByte();
  128. field_3_displayMode = in.readShort();
  129. field_4_rgbColor = in.readInt();
  130. field_5_x = in.readInt();
  131. field_6_y = in.readInt();
  132. field_7_width = in.readInt();
  133. field_8_height = in.readInt();
  134. field_9_options1 = in.readShort();
  135. field_10_indexOfColorValue = in.readShort();
  136. field_11_options2 = in.readShort();
  137. field_12_textRotation = in.readShort();
  138. }
  139. public String toString()
  140. {
  141. StringBuffer buffer = new StringBuffer();
  142. buffer.append("[TEXT]\n");
  143. buffer.append(" .horizontalAlignment = ")
  144. .append("0x").append(HexDump.toHex( getHorizontalAlignment ()))
  145. .append(" (").append( getHorizontalAlignment() ).append(" )");
  146. buffer.append(System.getProperty("line.separator"));
  147. buffer.append(" .verticalAlignment = ")
  148. .append("0x").append(HexDump.toHex( getVerticalAlignment ()))
  149. .append(" (").append( getVerticalAlignment() ).append(" )");
  150. buffer.append(System.getProperty("line.separator"));
  151. buffer.append(" .displayMode = ")
  152. .append("0x").append(HexDump.toHex( getDisplayMode ()))
  153. .append(" (").append( getDisplayMode() ).append(" )");
  154. buffer.append(System.getProperty("line.separator"));
  155. buffer.append(" .rgbColor = ")
  156. .append("0x").append(HexDump.toHex( getRgbColor ()))
  157. .append(" (").append( getRgbColor() ).append(" )");
  158. buffer.append(System.getProperty("line.separator"));
  159. buffer.append(" .x = ")
  160. .append("0x").append(HexDump.toHex( getX ()))
  161. .append(" (").append( getX() ).append(" )");
  162. buffer.append(System.getProperty("line.separator"));
  163. buffer.append(" .y = ")
  164. .append("0x").append(HexDump.toHex( getY ()))
  165. .append(" (").append( getY() ).append(" )");
  166. buffer.append(System.getProperty("line.separator"));
  167. buffer.append(" .width = ")
  168. .append("0x").append(HexDump.toHex( getWidth ()))
  169. .append(" (").append( getWidth() ).append(" )");
  170. buffer.append(System.getProperty("line.separator"));
  171. buffer.append(" .height = ")
  172. .append("0x").append(HexDump.toHex( getHeight ()))
  173. .append(" (").append( getHeight() ).append(" )");
  174. buffer.append(System.getProperty("line.separator"));
  175. buffer.append(" .options1 = ")
  176. .append("0x").append(HexDump.toHex( getOptions1 ()))
  177. .append(" (").append( getOptions1() ).append(" )");
  178. buffer.append(System.getProperty("line.separator"));
  179. buffer.append(" .autoColor = ").append(isAutoColor()).append('\n');
  180. buffer.append(" .showKey = ").append(isShowKey()).append('\n');
  181. buffer.append(" .showValue = ").append(isShowValue()).append('\n');
  182. buffer.append(" .vertical = ").append(isVertical()).append('\n');
  183. buffer.append(" .autoGeneratedText = ").append(isAutoGeneratedText()).append('\n');
  184. buffer.append(" .generated = ").append(isGenerated()).append('\n');
  185. buffer.append(" .autoLabelDeleted = ").append(isAutoLabelDeleted()).append('\n');
  186. buffer.append(" .autoBackground = ").append(isAutoBackground()).append('\n');
  187. buffer.append(" .rotation = ").append(getRotation()).append('\n');
  188. buffer.append(" .showCategoryLabelAsPercentage = ").append(isShowCategoryLabelAsPercentage()).append('\n');
  189. buffer.append(" .showValueAsPercentage = ").append(isShowValueAsPercentage()).append('\n');
  190. buffer.append(" .showBubbleSizes = ").append(isShowBubbleSizes()).append('\n');
  191. buffer.append(" .showLabel = ").append(isShowLabel()).append('\n');
  192. buffer.append(" .indexOfColorValue = ")
  193. .append("0x").append(HexDump.toHex( getIndexOfColorValue ()))
  194. .append(" (").append( getIndexOfColorValue() ).append(" )");
  195. buffer.append(System.getProperty("line.separator"));
  196. buffer.append(" .options2 = ")
  197. .append("0x").append(HexDump.toHex( getOptions2 ()))
  198. .append(" (").append( getOptions2() ).append(" )");
  199. buffer.append(System.getProperty("line.separator"));
  200. buffer.append(" .dataLabelPlacement = ").append(getDataLabelPlacement()).append('\n');
  201. buffer.append(" .textRotation = ")
  202. .append("0x").append(HexDump.toHex( getTextRotation ()))
  203. .append(" (").append( getTextRotation() ).append(" )");
  204. buffer.append(System.getProperty("line.separator"));
  205. buffer.append("[/TEXT]\n");
  206. return buffer.toString();
  207. }
  208. public int serialize(int offset, byte[] data)
  209. {
  210. int pos = 0;
  211. LittleEndian.putShort(data, 0 + offset, sid);
  212. LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));
  213. data[ 4 + offset + pos ] = field_1_horizontalAlignment;
  214. data[ 5 + offset + pos ] = field_2_verticalAlignment;
  215. LittleEndian.putShort(data, 6 + offset + pos, field_3_displayMode);
  216. LittleEndian.putInt(data, 8 + offset + pos, field_4_rgbColor);
  217. LittleEndian.putInt(data, 12 + offset + pos, field_5_x);
  218. LittleEndian.putInt(data, 16 + offset + pos, field_6_y);
  219. LittleEndian.putInt(data, 20 + offset + pos, field_7_width);
  220. LittleEndian.putInt(data, 24 + offset + pos, field_8_height);
  221. LittleEndian.putShort(data, 28 + offset + pos, field_9_options1);
  222. LittleEndian.putShort(data, 30 + offset + pos, field_10_indexOfColorValue);
  223. LittleEndian.putShort(data, 32 + offset + pos, field_11_options2);
  224. LittleEndian.putShort(data, 34 + offset + pos, field_12_textRotation);
  225. return getRecordSize();
  226. }
  227. /**
  228. * Size of record (exluding 4 byte header)
  229. */
  230. public int getRecordSize()
  231. {
  232. return 4 + 1 + 1 + 2 + 4 + 4 + 4 + 4 + 4 + 2 + 2 + 2 + 2;
  233. }
  234. public short getSid()
  235. {
  236. return sid;
  237. }
  238. public Object clone() {
  239. TextRecord rec = new TextRecord();
  240. rec.field_1_horizontalAlignment = field_1_horizontalAlignment;
  241. rec.field_2_verticalAlignment = field_2_verticalAlignment;
  242. rec.field_3_displayMode = field_3_displayMode;
  243. rec.field_4_rgbColor = field_4_rgbColor;
  244. rec.field_5_x = field_5_x;
  245. rec.field_6_y = field_6_y;
  246. rec.field_7_width = field_7_width;
  247. rec.field_8_height = field_8_height;
  248. rec.field_9_options1 = field_9_options1;
  249. rec.field_10_indexOfColorValue = field_10_indexOfColorValue;
  250. rec.field_11_options2 = field_11_options2;
  251. rec.field_12_textRotation = field_12_textRotation;
  252. return rec;
  253. }
  254. /**
  255. * Get the horizontal alignment field for the Text record.
  256. *
  257. * @return One of
  258. * HORIZONTAL_ALIGNMENT_LEFT
  259. * HORIZONTAL_ALIGNMENT_CENTER
  260. * HORIZONTAL_ALIGNMENT_BOTTOM
  261. * HORIZONTAL_ALIGNMENT_JUSTIFY
  262. */
  263. public byte getHorizontalAlignment()
  264. {
  265. return field_1_horizontalAlignment;
  266. }
  267. /**
  268. * Set the horizontal alignment field for the Text record.
  269. *
  270. * @param field_1_horizontalAlignment
  271. * One of
  272. * HORIZONTAL_ALIGNMENT_LEFT
  273. * HORIZONTAL_ALIGNMENT_CENTER
  274. * HORIZONTAL_ALIGNMENT_BOTTOM
  275. * HORIZONTAL_ALIGNMENT_JUSTIFY
  276. */
  277. public void setHorizontalAlignment(byte field_1_horizontalAlignment)
  278. {
  279. this.field_1_horizontalAlignment = field_1_horizontalAlignment;
  280. }
  281. /**
  282. * Get the vertical alignment field for the Text record.
  283. *
  284. * @return One of
  285. * VERTICAL_ALIGNMENT_TOP
  286. * VERTICAL_ALIGNMENT_CENTER
  287. * VERTICAL_ALIGNMENT_BOTTOM
  288. * VERTICAL_ALIGNMENT_JUSTIFY
  289. */
  290. public byte getVerticalAlignment()
  291. {
  292. return field_2_verticalAlignment;
  293. }
  294. /**
  295. * Set the vertical alignment field for the Text record.
  296. *
  297. * @param field_2_verticalAlignment
  298. * One of
  299. * VERTICAL_ALIGNMENT_TOP
  300. * VERTICAL_ALIGNMENT_CENTER
  301. * VERTICAL_ALIGNMENT_BOTTOM
  302. * VERTICAL_ALIGNMENT_JUSTIFY
  303. */
  304. public void setVerticalAlignment(byte field_2_verticalAlignment)
  305. {
  306. this.field_2_verticalAlignment = field_2_verticalAlignment;
  307. }
  308. /**
  309. * Get the display mode field for the Text record.
  310. *
  311. * @return One of
  312. * DISPLAY_MODE_TRANSPARENT
  313. * DISPLAY_MODE_OPAQUE
  314. */
  315. public short getDisplayMode()
  316. {
  317. return field_3_displayMode;
  318. }
  319. /**
  320. * Set the display mode field for the Text record.
  321. *
  322. * @param field_3_displayMode
  323. * One of
  324. * DISPLAY_MODE_TRANSPARENT
  325. * DISPLAY_MODE_OPAQUE
  326. */
  327. public void setDisplayMode(short field_3_displayMode)
  328. {
  329. this.field_3_displayMode = field_3_displayMode;
  330. }
  331. /**
  332. * Get the rgbColor field for the Text record.
  333. */
  334. public int getRgbColor()
  335. {
  336. return field_4_rgbColor;
  337. }
  338. /**
  339. * Set the rgbColor field for the Text record.
  340. */
  341. public void setRgbColor(int field_4_rgbColor)
  342. {
  343. this.field_4_rgbColor = field_4_rgbColor;
  344. }
  345. /**
  346. * Get the x field for the Text record.
  347. */
  348. public int getX()
  349. {
  350. return field_5_x;
  351. }
  352. /**
  353. * Set the x field for the Text record.
  354. */
  355. public void setX(int field_5_x)
  356. {
  357. this.field_5_x = field_5_x;
  358. }
  359. /**
  360. * Get the y field for the Text record.
  361. */
  362. public int getY()
  363. {
  364. return field_6_y;
  365. }
  366. /**
  367. * Set the y field for the Text record.
  368. */
  369. public void setY(int field_6_y)
  370. {
  371. this.field_6_y = field_6_y;
  372. }
  373. /**
  374. * Get the width field for the Text record.
  375. */
  376. public int getWidth()
  377. {
  378. return field_7_width;
  379. }
  380. /**
  381. * Set the width field for the Text record.
  382. */
  383. public void setWidth(int field_7_width)
  384. {
  385. this.field_7_width = field_7_width;
  386. }
  387. /**
  388. * Get the height field for the Text record.
  389. */
  390. public int getHeight()
  391. {
  392. return field_8_height;
  393. }
  394. /**
  395. * Set the height field for the Text record.
  396. */
  397. public void setHeight(int field_8_height)
  398. {
  399. this.field_8_height = field_8_height;
  400. }
  401. /**
  402. * Get the options1 field for the Text record.
  403. */
  404. public short getOptions1()
  405. {
  406. return field_9_options1;
  407. }
  408. /**
  409. * Set the options1 field for the Text record.
  410. */
  411. public void setOptions1(short field_9_options1)
  412. {
  413. this.field_9_options1 = field_9_options1;
  414. }
  415. /**
  416. * Get the index of color value field for the Text record.
  417. */
  418. public short getIndexOfColorValue()
  419. {
  420. return field_10_indexOfColorValue;
  421. }
  422. /**
  423. * Set the index of color value field for the Text record.
  424. */
  425. public void setIndexOfColorValue(short field_10_indexOfColorValue)
  426. {
  427. this.field_10_indexOfColorValue = field_10_indexOfColorValue;
  428. }
  429. /**
  430. * Get the options2 field for the Text record.
  431. */
  432. public short getOptions2()
  433. {
  434. return field_11_options2;
  435. }
  436. /**
  437. * Set the options2 field for the Text record.
  438. */
  439. public void setOptions2(short field_11_options2)
  440. {
  441. this.field_11_options2 = field_11_options2;
  442. }
  443. /**
  444. * Get the text rotation field for the Text record.
  445. */
  446. public short getTextRotation()
  447. {
  448. return field_12_textRotation;
  449. }
  450. /**
  451. * Set the text rotation field for the Text record.
  452. */
  453. public void setTextRotation(short field_12_textRotation)
  454. {
  455. this.field_12_textRotation = field_12_textRotation;
  456. }
  457. /**
  458. * Sets the auto color field value.
  459. * true = automaticly selected colour, false = user-selected
  460. */
  461. public void setAutoColor(boolean value)
  462. {
  463. field_9_options1 = autoColor.setShortBoolean(field_9_options1, value);
  464. }
  465. /**
  466. * true = automaticly selected colour, false = user-selected
  467. * @return the auto color field value.
  468. */
  469. public boolean isAutoColor()
  470. {
  471. return autoColor.isSet(field_9_options1);
  472. }
  473. /**
  474. * Sets the show key field value.
  475. * true = draw legend
  476. */
  477. public void setShowKey(boolean value)
  478. {
  479. field_9_options1 = showKey.setShortBoolean(field_9_options1, value);
  480. }
  481. /**
  482. * true = draw legend
  483. * @return the show key field value.
  484. */
  485. public boolean isShowKey()
  486. {
  487. return showKey.isSet(field_9_options1);
  488. }
  489. /**
  490. * Sets the show value field value.
  491. * false = text is category label
  492. */
  493. public void setShowValue(boolean value)
  494. {
  495. field_9_options1 = showValue.setShortBoolean(field_9_options1, value);
  496. }
  497. /**
  498. * false = text is category label
  499. * @return the show value field value.
  500. */
  501. public boolean isShowValue()
  502. {
  503. return showValue.isSet(field_9_options1);
  504. }
  505. /**
  506. * Sets the vertical field value.
  507. * true = text is vertical
  508. */
  509. public void setVertical(boolean value)
  510. {
  511. field_9_options1 = vertical.setShortBoolean(field_9_options1, value);
  512. }
  513. /**
  514. * true = text is vertical
  515. * @return the vertical field value.
  516. */
  517. public boolean isVertical()
  518. {
  519. return vertical.isSet(field_9_options1);
  520. }
  521. /**
  522. * Sets the auto generated text field value.
  523. *
  524. */
  525. public void setAutoGeneratedText(boolean value)
  526. {
  527. field_9_options1 = autoGeneratedText.setShortBoolean(field_9_options1, value);
  528. }
  529. /**
  530. *
  531. * @return the auto generated text field value.
  532. */
  533. public boolean isAutoGeneratedText()
  534. {
  535. return autoGeneratedText.isSet(field_9_options1);
  536. }
  537. /**
  538. * Sets the generated field value.
  539. *
  540. */
  541. public void setGenerated(boolean value)
  542. {
  543. field_9_options1 = generated.setShortBoolean(field_9_options1, value);
  544. }
  545. /**
  546. *
  547. * @return the generated field value.
  548. */
  549. public boolean isGenerated()
  550. {
  551. return generated.isSet(field_9_options1);
  552. }
  553. /**
  554. * Sets the auto label deleted field value.
  555. *
  556. */
  557. public void setAutoLabelDeleted(boolean value)
  558. {
  559. field_9_options1 = autoLabelDeleted.setShortBoolean(field_9_options1, value);
  560. }
  561. /**
  562. *
  563. * @return the auto label deleted field value.
  564. */
  565. public boolean isAutoLabelDeleted()
  566. {
  567. return autoLabelDeleted.isSet(field_9_options1);
  568. }
  569. /**
  570. * Sets the auto background field value.
  571. *
  572. */
  573. public void setAutoBackground(boolean value)
  574. {
  575. field_9_options1 = autoBackground.setShortBoolean(field_9_options1, value);
  576. }
  577. /**
  578. *
  579. * @return the auto background field value.
  580. */
  581. public boolean isAutoBackground()
  582. {
  583. return autoBackground.isSet(field_9_options1);
  584. }
  585. /**
  586. * Sets the rotation field value.
  587. *
  588. */
  589. public void setRotation(short value)
  590. {
  591. field_9_options1 = rotation.setShortValue(field_9_options1, value);
  592. }
  593. /**
  594. *
  595. * @return the rotation field value.
  596. */
  597. public short getRotation()
  598. {
  599. return rotation.getShortValue(field_9_options1);
  600. }
  601. /**
  602. * Sets the show category label as percentage field value.
  603. *
  604. */
  605. public void setShowCategoryLabelAsPercentage(boolean value)
  606. {
  607. field_9_options1 = showCategoryLabelAsPercentage.setShortBoolean(field_9_options1, value);
  608. }
  609. /**
  610. *
  611. * @return the show category label as percentage field value.
  612. */
  613. public boolean isShowCategoryLabelAsPercentage()
  614. {
  615. return showCategoryLabelAsPercentage.isSet(field_9_options1);
  616. }
  617. /**
  618. * Sets the show value as percentage field value.
  619. *
  620. */
  621. public void setShowValueAsPercentage(boolean value)
  622. {
  623. field_9_options1 = showValueAsPercentage.setShortBoolean(field_9_options1, value);
  624. }
  625. /**
  626. *
  627. * @return the show value as percentage field value.
  628. */
  629. public boolean isShowValueAsPercentage()
  630. {
  631. return showValueAsPercentage.isSet(field_9_options1);
  632. }
  633. /**
  634. * Sets the show bubble sizes field value.
  635. *
  636. */
  637. public void setShowBubbleSizes(boolean value)
  638. {
  639. field_9_options1 = showBubbleSizes.setShortBoolean(field_9_options1, value);
  640. }
  641. /**
  642. *
  643. * @return the show bubble sizes field value.
  644. */
  645. public boolean isShowBubbleSizes()
  646. {
  647. return showBubbleSizes.isSet(field_9_options1);
  648. }
  649. /**
  650. * Sets the show label field value.
  651. *
  652. */
  653. public void setShowLabel(boolean value)
  654. {
  655. field_9_options1 = showLabel.setShortBoolean(field_9_options1, value);
  656. }
  657. /**
  658. *
  659. * @return the show label field value.
  660. */
  661. public boolean isShowLabel()
  662. {
  663. return showLabel.isSet(field_9_options1);
  664. }
  665. /**
  666. * Sets the data label placement field value.
  667. *
  668. */
  669. public void setDataLabelPlacement(short value)
  670. {
  671. field_11_options2 = dataLabelPlacement.setShortValue(field_11_options2, value);
  672. }
  673. /**
  674. *
  675. * @return the data label placement field value.
  676. */
  677. public short getDataLabelPlacement()
  678. {
  679. return dataLabelPlacement.getShortValue(field_11_options2);
  680. }
  681. } // END OF CLASS