Example usage for org.jfree.chart.plot Plot DEFAULT_OUTLINE_STROKE

List of usage examples for org.jfree.chart.plot Plot DEFAULT_OUTLINE_STROKE

Introduction

In this page you can find the example usage for org.jfree.chart.plot Plot DEFAULT_OUTLINE_STROKE.

Prototype

Stroke DEFAULT_OUTLINE_STROKE

To view the source code for org.jfree.chart.plot Plot DEFAULT_OUTLINE_STROKE.

Click Source Link

Document

The default outline stroke.

Usage

From source file:net.sourceforge.processdash.ui.lib.chart.StandardDiscItemRenderer.java

public StandardDiscItemRenderer() {
    this.discPaintMap = new PaintMap();
    this.baseDiscPaint = Color.gray;
    this.labelPaintMap = new PaintMap();
    this.labelPadding = 5;
    this.minLabelChars = 4;
    this.outlinePaintMap = new PaintMap();
    this.baseOutlinePaint = null;
    this.outlineStrokeMap = new StrokeMap();
    this.baseOutlineStroke = Plot.DEFAULT_OUTLINE_STROKE;
}

From source file:com.xpn.xwiki.plugin.charts.params.DefaultChartParams2.java

protected DefaultChartParams2() throws ParamException {
    set(SERIES, "columns");

    set(HEIGHT, new Integer(600));
    set(WIDTH, new Integer(500));
    set(LINK_ATTRIBUTES, new HashMap());
    set(IMAGE_ATTRIBUTES, new HashMap());

    set(RENDERER, (Class) null); // default renderer is chart type dependent
    set(RENDERER_COLOR, AbstractRenderer.DEFAULT_PAINT);
    set(RENDERER_STROKE, AbstractRenderer.DEFAULT_STROKE);
    set(RENDERER_SHAPE, AbstractRenderer.DEFAULT_SHAPE);
    set(RENDERER_FILL_COLOR, Color.white);
    set(RENDERER_OUTLINE_COLOR, AbstractRenderer.DEFAULT_OUTLINE_PAINT);
    set(RENDERER_OUTLINE_STROKE, AbstractRenderer.DEFAULT_OUTLINE_STROKE);
    set(RENDERER_ITEM_LABEL_VISIBLE, Boolean.FALSE);
    set(RENDERER_ITEM_LABEL_COLOR, AbstractRenderer.DEFAULT_VALUE_LABEL_PAINT);
    set(RENDERER_ITEM_LABEL_FONT, AbstractRenderer.DEFAULT_VALUE_LABEL_FONT);
    set(RENDERER_SERIES_VISIBLE, Boolean.TRUE);
    set(RENDERER_SERIES_VISIBLE_IN_LEGEND, Boolean.TRUE);

    set(BORDER_VISIBLE, Boolean.FALSE);
    set(BORDER_COLOR, Color.black);
    set(BORDER_STROKE, new BasicStroke(1.0f));

    setTitle(TITLE_PREFIX);/*w  w w  .  ja v  a  2s .  c o m*/
    set(TITLE_PREFIX + TITLE_FONT_SUFFIX, JFreeChart.DEFAULT_TITLE_FONT);
    setTitle(SUBTITLE_PREFIX);

    set(ANTI_ALIAS, Boolean.TRUE);
    set(BACKGROUND_COLOR, JFreeChart.DEFAULT_BACKGROUND_PAINT);

    set(PLOT_BACKGROUND_COLOR, Plot.DEFAULT_BACKGROUND_PAINT);
    set(PLOT_BACKGROUND_ALPHA, new Float(Plot.DEFAULT_BACKGROUND_ALPHA));
    set(PLOT_FOREGROUND_ALPHA, new Float(Plot.DEFAULT_FOREGROUND_ALPHA));
    set(PLOT_INSERTS, Plot.DEFAULT_INSETS);
    set(PLOT_OUTLINE_COLOR, Plot.DEFAULT_OUTLINE_PAINT);
    set(PLOT_OUTLINE_STROKE, Plot.DEFAULT_OUTLINE_STROKE);

    set(XYPLOT_ORIENTATION, PlotOrientation.VERTICAL);
    set(XYPLOT_QUADRANT_ORIGIN, new Point2D.Double(0.0, 0.0));
    List colors = new LinkedList();
    colors.add(null);
    colors.add(null);
    colors.add(null);
    colors.add(null);
    set(XYPLOT_QUADRANT_COLORS, colors);

    set(LEGEND_BACKGROUND_COLOR, (Color) null);
    set(LEGEND_ITEM_FONT, LegendTitle.DEFAULT_ITEM_FONT);
    set(LEGEND_ITEM_LABEL_PADDING, new RectangleInsets(2.0, 2.0, 2.0, 2.0));
    set(LEGEND_ITEM_GRAPHIC_ANCHOR, RectangleAnchor.CENTER);
    set(LEGEND_ITEM_GRAPHIC_EDGE, RectangleEdge.LEFT);
    set(LEGEND_ITEM_GRAPHIC_LOCATION, RectangleAnchor.CENTER);
    set(LEGEND_ITEM_GRAPHIC_PADDING, new RectangleInsets(2.0, 2.0, 2.0, 2.0));

    setAxis(AXIS_DOMAIN_PREFIX);
    setAxis(AXIS_RANGE_PREFIX);

    set(TIME_PERIOD_CLASS, Day.class);
    set(DATE_FORMAT, new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss"));
}