Skip to content
Snippets Groups Projects
Commit 4b47f980 authored by Tim Molter's avatar Tim Molter
Browse files

added style manager

parent b5c0f129
Branches
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ import java.util.Date;
import java.util.Iterator;
import java.util.Map;
import com.xeiam.xchart.Series;
import com.xeiam.xchart.appearance.Series;
import com.xeiam.xchart.internal.chartpart.Axis.AxisType;
import com.xeiam.xchart.internal.interfaces.IChartPart;
......@@ -145,7 +145,7 @@ public class PlotContent implements IChartPart {
// paint errorbar
if (errorBars != null) {
g.setColor(plot.chart.bordersColor);
g.setColor(plot.chart.getStyleManager().getBordersColor());
g.setStroke(new BasicStroke(1, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL));
int bottom = (int) (-1 * bounds.getHeight() * eb / (yMax.subtract(yMin).doubleValue()));
int top = (int) (bounds.getHeight() * eb / (yMax.subtract(yMin).doubleValue()));
......
......@@ -21,7 +21,7 @@ import java.awt.Graphics2D;
import java.awt.Rectangle;
import java.util.List;
import com.xeiam.xchart.ChartColor;
import com.xeiam.xchart.appearance.ChartColor;
import com.xeiam.xchart.internal.interfaces.IChartPart;
import com.xeiam.xchart.internal.interfaces.IHideable;
......@@ -74,7 +74,7 @@ public class PlotSurface implements IChartPart, IHideable {
g.setColor(foregroundColor);
g.fill(backgroundRectangle);
Rectangle borderRectangle = new Rectangle((int) bounds.getX() - 1, (int) bounds.getY(), (int) (bounds.getWidth()), (int) bounds.getHeight());
g.setColor(plot.chart.bordersColor);
g.setColor(plot.chart.getStyleManager().getBordersColor());
g.draw(borderRectangle);
// paint grid lines
......
......@@ -25,9 +25,9 @@ import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;
import com.xeiam.xchart.SeriesColor;
import com.xeiam.xchart.SeriesLineStyle;
import com.xeiam.xchart.SeriesMarker;
import com.xeiam.xchart.appearance.SeriesColor;
import com.xeiam.xchart.appearance.SeriesLineStyle;
import com.xeiam.xchart.appearance.SeriesMarker;
/**
* Cycles through the different colors, markers, and strokes in a predetermined way
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment