Refactoring, putting chart painters into separate directory

This commit is contained in:
2017-10-04 10:05:32 +02:00
parent ebeb4ef18f
commit d64d82697a
11 changed files with 33 additions and 51 deletions

View File

@ -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(){

View File

@ -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

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;