1 39 40 package org.krysalis.jcharts.axisChart.customRenderers.axisValue; 41 42 43 import org.krysalis.jcharts.axisChart.AxisChart; 44 import org.krysalis.jcharts.chartData.interfaces.IAxisPlotDataSet; 45 46 import java.util.EventObject ; 47 import java.awt.*; 48 import java.awt.geom.Rectangle2D ; 49 import java.awt.font.FontRenderContext ; 50 51 52 public class AxisValueRenderEvent extends EventObject { 53 54 private Graphics2D graphics2D; 55 private FontRenderContext fontRenderContext; 56 57 58 private IAxisPlotDataSet iAxisPlotDataSet; 59 60 private Rectangle2D.Float totalItemAxisArea; 62 63 private float zeroLineCoordinate; 64 private float valueX; 65 private float valueY; 66 67 private int dataSetIndex; 68 private int valueIndex; 69 70 71 77 public AxisValueRenderEvent( AxisChart axisChart, 78 IAxisPlotDataSet iAxisPlotDataSet, 79 Graphics2D graphics2D, 80 Rectangle2D.Float totalItemAxisArea, 81 float zeroLineCoordinate ) { 82 super( axisChart ); 83 84 this.iAxisPlotDataSet= iAxisPlotDataSet; 85 this.graphics2D = graphics2D; 86 this.fontRenderContext = graphics2D.getFontRenderContext(); 87 this.totalItemAxisArea = totalItemAxisArea; 88 this.zeroLineCoordinate= zeroLineCoordinate; 89 } 90 91 92 96 public Graphics2D getGraphics2D() { 97 return graphics2D; 98 } 99 100 101 105 public FontRenderContext getFontRenderContext() { 106 return fontRenderContext; 107 } 108 109 110 116 public Rectangle2D.Float getTotalItemAxisArea() { 117 return totalItemAxisArea; 118 } 119 120 121 122 public IAxisPlotDataSet getiAxisPlotDataSet() { 123 return iAxisPlotDataSet; 124 } 125 126 127 131 public float getValueX() { 132 return valueX; 133 } 134 135 136 public void setValueX( float valueX ) { 137 this.valueX = valueX; 138 } 139 140 141 public float getValueY() { 142 return valueY; 143 } 144 145 146 public void setValueY( float valueY ) { 147 this.valueY = valueY; 148 } 149 150 151 public int getDataSetIndex() { 152 return dataSetIndex; 153 } 154 155 156 public void setDataSetIndex( int dataSetIndex ) { 157 this.dataSetIndex = dataSetIndex; 158 } 159 160 161 public int getValueIndex() { 162 return valueIndex; 163 } 164 165 166 public void setValueIndex( int valueIndex ) { 167 this.valueIndex = valueIndex; 168 } 169 170 171 public float getZeroLineCoordinate() { 172 return zeroLineCoordinate; 173 } 174 } 175 | Popular Tags |