Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

ManualLayout.java 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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 element manual layout.
  19. *
  20. * @deprecated use XDDFManualLayout instead
  21. */
  22. @Deprecated
  23. @Removal(version="4.2")
  24. public interface ManualLayout {
  25. /**
  26. * Sets the layout target.
  27. * @param target new layout target.
  28. */
  29. public void setTarget(LayoutTarget target);
  30. /**
  31. * Returns current layout target.
  32. * @return current layout target
  33. */
  34. public LayoutTarget getTarget();
  35. /**
  36. * Sets the x-coordinate layout mode.
  37. * @param mode new x-coordinate layout mode.
  38. */
  39. public void setXMode(LayoutMode mode);
  40. /**
  41. * Returns current x-coordinnate layout mode.
  42. * @return current x-coordinate layout mode.
  43. */
  44. public LayoutMode getXMode();
  45. /**
  46. * Sets the y-coordinate layout mode.
  47. * @param mode new y-coordinate layout mode.
  48. */
  49. public void setYMode(LayoutMode mode);
  50. /**
  51. * Returns current y-coordinate layout mode.
  52. * @return current y-coordinate layout mode.
  53. */
  54. public LayoutMode getYMode();
  55. /**
  56. * Returns the x location of the chart element.
  57. * @return the x location (left) of the chart element or 0.0 if
  58. * not set.
  59. */
  60. public double getX();
  61. /**
  62. * Specifies the x location (left) of the chart element as a
  63. * fraction of the width of the chart. If Left Mode is Factor,
  64. * then the position is relative to the default position for the
  65. * chart element.
  66. */
  67. public void setX(double x);
  68. /**
  69. * Returns current y location of the chart element.
  70. * @return the y location (top) of the chart element or 0.0 if not
  71. * set.
  72. */
  73. public double getY();
  74. /**
  75. * Specifies the y location (top) of the chart element as a
  76. * fraction of the height of the chart. If Top Mode is Factor,
  77. * then the position is relative to the default position for the
  78. * chart element.
  79. */
  80. public void setY(double y);
  81. /**
  82. * Specifies how to interpret the Width element for this manual
  83. * layout.
  84. * @param mode new width layout mode of this manual layout.
  85. */
  86. public void setWidthMode(LayoutMode mode);
  87. /**
  88. * Returns current width mode of this manual layout.
  89. * @return width mode of this manual layout.
  90. */
  91. public LayoutMode getWidthMode();
  92. /**
  93. * Specifies how to interpret the Height element for this manual
  94. * layout.
  95. * @param mode new height mode of this manual layout.
  96. */
  97. public void setHeightMode(LayoutMode mode);
  98. /**
  99. * Returns current height mode of this
  100. * @return height mode of this manual layout.
  101. */
  102. public LayoutMode getHeightMode();
  103. /**
  104. * Specifies the width (if Width Mode is Factor) or right (if
  105. * Width Mode is Edge) of the chart element as a fraction of the
  106. * width of the chart.
  107. * @param ratio a fraction of the width of the chart.
  108. */
  109. public void setWidthRatio(double ratio);
  110. /**
  111. * Returns current fraction of the width of the chart.
  112. * @return fraction of the width of the chart or 0.0 if not set.
  113. */
  114. public double getWidthRatio();
  115. /**
  116. * Specifies the height (if Height Mode is Factor) or bottom (if
  117. * Height Mode is edge) of the chart element as a fraction of the
  118. * height of the chart.
  119. * @param ratio a fraction of the height of the chart.
  120. */
  121. public void setHeightRatio(double ratio);
  122. /**
  123. * Returns current fraction of the height of the chart.
  124. * @return fraction of the height of the chart or 0.0 if not set.
  125. */
  126. public double getHeightRatio();
  127. }