Example usage for java.awt Color orange

List of usage examples for java.awt Color orange

Introduction

In this page you can find the example usage for java.awt Color orange.

Prototype

Color orange

To view the source code for java.awt Color orange.

Click Source Link

Document

The color orange.

Usage

From source file:jasperreport.BarChartCustomizer.java

public void customize(JFreeChart chart, JRChart jasperChart) {
    BarRenderer renderer = (BarRenderer) chart.getCategoryPlot().getRenderer();
    renderer.setSeriesPaint(0, Color.BLACK);
    renderer.setSeriesPaint(1, Color.orange);
    renderer.setBaseItemLabelsVisible(true);
}

From source file:view.FuzzySetView.java

private void initColors() {
    colors = new Color[] { Color.BLUE, Color.RED, Color.GREEN, Color.ORANGE, Color.MAGENTA };
}

From source file:org.jopenray.operation.SetMouseCursorOperation.java

public SetMouseCursorOperation(int type) {
    if (type == UNIX_CURSOR) {
        init(7, 7, 16, 16, Color.BLACK, Color.ORANGE, unixCursorBitmap, unixCursorBitmapMask);
    } else {/* w w w .  j a  va  2 s. c  o  m*/
        init(1, 1, 16, 16, Color.BLACK, Color.WHITE, new byte[32], new byte[32]);
    }
}

From source file:com.sjsu.uidesign.ExecStatus.java

public ExecStatus() {
    super();/*from   w  ww  . j  a  v a2s. co  m*/
    super.setTitle("Task Execution Status");
    super.setSize(500, 500);
    super.setResizable(true);
    super.setLocationRelativeTo(null);

    JLabel usageImage = new JLabel();
    //usageImage.setIcon(new ImageIcon("Pie_3.png"));

    //usageImage.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/sjsu/uidesign/Bar_4.png"))); // NOI18N
    //add(usageImage);

    DefaultCategoryDataset barChartData = new DefaultCategoryDataset();
    barChartData.setValue(6, "Cache Cleanup", "Cache Cleanup");
    barChartData.setValue(8, "Antivirus Scan", "Antivirus Scan");
    barChartData.setValue(7, "Empty Recycle Bin", "Empty Recycle Bin");

    JFreeChart barChart = ChartFactory.createBarChart("Task Execution Status", "Task Name", "Status",
            createDataset(), PlotOrientation.VERTICAL, true, true, false);
    CategoryPlot barChar = barChart.getCategoryPlot();
    barChar.setRangeGridlinePaint(Color.ORANGE);

    ChartPanel barPanel = new ChartPanel(barChart);

    JPanel panelChart = new JPanel();
    panelChart.removeAll();
    panelChart.add(barPanel, BorderLayout.CENTER);
    panelChart.validate();
    add(panelChart);
}

From source file:org.jfree.chart.demo.DeviationRendererDemo3.java

private static JFreeChart createChart(XYDataset xydataset) {
    JFreeChart chart = ChartFactory.createXYLineChart("DeviationRenderer - Demo 3", "X", "Y", xydataset,
            PlotOrientation.VERTICAL, false, true, false);
    XYPlot plot = (XYPlot) chart.getPlot();
    ////from   ww  w .j ava2  s  .c om
    DeviationRenderer renderer = new DeviationRenderer(false, false);
    renderer.setSeriesStroke(0, new BasicStroke(3F, 1, 1));
    renderer.setSeriesStroke(0, new BasicStroke(3F, 1, 1));
    renderer.setSeriesStroke(1, new BasicStroke(3F, 1, 1));
    renderer.setSeriesFillPaint(0, Color.red);
    renderer.setSeriesFillPaint(1, Color.orange);
    renderer.setSeriesFillPaint(2, Color.green);
    plot.setRenderer(renderer);
    //
    DateAxis domainAxis = new DateAxis("Date");
    domainAxis.setLowerMargin(0.0D);
    domainAxis.setUpperMargin(0.0D);
    plot.setDomainAxis(domainAxis);
    NumberAxis valueAxis = (NumberAxis) plot.getRangeAxis();
    valueAxis.setRange(-40D, 40D);
    valueAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
    ChartUtilities.applyCurrentTheme(chart);
    return chart;
}

From source file:CombiningShapes.java

public void paintComponent(Graphics g) {
    Graphics2D g2 = (Graphics2D) g;
    g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);

    String option = (String) mOptions.getSelectedItem();
    if (option.equals("outline")) {
        // draw the outlines and return.
        g2.draw(mShapeOne);/*from   w w  w .j av a 2 s.com*/
        g2.draw(mShapeTwo);
        return;
    }

    // Create Areas from the shapes.
    Area areaOne = new Area(mShapeOne);
    Area areaTwo = new Area(mShapeTwo);
    // Combine the Areas according to the selected option.
    if (option.equals("add"))
        areaOne.add(areaTwo);
    else if (option.equals("intersection"))
        areaOne.intersect(areaTwo);
    else if (option.equals("subtract"))
        areaOne.subtract(areaTwo);
    else if (option.equals("exclusive or"))
        areaOne.exclusiveOr(areaTwo);

    // Fill the resulting Area.
    g2.setPaint(Color.orange);
    g2.fill(areaOne);
    // Draw the outline of the resulting Area.
    g2.setPaint(Color.black);
    g2.draw(areaOne);
}

