Example usage for org.jfree.chart ChartColor LIGHT_RED

List of usage examples for org.jfree.chart ChartColor LIGHT_RED

Introduction

In this page you can find the example usage for org.jfree.chart ChartColor LIGHT_RED.

Prototype

Color LIGHT_RED

To view the source code for org.jfree.chart ChartColor LIGHT_RED.

Click Source Link

Document

A light red color.

Usage

From source file:jamel.gui.charts.income.Income.java

/**
 * Returns the chart.//from ww  w.  j av a2  s. c  o m
 * @return the chart.
 */
private static JFreeChart newChart() {
    TimeChart chart = new TimeChart("Income", "Value", Circuit.getCircuit().getTimeSeries().get(Labels.INCOME),
            Circuit.getCircuit().getTimeSeries().get(Labels.wageBillTotal),
            Circuit.getCircuit().getTimeSeries().get(Labels.DIVIDENDS));
    chart.setColors(0, ChartColor.LIGHT_RED, ChartColor.LIGHT_BLUE, ChartColor.DARK_YELLOW);
    return chart;
}

From source file:jamel.gui.charts.sectorFinal.FinalGoodsMarket.java

/**
 * Returns the chart./*from  w  ww .  ja va2  s . c  o  m*/
 * @return the chart.
 */
private static JFreeChart newChart() {
    TimeChart chart = new TimeChart("Final Good Market", "Volume",
            Circuit.getCircuit().getTimeSeries().get(Labels.annualSalesFinalVolume),
            Circuit.getCircuit().getTimeSeries().get(Labels.annualProductionFinalVolume));
    chart.addLineLegendItem("Production", ChartColor.LIGHT_RED);
    chart.addLineLegendItem("Consumption", ChartColor.LIGHT_BLUE);
    return chart;
}

From source file:jamel.gui.charts.money.Money.java

/**
 * Returns the chart./*  w w w .  jav a 2 s  .c  o m*/
 * @return the chart.
 */
private static JFreeChart newChart() {
    TimeChart chart = new TimeChart("Deposits and bank capital", "Value",
            Circuit.getCircuit().getTimeSeries().get(Labels.FIRMS_DEPOSITS),
            Circuit.getCircuit().getTimeSeries().get(Labels.HOUSEHOLDS_DEPOSITS),
            Circuit.getCircuit().getTimeSeries().get(Labels.BANK_CAPITAL));
    chart.setColors(0, ChartColor.LIGHT_RED, ChartColor.LIGHT_BLUE, ChartColor.LIGHT_GREEN);
    chart.addLineLegendItem("Firms deposits", ChartColor.LIGHT_RED);
    chart.addLineLegendItem("Households deposits", ChartColor.LIGHT_BLUE);
    chart.addLineLegendItem("Bank capital", ChartColor.LIGHT_GREEN);
    return chart;
}

From source file:jamel.gui.charts.labor.UnemploymentTypes.java

/**
 * Returns the chart.//from w  ww .ja  v a  2s .  c  o m
 * @return the chart.
 */
private static JFreeChart newChart() {
    TimeChart chart = new TimeChart("Unemployment Types", "Workers",
            Circuit.getCircuit().getTimeSeries().get(Labels.VOLUNTARY_UNEMPLOYED),
            Circuit.getCircuit().getTimeSeries().get(Labels.INVOLUNTARY_UNEMPLOYED),
            Circuit.getCircuit().getTimeSeries().get(Labels.UNEMPLOYED));
    chart.setColors(0, ChartColor.LIGHT_GREEN, ChartColor.LIGHT_BLUE, ChartColor.LIGHT_RED);
    chart.setIntegerTickUnitsOnRangeAxis();
    return chart;
}

From source file:jamel.gui.charts.money.BankRatios.java

/**
 * Returns the chart./* www  .  ja  v a2s  .  co m*/
 * @return the chart.
 */
