1 42 43 package org.jfree.chart.plot; 44 45 import java.awt.geom.Rectangle2D ; 46 47 import org.jfree.chart.renderer.RendererState; 48 49 52 public class PiePlotState extends RendererState { 53 54 55 private int passesRequired; 56 57 58 private double total; 59 60 61 private double latestAngle; 62 63 64 private Rectangle2D explodedPieArea; 65 66 67 private Rectangle2D pieArea; 68 69 70 private double pieCenterX; 71 72 73 private double pieCenterY; 74 75 76 private double pieHRadius; 77 78 79 private double pieWRadius; 80 81 82 private Rectangle2D linkArea; 83 84 90 public PiePlotState(PlotRenderingInfo info) { 91 super(info); 92 this.passesRequired = 1; 93 this.total = 0.0; 94 } 95 96 101 public int getPassesRequired() { 102 return this.passesRequired; 103 } 104 105 110 public void setPassesRequired(int passes) { 111 this.passesRequired = passes; 112 } 113 114 119 public double getTotal() { 120 return this.total; 121 } 122 123 128 public void setTotal(double total) { 129 this.total = total; 130 } 131 132 137 public double getLatestAngle() { 138 return this.latestAngle; 139 } 140 141 146 public void setLatestAngle(double angle) { 147 this.latestAngle = angle; 148 } 149 150 155 public Rectangle2D getPieArea() { 156 return this.pieArea; 157 } 158 159 164 public void setPieArea(Rectangle2D area) { 165 this.pieArea = area; 166 } 167 168 173 public Rectangle2D getExplodedPieArea() { 174 return this.explodedPieArea; 175 } 176 177 182 public void setExplodedPieArea(Rectangle2D area) { 183 this.explodedPieArea = area; 184 } 185 186 191 public double getPieCenterX() { 192 return this.pieCenterX; 193 } 194 195 200 public void setPieCenterX(double x) { 201 this.pieCenterX = x; 202 } 203 204 211 public double getPieCenterY() { 212 return this.pieCenterY; 213 } 214 215 221 public void setPieCenterY(double y) { 222 this.pieCenterY = y; 223 } 224 225 231 public Rectangle2D getLinkArea() { 232 return this.linkArea; 233 } 234 235 241 public void setLinkArea(Rectangle2D area) { 242 this.linkArea = area; 243 } 244 245 250 public double getPieHRadius() { 251 return this.pieHRadius; 252 } 253 254 259 public void setPieHRadius(double radius) { 260 this.pieHRadius = radius; 261 } 262 263 268 public double getPieWRadius() { 269 return this.pieWRadius; 270 } 271 272 277 public void setPieWRadius(double radius) { 278 this.pieWRadius = radius; 279 } 280 281 } 282 | Popular Tags |