From source file:sturesy.voting.gui.renderer.AnswersBarRenderer.java

@Override
public Paint getItemPaint(final int row, final int column) {
    if (_showAnswers && !_correctAnswer.isEmpty()) {
        if (_correctAnswer.contains(column)) {
            return Color.green;
        } else {//from  w  ww. java2s  .c om
            return Color.red;
        }
    } else {
        return Color.orange;
    }
}

From source file:org.jfree.chart.demo.CylinderChartDemo1.java

private static Paint[] createPaint() {
    Paint apaint[] = new Paint[5];
    apaint[0] = new GradientPaint(0.0F, 0.0F, Color.red, 0.0F, 0.0F, Color.white);
    apaint[1] = new GradientPaint(0.0F, 0.0F, Color.green, 0.0F, 0.0F, Color.white);
    apaint[2] = new GradientPaint(0.0F, 0.0F, Color.blue, 0.0F, 0.0F, Color.white);
    apaint[3] = new GradientPaint(0.0F, 0.0F, Color.orange, 0.0F, 0.0F, Color.white);
    apaint[4] = new GradientPaint(0.0F, 0.0F, Color.magenta, 0.0F, 0.0F, Color.white);
    return apaint;
}

From source file:uk.ac.abdn.csd.p2p.server.VertexPainter.java

/**
 * Method to tranform the colour asscoiated with a {@code Vertex}
 * @param v Instance of a {@code Vertex}
 * @return Instance of {@code Paint} object
 *///from  w ww. j a  va2  s.  c  om
public Paint transform(Vertex v) //So for each node that we draw...
{
    //We check the member variable, mColor, of the node.
    if (v.getColor().equalsIgnoreCase("yellow")) //If the node's mColor value is "yellow" we...
        return (Color.yellow); // Return our color, Color.yellow.
    else if (v.getColor().equalsIgnoreCase("red"))
        return (Color.red);
    else if (v.getColor().equalsIgnoreCase("blue"))
        return (Color.blue);
    else if (v.getColor().equalsIgnoreCase("green"))
        return (Color.green);
    else if (v.getColor().equalsIgnoreCase("orange"))
        return (Color.orange);
    else if (v.getColor().equalsIgnoreCase("pink"))
        return (Color.pink);
    else if (v.getColor().equalsIgnoreCase("black"))
        return (Color.black);
    else if (v.getColor().equalsIgnoreCase("cyan"))
        return (Color.cyan);
    else if (v.getColor().equalsIgnoreCase("dark_grey"))
        return (Color.DARK_GRAY);
    else if (v.getColor().equalsIgnoreCase("grey"))
        return (Color.gray);
    else if (v.getColor().equalsIgnoreCase("light_grey"))
        return (Color.lightGray);
    else if (v.getColor().equalsIgnoreCase("white"))
        return (Color.white);
    else
        return (Color.MAGENTA);
}

From source file:monitor.processing.OLD.SoccerField.java

public void drawTree(BaseNode n, RealVector v) {

    Color c = Color.WHITE;

    if (n instanceof TransformNode) {
        v = ((TransformNode) n).getTrasformMatrix().operate(v);

        c = Color.ORANGE;
    } else if (n instanceof StaticMesh) {
        StaticMesh sm = (StaticMesh) n;//  ww  w. ja  va 2  s.c  o  m

        if (sm.isTransparent()) {
            c = Color.BLUE;
        } else if (sm.isVisible()) {
            //                System.out.println(n.getInfo());
            //                System.out.println(v);
            c = Color.RED;
            if (sm.getModel().contains("naohead") || sm.getModel().contains("naobody")) {
                c = Color.PINK;
            }
        } else {
            c = Color.CYAN;
        }

    } else if (n instanceof StaticMeshNode) {
        StaticMeshNode smn = (StaticMeshNode) n;

        if (smn.isTransparent()) {
            c = Color.GREEN;
            //                cameraSceneX = (float)v.getEntry(0);
            //                cameraSceneY = (float)v.getEntry(1);
            //                cameraSceneZ = (float)v.getEntry(2);
        } else if (smn.isVisible()) {
            c = Color.YELLOW;
        } else {
            c = Color.MAGENTA;
        }

    }

    pushMatrix();
    fill(100);

    //        c = Color.getHSBColor(n.getAddress()*0.05f, 1, 1);
    stroke(c.getRed(), c.getGreen(), c.getBlue());
    translate((float) (scale * v.getEntry(0)), (float) (-scale * v.getEntry(1)),
            (float) (scale * v.getEntry(2)));
    box(5);
    popMatrix();

    for (int a = n.getChildren().size() - 1; a >= 0; a--) {
        drawTree(((ArrayList<BaseNode>) n.getChildren()).get(a), v);
    }

}