Refactoring, putting chart painters into separate directory
This commit is contained in:
@ -37,7 +37,7 @@ public class ChartDef {
|
||||
/**
|
||||
* width of an x unit in em
|
||||
*/
|
||||
double x_unit_width=4.0;
|
||||
public double x_unit_width=4.0;
|
||||
|
||||
ChartDef(){
|
||||
|
||||
|
@ -1,5 +1,7 @@
|
||||
package chart;
|
||||
|
||||
import chart.painter.ChartPainter;
|
||||
import chart.painter.XLegendChartPainter;
|
||||
import gui.Globals;
|
||||
|
||||
import java.awt.Cursor;
|
||||
@ -107,7 +109,7 @@ public class ChartPanel extends javax.swing.JPanel implements AdjustmentListener
|
||||
);
|
||||
}// </editor-fold>//GEN-END:initComponents
|
||||
|
||||
Point mouse = null;
|
||||
public Point mouse = null;
|
||||
|
||||
private void formMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_formMouseMoved
|
||||
|
||||
|
@ -25,6 +25,10 @@
|
||||
*/
|
||||
package chart;
|
||||
|
||||
import chart.painter.CandleStickChartPainter;
|
||||
import chart.painter.ChartPainter;
|
||||
import chart.painter.XLegendChartPainter;
|
||||
import chart.painter.ChartCrossPainter;
|
||||
import gui.Globals;
|
||||
import sesim.Exchange.QuoteReceiver;
|
||||
import sesim.OHLCData;
|
||||
|
@ -23,8 +23,9 @@
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package chart;
|
||||
package chart.painter;
|
||||
|
||||
import chart.painter.OHLCChartPainter;
|
||||
import java.awt.Color;
|
||||
import java.awt.Graphics2D;
|
||||
import javax.swing.JScrollBar;
|
@ -23,8 +23,10 @@
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package chart;
|
||||
package chart.painter;
|
||||
|
||||
import chart.ChartDef;
|
||||
import chart.ChartPanel;
|
||||
import java.awt.Graphics2D;
|
||||
import java.awt.Point;
|
||||
import javax.swing.JPanel;
|
@ -23,8 +23,10 @@
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package chart;
|
||||
package chart.painter;
|
||||
|
||||
import chart.ChartDef;
|
||||
import chart.ChartPanel;
|
||||
import java.awt.Color;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.Graphics2D;
|
@ -23,8 +23,9 @@
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package chart;
|
||||
package chart.painter;
|
||||
|
||||
import chart.painter.OHLCChartPainter;
|
||||
import java.awt.Color;
|
||||
import java.awt.Graphics2D;
|
||||
import sesim.OHLCDataItem;
|
@ -23,8 +23,11 @@
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package chart;
|
||||
package chart.painter;
|
||||
|
||||
import chart.ChartDef;
|
||||
import chart.ChartPanel;
|
||||
import chart.painter.ChartPainter;
|
||||
import java.awt.Color;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.Graphics2D;
|
@ -23,8 +23,10 @@
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package chart;
|
||||
package chart.painter;
|
||||
|
||||
import chart.ChartDef;
|
||||
import chart.ChartPanel;
|
||||
import java.awt.Color;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.Graphics2D;
|
Reference in New Issue
Block a user