Skip to content

Commit

Permalink
Added alpha to the background color.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayyy committed Feb 15, 2020
1 parent cfc9716 commit 2e528ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/uorocketry/basestation/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ public class Main implements ComponentListener, ChangeListener, ActionListener,
public static final String SIM_DATA_LOCATION = "data/data";
public static final String SIM_DATA_EXTENSION = ".txt";

public static final Color LEGEND_BACKGROUND_COLOR = new Color(255, 255, 255, 100);

/** Whether to update Google Earth file */
public static boolean googleEarth = false;
/** Where the updating Google Earth kml file is stored */
Expand Down Expand Up @@ -845,6 +847,7 @@ public void addChart(boolean silent) {

firstChartStyler.setLegendPosition(LegendPosition.InsideNE);
firstChartStyler.setLegendVisible(true);
firstChartStyler.setLegendBackgroundColor(LEGEND_BACKGROUND_COLOR);
firstChartStyler.setToolTipsEnabled(true);
firstChartStyler.setDefaultSeriesRenderStyle(XYSeriesRenderStyle.Scatter);

Expand Down

0 comments on commit 2e528ca

Please sign in to comment.