private static JFreeChart newChart() {
    final TimeChart chart = new TimeChart("Bank Ratios", "Percent",
            Circuit.getCircuit().getTimeSeries().get(Labels.CAPITAL_ADEQUACY_RATIO),
            Circuit.getCircuit().getTimeSeries().get(Labels.DOUBTFUL_DEBTS_RATIO));
    chart.setXYDifferenceRenderer(0, JamelColor.ULTRA_TRANSPARENT_GREEN, JamelColor.ULTRA_TRANSPARENT_RED);
    chart.setColors(0, ChartColor.LIGHT_GREEN, ChartColor.LIGHT_RED);
    chart.getXYPlot().getRangeAxis().setRange(0, 70);
    return chart;
}

From source file:jamel.gui.charts.income.Wages.java

/**
 * Returns the chart.//from w w  w .  j a  va2  s.co  m
 * @return the chart.
 */
private static JFreeChart newChart() {
    TimeChart chart = new TimeChart("Wages", "Value",
            Circuit.getCircuit().getTimeSeries().get(Labels.MAX_REGULAR_WAGE),
            Circuit.getCircuit().getTimeSeries().get(Labels.MIN_REGULAR_WAGE),
            Circuit.getCircuit().getTimeSeries().get(Labels.MEDIAN_WAGE));
    chart.setXYDifferenceRenderer(0, JamelColor.ULTRA_TRANSPARENT_BLUE, JamelColor.ULTRA_TRANSPARENT_BLUE);
    chart.setColors(0, ChartColor.VERY_LIGHT_BLUE, ChartColor.VERY_LIGHT_BLUE, ChartColor.LIGHT_BLUE,
            ChartColor.LIGHT_RED, ChartColor.LIGHT_RED);
    chart.addLineLegendItem("Median Wage", ChartColor.LIGHT_BLUE);
    chart.addLegendItem("Min-Max Wages", JamelColor.ULTRA_LIGHT_BLUE);
    return chart;
}

From source file:com.itemanalysis.jmetrik.swing.JmetrikXYLineAndShapeRenderer.java

public Paint getItemPaint(int row, int col) {
    Paint[] altColors = { Color.BLACK, ChartColor.RED, ChartColor.DARK_BLUE, ChartColor.DARK_GREEN,
            ChartColor.DARK_MAGENTA, ChartColor.DARK_CYAN, ChartColor.LIGHT_RED, ChartColor.LIGHT_BLUE,
            ChartColor.LIGHT_GREEN, ChartColor.LIGHT_MAGENTA, ChartColor.LIGHT_CYAN, ChartColor.VERY_DARK_RED,
            ChartColor.VERY_DARK_BLUE, ChartColor.VERY_DARK_GREEN, ChartColor.VERY_DARK_YELLOW,
            ChartColor.VERY_DARK_MAGENTA, ChartColor.VERY_DARK_CYAN, ChartColor.VERY_LIGHT_RED,
            ChartColor.VERY_LIGHT_BLUE, ChartColor.VERY_LIGHT_GREEN, ChartColor.VERY_LIGHT_MAGENTA,
            ChartColor.VERY_LIGHT_CYAN };

    return altColors[row];
}

From source file:sernet.gs.ui.rcp.main.bsi.views.chart.SamtProgressChart.java

protected JFreeChart createBarChart(Object dataset) {
    JFreeChart chart = ChartFactory.createBarChart3D(null, Messages.SamtProgressChart_1,
            Messages.SamtProgressChart_2, (CategoryDataset) dataset, PlotOrientation.HORIZONTAL, true, true,
            false);/*from   w w w. j ava2s .c o m*/

    chart.setBackgroundPaint(Color.white);
    chart.getPlot().setForegroundAlpha(CHART_FOREGROUND_ALPHA);
    chart.setBackgroundPaint(Color.white);
    CategoryPlot plot = (CategoryPlot) chart.getPlot();

    plot.getRenderer().setSeriesPaint(0, ChartColor.LIGHT_GREEN);
    plot.getRenderer().setSeriesPaint(1, ChartColor.LIGHT_RED);

    plot.getDomainAxis().setCategoryLabelPositions(CategoryLabelPositions.STANDARD);

    NumberAxis axis = (NumberAxis) plot.getRangeAxis();
    axis.setUpperBound(AXIS_UPPER_BOUND);

    return chart;
}

