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

changed method name for var overlap style

parent 0f21d74a
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,7 @@ public class BarChart06 implements ExampleChart {
// Customize Chart
chart.getStyleManager().setLegendPosition(LegendPosition.InsideNW);
chart.getStyleManager().setBarWidthPercentage(.96);
chart.getStyleManager().setOverlapped(true);
chart.getStyleManager().setBarsOverlapped(true);
return chart;
}
......
......@@ -129,7 +129,7 @@ public class StyleManager {
// Bar Charts ///////////////////////////////
private double barWidthPercentage;
private boolean isOverlapped;
private boolean barsOverlapped;
// Error Bars ///////////////////////////////
private Color errorBarsColor;
......@@ -211,7 +211,7 @@ public class StyleManager {
// Bar Charts ///////////////////////////////
barWidthPercentage = theme.getBarWidthPercentage();
isOverlapped = theme.isOverlapped();
barsOverlapped = theme.barsOverlapped();
// Error Bars ///////////////////////////////
errorBarsColor = theme.getErrorBarsColor();
......@@ -994,16 +994,16 @@ public class StyleManager {
/**
* set whether or no bars are overlapped. Otherwise they are places side-by-side
*
* @param isOverlapped
* @param barsOverlapped
*/
public void setOverlapped(boolean isOverlapped) {
public void setBarsOverlapped(boolean barsOverlapped) {
this.isOverlapped = isOverlapped;
this.barsOverlapped = barsOverlapped;
}
public boolean isOverlapped() {
public boolean barsOverlapped() {
return isOverlapped;
return barsOverlapped;
}
// Error Bars ///////////////////////////////
......
......@@ -170,7 +170,7 @@ public class PlotContentBarChart extends PlotContent {
boolean isOverlap = true;
double xOffset;
double barWidth;
if (getChartPainter().getStyleManager().isOverlapped()) {
if (getChartPainter().getStyleManager().barsOverlapped()) {
double barWidthPercentage = getChartPainter().getStyleManager().getBarWidthPercentage();
barWidth = gridStep * barWidthPercentage;
double barMargin = gridStep * (1 - barWidthPercentage) / 2;
......
......@@ -288,7 +288,7 @@ public class GGPlot2Theme implements Theme {
}
@Override
public boolean isOverlapped() {
public boolean barsOverlapped() {
return false;
}
......
......@@ -289,7 +289,7 @@ public class MatlabTheme implements Theme {
}
@Override
public boolean isOverlapped() {
public boolean barsOverlapped() {
return false;
}
......
......@@ -120,7 +120,7 @@ public interface Theme {
public double getBarWidthPercentage();
public boolean isOverlapped();
public boolean barsOverlapped();
// Error Bars ///////////////////////////////
......
......@@ -288,7 +288,7 @@ public class XChartTheme implements Theme {
}
@Override
public boolean isOverlapped() {
public boolean barsOverlapped() {
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment