/** * Sets the background color. * * @param bg the background color. */ public void setBackground(Color bg) { super.setBackground(bg); if (this.plot != null) { this.plot.setBackgroundPaint(bg); } if (this.chart != null) { this.chart.setBackgroundPaint(bg); } if (this.panel != null) { this.panel.setBackground(bg); } }
chartPanel.setBackground(new Color(bg.getRed(), bg.getGreen(), bg.getBlue())); chartPanel.getChart().setBackgroundPaint(new Color(bg.getRed(), bg.getGreen(), bg.getBlue()));
chartPanel.setBackground(Color.WHITE); chartPanel.setPreferredSize(new java.awt.Dimension(500, 270)); chartPanel.setMinimumDrawHeight(10);
chartPanel.setBackground(plotBackgroundColor); chart.setBackgroundPaint(plotBackgroundColor); } else { chartPanel.setBackground(new Color(bg.getRed(), bg.getGreen(), bg.getBlue())); chart.setBackgroundPaint(new Color(bg.getRed(), bg.getGreen(), bg.getBlue())); this.setBackground(new Color(bg.getRed(), bg.getGreen(), bg.getBlue()));
chartPanel.setBackground(plotBackgroundColor); chart.setBackgroundPaint(plotBackgroundColor); } else { chartPanel.setBackground(new Color(bg.getRed(), bg.getGreen(), bg.getBlue())); chart.setBackgroundPaint(new Color(bg.getRed(), bg.getGreen(), bg.getBlue())); this.setBackground(new Color(bg.getRed(), bg.getGreen(), bg.getBlue()));
chartPanel.setBackground(plotBackgroundColor); chart.setBackgroundPaint(plotBackgroundColor); } else { chartPanel.setBackground(new Color(bg.getRed(), bg.getGreen(), bg.getBlue())); chart.setBackgroundPaint(new Color(bg.getRed(), bg.getGreen(), bg.getBlue())); this.setBackground(new Color(bg.getRed(), bg.getGreen(), bg.getBlue()));
chartPanel.setBackground(plotBackgroundColor); chart.setBackgroundPaint(plotBackgroundColor); } else { chartPanel.setBackground(new Color(bg.getRed(), bg.getGreen(), bg.getBlue())); chart.setBackgroundPaint(new Color(bg.getRed(), bg.getGreen(), bg.getBlue())); this.setBackground(new Color(bg.getRed(), bg.getGreen(), bg.getBlue())); chartPanel.setBackground(plotBackgroundColor); } else { chartPanel.setBackground(c.getBackground());
chartPanel.setBackground(c.getBackground()); this.removeAll(); this.add(chartPanel); chartPanel.setBackground(c.getBackground()); chart.setBackgroundPaint(c.getBackground());
chartPanel.setBackground(backgroundColor); } else { chartPanel.setBackground(c.getBackground());
chartPanel.setBackground(plotBackgroundColor); chart.setBackgroundPaint(plotBackgroundColor); } else { chartPanel.setBackground(new Color(bg.getRed(), bg.getGreen(), bg.getBlue())); chart.setBackgroundPaint(new Color(bg.getRed(), bg.getGreen(), bg.getBlue())); this.setBackground(new Color(bg.getRed(), bg.getGreen(), bg.getBlue()));
chartPanel.setBackground(plotBackgroundColor); chart.setBackgroundPaint(plotBackgroundColor); } else { chartPanel.setBackground(new Color(bg.getRed(), bg.getGreen(), bg.getBlue())); chart.setBackgroundPaint(new Color(bg.getRed(), bg.getGreen(), bg.getBlue())); this.setBackground(new Color(bg.getRed(), bg.getGreen(), bg.getBlue()));
chartPanel.setBackground(currentColor); chart.setBackgroundPaint(currentColor); this.setBackground(currentColor); if (plotBackgroundColor != null && !isSelected) { plot.setBackgroundPaint(plotBackgroundColor); chartPanel.setBackground(plotBackgroundColor); chart.setBackgroundPaint(plotBackgroundColor); } else { } else { plot.setBackgroundPaint(tempColor); chartPanel.setBackground(tempColor); chart.setBackgroundPaint(tempColor); this.setBackground(tempColor); chartPanel.setBackground(new Color(bg.getRed(), bg.getGreen(), bg.getBlue())); chart.setBackgroundPaint(new Color(bg.getRed(), bg.getGreen(), bg.getBlue())); this.setBackground(new Color(bg.getRed(), bg.getGreen(), bg.getBlue())); chartPanel.setBackground(new Color(bg.getRed(), bg.getGreen(), bg.getBlue())); chart.setBackgroundPaint(new Color(bg.getRed(), bg.getGreen(), bg.getBlue())); this.setBackground(new Color(bg.getRed(), bg.getGreen(), bg.getBlue()));
chartPanel.setBackground(backgroundColor); } else { chartPanel.setBackground(c.getBackground());
chartPanel.setBackground(c.getBackground()); this.removeAll(); this.add(chartPanel);
chartPanel.setBackground(backgroundColor); } else { chartPanel.setBackground(c.getBackground());
chartPanel.setBackground(backgroundColor); } else { chartPanel.setBackground(c.getBackground());
chartPanel.setBackground(Color.white); chartPanel.setBorder(BorderFactory.createCompoundBorder( BorderFactory.createBevelBorder(BevelBorder.LOWERED),
chartPanel.setBackground(Color.white); chartPanel.setBorder(BorderFactory.createCompoundBorder( BorderFactory.createBevelBorder(BevelBorder.LOWERED),