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.

ChartAxis.java 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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.ss.usermodel.charts;
  16. import org.apache.poi.util.Removal;
  17. /**
  18. * High level representation of chart axis.
  19. *
  20. * @deprecated use XDDFChartAxis instead
  21. */
  22. @Deprecated
  23. @Removal(version="4.2")
  24. public interface ChartAxis {
  25. /**
  26. * @return axis id
  27. */
  28. long getId();
  29. /**
  30. * @return axis position
  31. */
  32. AxisPosition getPosition();
  33. /**
  34. * @param position new axis position
  35. */
  36. void setPosition(AxisPosition position);
  37. /**
  38. * @return axis number format
  39. */
  40. String getNumberFormat();
  41. /**
  42. * @param format axis number format
  43. */
  44. void setNumberFormat(String format);
  45. /**
  46. * @return true if log base is defined, false otherwise
  47. */
  48. boolean isSetLogBase();
  49. /**
  50. * @param logBase a number between 2 and 1000 (inclusive)
  51. * @throws IllegalArgumentException if log base not within allowed range
  52. */
  53. void setLogBase(double logBase);
  54. /**
  55. * @return axis log base or 0.0 if not set
  56. */
  57. double getLogBase();
  58. /**
  59. * @return true if minimum value is defined, false otherwise
  60. */
  61. boolean isSetMinimum();
  62. /**
  63. * @return axis minimum or 0.0 if not set
  64. */
  65. double getMinimum();
  66. /**
  67. * @param min axis minimum
  68. */
  69. void setMinimum(double min);
  70. /**
  71. * @return true if maximum value is defined, false otherwise
  72. */
  73. boolean isSetMaximum();
  74. /**
  75. * @return axis maximum or 0.0 if not set
  76. */
  77. double getMaximum();
  78. /**
  79. * @param max axis maximum
  80. */
  81. void setMaximum(double max);
  82. /**
  83. * @return axis orientation
  84. */
  85. AxisOrientation getOrientation();
  86. /**
  87. * @param orientation axis orientation
  88. */
  89. void setOrientation(AxisOrientation orientation);
  90. /**
  91. * @param crosses axis cross type
  92. */
  93. void setCrosses(AxisCrosses crosses);
  94. /**
  95. * @return axis cross type
  96. */
  97. AxisCrosses getCrosses();
  98. /**
  99. * Declare this axis cross another axis.
  100. * @param axis that this axis should cross
  101. */
  102. void crossAxis(ChartAxis axis);
  103. /**
  104. * @return visibility of the axis.
  105. */
  106. boolean isVisible();
  107. /**
  108. * @param value visibility of the axis.
  109. */
  110. void setVisible(boolean value);
  111. /**
  112. * @return major tick mark.
  113. */
  114. AxisTickMark getMajorTickMark();
  115. /**
  116. * @param tickMark major tick mark type.
  117. */
  118. void setMajorTickMark(AxisTickMark tickMark);
  119. /**
  120. * @return minor tick mark.
  121. */
  122. AxisTickMark getMinorTickMark();
  123. /**
  124. * @param tickMark minor tick mark type.
  125. */
  126. void setMinorTickMark(AxisTickMark tickMark);
  127. /**
  128. * Use this to check before retrieving a number format, as calling {@link #getNumberFormat()} may create a default one if none exists.
  129. * @return true if a number format element is defined, false if not
  130. */
  131. boolean hasNumberFormat();
  132. }