From source file:net.sf.mzmine.chartbasics.chartthemes.ChartThemeFactory.java

public static EStandardChartTheme createBlackNWhiteTheme() {
    EStandardChartTheme theme = new EStandardChartTheme(THEME.BNW_PRINT, "BnW");
    // Fonts/*from   w  ww.  j ava 2  s . c o  m*/
    theme.setExtraLargeFont(new Font("Arial", Font.BOLD, 16));
    theme.setLargeFont(new Font("Arial", Font.BOLD, 11));
    theme.setRegularFont(new Font("Arial", Font.PLAIN, 11));
    theme.setSmallFont(new Font("Arial", Font.PLAIN, 11));

    // Paints
    theme.setTitlePaint(Color.black);
    theme.setSubtitlePaint(Color.black);
    theme.setLegendItemPaint(Color.black);
    theme.setPlotOutlinePaint(Color.black);
    theme.setBaselinePaint(Color.black);
    theme.setCrosshairPaint(Color.black);
    theme.setLabelLinkPaint(Color.black);
    theme.setTickLabelPaint(Color.black);
    theme.setAxisLabelPaint(Color.black);
    theme.setShadowPaint(Color.black);
    theme.setItemLabelPaint(Color.black);

    theme.setLegendBackgroundPaint(Color.white);
    theme.setChartBackgroundPaint(Color.white);
    theme.setPlotBackgroundPaint(Color.white);

    // paint sequence: add black
    Paint[] colors = new Paint[] { Color.BLACK, new Color(0xFF, 0x55, 0x55), new Color(0x55, 0x55, 0xFF),
            new Color(0x55, 0xFF, 0x55), new Color(0xFF, 0xFF, 0x55), new Color(0xFF, 0x55, 0xFF),
            new Color(0x55, 0xFF, 0xFF), Color.pink, Color.gray, ChartColor.DARK_RED, ChartColor.DARK_BLUE,
            ChartColor.DARK_GREEN, ChartColor.DARK_YELLOW, ChartColor.DARK_MAGENTA, ChartColor.DARK_CYAN,
            Color.darkGray, ChartColor.LIGHT_RED, ChartColor.LIGHT_BLUE, ChartColor.LIGHT_GREEN,
            ChartColor.LIGHT_YELLOW, ChartColor.LIGHT_MAGENTA, ChartColor.LIGHT_CYAN, Color.lightGray,
            ChartColor.VERY_DARK_RED, ChartColor.VERY_DARK_BLUE, ChartColor.VERY_DARK_GREEN,
            ChartColor.VERY_DARK_YELLOW, ChartColor.VERY_DARK_MAGENTA, ChartColor.VERY_DARK_CYAN,
            ChartColor.VERY_LIGHT_RED, ChartColor.VERY_LIGHT_BLUE, ChartColor.VERY_LIGHT_GREEN,
            ChartColor.VERY_LIGHT_YELLOW, ChartColor.VERY_LIGHT_MAGENTA, ChartColor.VERY_LIGHT_CYAN };

    theme.setDrawingSupplier(
            new DefaultDrawingSupplier(colors, DefaultDrawingSupplier.DEFAULT_FILL_PAINT_SEQUENCE,
                    DefaultDrawingSupplier.DEFAULT_OUTLINE_PAINT_SEQUENCE,
                    DefaultDrawingSupplier.DEFAULT_STROKE_SEQUENCE,
                    DefaultDrawingSupplier.DEFAULT_OUTLINE_STROKE_SEQUENCE,
                    DefaultDrawingSupplier.DEFAULT_SHAPE_SEQUENCE));
    theme.setErrorIndicatorPaint(Color.black);
    theme.setGridBandPaint(new Color(255, 255, 255, 20));
    theme.setGridBandAlternatePaint(new Color(255, 255, 255, 40));

    // axis
    Color transp = new Color(0, 0, 0, 200);
    theme.setRangeGridlinePaint(transp);
    theme.setDomainGridlinePaint(transp);

    theme.setAxisLinePaint(Color.black);

    // axis offset
    theme.setAxisOffset(new RectangleInsets(0, 0, 0, 0));

    return theme;
}