当前位置: 首页>>代码示例>>Java>>正文


Java ItemLabelAnchor.OUTSIDE12属性代码示例

本文整理汇总了Java中org.jfree.chart.labels.ItemLabelAnchor.OUTSIDE12属性的典型用法代码示例。如果您正苦于以下问题:Java ItemLabelAnchor.OUTSIDE12属性的具体用法?Java ItemLabelAnchor.OUTSIDE12怎么用?Java ItemLabelAnchor.OUTSIDE12使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.jfree.chart.labels.ItemLabelAnchor的用法示例。


在下文中一共展示了ItemLabelAnchor.OUTSIDE12属性的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createBarChart

/**
 * Creates a bar chart.  The chart object returned by this method uses a
 * {@link CategoryPlot} instance as the plot, with a {@link CategoryAxis}
 * for the domain axis, a {@link NumberAxis} as the range axis, and a
 * {@link BarRenderer} as the renderer.
 *
 * @param title  the chart title (<code>null</code> permitted).
 * @param categoryAxisLabel  the label for the category axis
 *                           (<code>null</code> permitted).
 * @param valueAxisLabel  the label for the value axis
 *                        (<code>null</code> permitted).
 * @param dataset  the dataset for the chart (<code>null</code> permitted).
 * @param legend  a flag specifying whether or not a legend is required.
 *
 * @return A bar chart.
 */
public static JFreeChart createBarChart(String title,
        String categoryAxisLabel, String valueAxisLabel,
        CategoryDataset dataset, boolean legend) {

    CategoryAxis categoryAxis = new CategoryAxis(categoryAxisLabel);
    ValueAxis valueAxis = new NumberAxis(valueAxisLabel);
    BarRenderer renderer = new BarRenderer();
    ItemLabelPosition position1 = new ItemLabelPosition(
            ItemLabelAnchor.OUTSIDE12, TextAnchor.BOTTOM_CENTER);
    renderer.setBasePositiveItemLabelPosition(position1);
    ItemLabelPosition position2 = new ItemLabelPosition(
            ItemLabelAnchor.OUTSIDE6, TextAnchor.TOP_CENTER);
    renderer.setBaseNegativeItemLabelPosition(position2);
    renderer.setBaseToolTipGenerator(
            new StandardCategoryToolTipGenerator());
    CategoryPlot plot = new CategoryPlot(dataset, categoryAxis, valueAxis,
            renderer);
    JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
            plot, legend);
    currentTheme.apply(chart);
    return chart;

}
 
开发者ID:SpoonLabs,项目名称:astor,代码行数:39,代码来源:ChartFactory.java

示例2: updateHistogram

private void updateHistogram() throws MicroarrayException, IOException {

		updateChipBox();

		int barCount = ((SpinnerNumberModel) barCountSpinner.getModel()).getNumber().intValue();
		String expression = ((Variable) chipBox.getSelectedItem()).getExpression();
		FloatArrayList histogram = getHistogram(barCount, expression);

		if (histogram != null) {
			CategoryDataset dataset = toCategoryDataset(histogram);

			CategoryAxis categoryAxis = new CategoryAxis("value");
			ValueAxis valueAxis = new NumberAxis("count");

			BarRenderer renderer = new BarRenderer();
			ItemLabelPosition position1 = new ItemLabelPosition(ItemLabelAnchor.OUTSIDE12, TextAnchor.BOTTOM_CENTER);
			renderer.setBasePositiveItemLabelPosition(position1);
			ItemLabelPosition position2 = new ItemLabelPosition(ItemLabelAnchor.OUTSIDE6, TextAnchor.TOP_CENTER);
			renderer.setBaseNegativeItemLabelPosition(position2);

			CategoryPlot plot = new CategoryPlot(dataset, categoryAxis, valueAxis, renderer);
			plot.setOrientation(PlotOrientation.VERTICAL);
			JFreeChart chart = new JFreeChart(data.getName(), JFreeChart.DEFAULT_TITLE_FONT, plot, false);

			visualisationPanel.removeAll();
			visualisationPanel.add(makePanel(chart), BorderLayout.CENTER);
			visualisationPanel.validate();

		} else {
			throw new IllegalArgumentException("histogram not supported for " + data.getName());
		}

	}
 
开发者ID:chipster,项目名称:chipster,代码行数:33,代码来源:Histogram.java

示例3: AbstractRenderer

/**
 * Default constructor.
 */
public AbstractRenderer() {

    this.seriesVisible = null;
    this.seriesVisibleList = new BooleanList();
    this.baseSeriesVisible = true;
    
    this.paint = null;
    this.paintList = new PaintList();
    this.basePaint = DEFAULT_PAINT;

    this.outlinePaint = null;
    this.outlinePaintList = new PaintList();
    this.baseOutlinePaint = DEFAULT_OUTLINE_PAINT;

    this.stroke = null;
    this.strokeList = new StrokeList();
    this.baseStroke = DEFAULT_STROKE;

    this.outlineStroke = null;
    this.outlineStrokeList = new StrokeList();
    this.baseOutlineStroke = DEFAULT_OUTLINE_STROKE;

    this.shape = null;
    this.shapeList = new ShapeList();
    this.baseShape = DEFAULT_SHAPE;

    this.itemLabelsVisible = null;
    this.itemLabelsVisibleList = new BooleanList();
    this.baseItemLabelsVisible = Boolean.FALSE;

    this.itemLabelFont = null;
    this.itemLabelFontList = new ObjectList();
    this.baseItemLabelFont = new Font("SansSerif", Font.PLAIN, 10);

    this.itemLabelPaint = null;
    this.itemLabelPaintList = new PaintList();
    this.baseItemLabelPaint = Color.black;

    this.positiveItemLabelPosition = null;
    this.positiveItemLabelPositionList = new ObjectList();
    this.basePositiveItemLabelPosition = new ItemLabelPosition(
        ItemLabelAnchor.OUTSIDE12, TextAnchor.BOTTOM_CENTER
    );
    
    this.negativeItemLabelPosition = null;
    this.negativeItemLabelPositionList = new ObjectList();
    this.baseNegativeItemLabelPosition = new ItemLabelPosition(
        ItemLabelAnchor.OUTSIDE6, TextAnchor.TOP_CENTER
    );

    this.listenerList = new EventListenerList();

}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:56,代码来源:AbstractRenderer.java

示例4: AbstractRenderer

/**
 * Default constructor.
 */
public AbstractRenderer() {

    this.seriesVisible = null;
    this.seriesVisibleList = new BooleanList();
    this.baseSeriesVisible = true;
    
    this.seriesVisibleInLegend = null;
    this.seriesVisibleInLegendList = new BooleanList();
    this.baseSeriesVisibleInLegend = true;

    this.paint = null;
    this.paintList = new PaintList();
    this.basePaint = DEFAULT_PAINT;

    this.fillPaint = null;
    this.fillPaintList = new PaintList();
    this.baseFillPaint = Color.white;

    this.outlinePaint = null;
    this.outlinePaintList = new PaintList();
    this.baseOutlinePaint = DEFAULT_OUTLINE_PAINT;

    this.stroke = null;
    this.strokeList = new StrokeList();
    this.baseStroke = DEFAULT_STROKE;

    this.outlineStroke = null;
    this.outlineStrokeList = new StrokeList();
    this.baseOutlineStroke = DEFAULT_OUTLINE_STROKE;

    this.shape = null;
    this.shapeList = new ShapeList();
    this.baseShape = DEFAULT_SHAPE;

    this.itemLabelsVisible = null;
    this.itemLabelsVisibleList = new BooleanList();
    this.baseItemLabelsVisible = Boolean.FALSE;

    this.itemLabelFont = null;
    this.itemLabelFontList = new ObjectList();
    this.baseItemLabelFont = new Font("SansSerif", Font.PLAIN, 10);

    this.itemLabelPaint = null;
    this.itemLabelPaintList = new PaintList();
    this.baseItemLabelPaint = Color.black;

    this.positiveItemLabelPosition = null;
    this.positiveItemLabelPositionList = new ObjectList();
    this.basePositiveItemLabelPosition = new ItemLabelPosition(
            ItemLabelAnchor.OUTSIDE12, TextAnchor.BOTTOM_CENTER);
    
    this.negativeItemLabelPosition = null;
    this.negativeItemLabelPositionList = new ObjectList();
    this.baseNegativeItemLabelPosition = new ItemLabelPosition(
            ItemLabelAnchor.OUTSIDE6, TextAnchor.TOP_CENTER);

    this.createEntities = null;
    this.createEntitiesList = new BooleanList();
    this.baseCreateEntities = true;
    
    this.listenerList = new EventListenerList();

}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:66,代码来源:AbstractRenderer.java

示例5: AbstractRenderer

/**
 * Default constructor.
 */
public AbstractRenderer() {
    this.seriesVisibleList = new BooleanList();
    this.defaultSeriesVisible = true;

    this.seriesVisibleInLegendList = new BooleanList();
    this.defaultSeriesVisibleInLegend = true;

    this.paintList = new PaintList();
    this.defaultPaint = DEFAULT_PAINT;
    this.autoPopulateSeriesPaint = true;

    this.fillPaintList = new PaintList();
    this.defaultFillPaint = Color.WHITE;
    this.autoPopulateSeriesFillPaint = false;

    this.outlinePaintList = new PaintList();
    this.defaultOutlinePaint = DEFAULT_OUTLINE_PAINT;
    this.autoPopulateSeriesOutlinePaint = false;

    this.strokeList = new StrokeList();
    this.defaultStroke = DEFAULT_STROKE;
    this.autoPopulateSeriesStroke = true;

    this.outlineStrokeList = new StrokeList();
    this.defaultOutlineStroke = DEFAULT_OUTLINE_STROKE;
    this.autoPopulateSeriesOutlineStroke = false;

    this.shapeList = new ShapeList();
    this.defaultShape = DEFAULT_SHAPE;
    this.autoPopulateSeriesShape = true;

    this.itemLabelsVisibleList = new BooleanList();
    this.defaultItemLabelsVisible = false;

    this.itemLabelFontMap = new HashMap<Integer, Font>();
    this.defaultItemLabelFont = new Font("SansSerif", Font.PLAIN, 10);

    this.itemLabelPaintList = new PaintList();
    this.defaultItemLabelPaint = Color.BLACK;

    this.positiveItemLabelPositionMap 
            = new HashMap<Integer, ItemLabelPosition>();
    this.defaultPositiveItemLabelPosition = new ItemLabelPosition(
            ItemLabelAnchor.OUTSIDE12, TextAnchor.BOTTOM_CENTER);

    this.negativeItemLabelPositionMap 
            = new HashMap<Integer, ItemLabelPosition>();
    this.defaultNegativeItemLabelPosition = new ItemLabelPosition(
            ItemLabelAnchor.OUTSIDE6, TextAnchor.TOP_CENTER);

    this.createEntitiesList = new BooleanList();
    this.defaultCreateEntities = true;

    this.defaultEntityRadius = 3;

    this.legendShapeList = new ShapeList();
    this.defaultLegendShape = null;

    this.treatLegendShapeAsLine = false;

    this.legendTextFontMap = new HashMap<Integer, Font>();
    this.defaultLegendTextFont = null;

    this.legendTextPaint = new PaintList();
    this.defaultLegendTextPaint = null;

    this.listenerList = new EventListenerList();
}
 
开发者ID:jfree,项目名称:jfreechart,代码行数:71,代码来源:AbstractRenderer.java

示例6: createChart

private void createChart() {
    
// create dataset
    theDataset = createDataset();

// create axis
CategoryAxis categoryAxis = new CategoryAxis("");
categoryAxis.setCategoryLabelPositions(org.jfree.chart.axis.CategoryLabelPositions.UP_45);
    ValueAxis valueAxis = new NumberAxis("Normalized Intensities");

// create renderer
CategoryItemRenderer renderer = null;
if( theOptions.REPRESENTATION==theOptions.BARS ) 
    renderer = new org.jfree.chart.renderer.category.BarRenderer();
else if( theOptions.REPRESENTATION==theOptions.ERRORBARS ) 
    renderer = new org.jfree.chart.renderer.category.StatisticalBarRenderer();    
else if( theOptions.REPRESENTATION==theOptions.DISTRIBUTIONS )  
    renderer = new org.jfree.chart.renderer.category.ScatterRenderer();        

ItemLabelPosition position1 = new ItemLabelPosition(ItemLabelAnchor.OUTSIDE12, TextAnchor.BOTTOM_CENTER);
renderer.setBasePositiveItemLabelPosition(position1);
ItemLabelPosition position2 = new ItemLabelPosition(ItemLabelAnchor.OUTSIDE6, TextAnchor.TOP_CENTER);
renderer.setBaseNegativeItemLabelPosition(position2);
    
// create plot
    thePlot = new CategoryPlot(theDataset, categoryAxis, valueAxis, renderer);
    thePlot.setOrientation(org.jfree.chart.plot.PlotOrientation.VERTICAL);

// add mean values 
if( theOptions.REPRESENTATION==theOptions.DISTRIBUTIONS ) {
    thePlot.setDataset(1, createMeansDataset());
    thePlot.mapDatasetToRangeAxis(1, 0);
    
    CategoryItemRenderer lr = new org.jfree.chart.renderer.category.LevelRenderer();
    lr.setPaint(Color.black);
    thePlot.setRenderer(1,lr);        
}

// create chart
    theChart = new JFreeChart("", JFreeChart.DEFAULT_TITLE_FONT, thePlot, true);    
theChart.setBackgroundPaint(Color.white);
theChart.setBorderVisible(false);
    
}
 
开发者ID:glycoinfo,项目名称:eurocarbdb,代码行数:44,代码来源:ProfilesComparisonReportChartCanvas.java

示例7: createChart

private JFreeChart createChart(CategoryDataset dataset, String title, MUOM uom) {

		JFreeChart chart = ChartFactory.createBarChart3D( 
				title ,
				Msg.translate(Env.getCtx(), "Day"),    			// X-Axis label
				Msg.translate(Env.getCtx(), (uom == null) ? "" : uom.getName()),   	// Y-Axis label
				dataset,         								// Dataset
				PlotOrientation.VERTICAL, 						// orientation
				true,                     						// include legend
				true,                     						// tooltips?
				false                     						// URLs?
		);

		chart.setBackgroundPaint(Color.WHITE);
		chart.setAntiAlias(true);
		chart.setBorderVisible(true);

		CategoryPlot plot = chart.getCategoryPlot();
		plot.setRangeGridlinesVisible(true);
		plot.setRangeGridlinePaint(Color.GRAY);

		plot.setDomainGridlinesVisible(true);
		plot.setDomainGridlinePaint(Color.GRAY);


		BarRenderer3D barrenderer  = (BarRenderer3D)plot.getRenderer();
		barrenderer.setDrawBarOutline(false);
		barrenderer.setBaseItemLabelGenerator(new LabelGenerator());
		//barrenderer.setBaseLabelGenerator(new LabelGenerator());
		barrenderer.setBaseItemLabelsVisible(true);
		barrenderer.setSeriesPaint(0, new Color(10, 80, 150, 128));
		barrenderer.setSeriesPaint(1, new Color(180, 60, 50, 128));

		ItemLabelPosition itemlabelposition = new ItemLabelPosition(ItemLabelAnchor.OUTSIDE12, TextAnchor.TOP_CENTER);
		barrenderer.setPositiveItemLabelPosition(itemlabelposition);

		CategoryAxis domainAxis = plot.getDomainAxis();
		domainAxis.setCategoryLabelPositions(
				CategoryLabelPositions.createUpRotationLabelPositions(Math.PI / 6.0)
		);

		return chart;
	}
 
开发者ID:metasfresh,项目名称:metasfresh,代码行数:43,代码来源:CCRP.java

示例8: AbstractRenderer

/**
 * Default constructor.
 */
public AbstractRenderer() {

    this.seriesVisible = null;
    this.seriesVisibleList = new BooleanList();
    this.baseSeriesVisible = true;

    this.seriesVisibleInLegend = null;
    this.seriesVisibleInLegendList = new BooleanList();
    this.baseSeriesVisibleInLegend = true;

    this.paint = null;
    this.paintList = new PaintList();
    this.basePaint = DEFAULT_PAINT;
    this.autoPopulateSeriesPaint = true;

    this.fillPaint = null;
    this.fillPaintList = new PaintList();
    this.baseFillPaint = Color.white;
    this.autoPopulateSeriesFillPaint = false;

    this.outlinePaint = null;
    this.outlinePaintList = new PaintList();
    this.baseOutlinePaint = DEFAULT_OUTLINE_PAINT;
    this.autoPopulateSeriesOutlinePaint = false;

    this.stroke = null;
    this.strokeList = new StrokeList();
    this.baseStroke = DEFAULT_STROKE;
    this.autoPopulateSeriesStroke = true;

    this.outlineStroke = null;
    this.outlineStrokeList = new StrokeList();
    this.baseOutlineStroke = DEFAULT_OUTLINE_STROKE;
    this.autoPopulateSeriesOutlineStroke = false;

    this.shape = null;
    this.shapeList = new ShapeList();
    this.baseShape = DEFAULT_SHAPE;
    this.autoPopulateSeriesShape = true;

    this.itemLabelsVisible = null;
    this.itemLabelsVisibleList = new BooleanList();
    this.baseItemLabelsVisible = Boolean.FALSE;

    this.itemLabelFont = null;
    this.itemLabelFontList = new ObjectList();
    this.baseItemLabelFont = new Font("SansSerif", Font.PLAIN, 10);

    this.itemLabelPaint = null;
    this.itemLabelPaintList = new PaintList();
    this.baseItemLabelPaint = Color.black;

    this.positiveItemLabelPosition = null;
    this.positiveItemLabelPositionList = new ObjectList();
    this.basePositiveItemLabelPosition = new ItemLabelPosition(
            ItemLabelAnchor.OUTSIDE12, TextAnchor.BOTTOM_CENTER);

    this.negativeItemLabelPosition = null;
    this.negativeItemLabelPositionList = new ObjectList();
    this.baseNegativeItemLabelPosition = new ItemLabelPosition(
            ItemLabelAnchor.OUTSIDE6, TextAnchor.TOP_CENTER);

    this.createEntities = null;
    this.createEntitiesList = new BooleanList();
    this.baseCreateEntities = true;

    this.legendShape = new ShapeList();
    this.baseLegendShape = null;

    this.legendTextFont = new ObjectList();
    this.baseLegendTextFont = null;

    this.legendTextPaint = new PaintList();
    this.baseLegendTextPaint = null;

    this.listenerList = new EventListenerList();

}
 
开发者ID:SOCR,项目名称:HTML5_WebSite,代码行数:81,代码来源:AbstractRenderer.java

示例9: resetRenderer

protected void resetRenderer(final IScope scope, final String serieid) {
	// AbstractCategoryItemRenderer
	// newr=(AbstractCategoryItemRenderer)this.getOrCreateRenderer(scope,
	// serieid);
	final CategoryPlot plot = (CategoryPlot) this.chart.getPlot();
	final AbstractCategoryItemRenderer newr = (AbstractCategoryItemRenderer) plot.getRenderer();
	// if
	// (serieid!=this.getChartdataset().series.keySet().iterator().next())
	// newr=(AbstractCategoryItemRenderer)this.getOrCreateRenderer(scope,
	// serieid);

	final ChartDataSeries myserie = this.getChartdataset().getDataSeries(scope, serieid);
	if (!IdPosition.containsKey(serieid)) {
		// System.out.println("pb!!!");
	} else {
		final int myrow = IdPosition.get(serieid);
		if (myserie.getMycolor() != null) {
			newr.setSeriesPaint(myrow, myserie.getMycolor());
		}

		if (this.series_label_position.equals("onchart")) {
			// ((BarRenderer)newr).setBaseItemLabelGenerator(new
			// LabelGenerator());
			newr.setBaseItemLabelGenerator(new LabelGenerator());
			final ItemLabelPosition itemlabelposition =
					new ItemLabelPosition(ItemLabelAnchor.OUTSIDE12, TextAnchor.BOTTOM_CENTER);
			newr.setBasePositiveItemLabelPosition(itemlabelposition);
			newr.setBaseNegativeItemLabelPosition(itemlabelposition);
			newr.setBaseItemLabelsVisible(true);
		}

		if (newr instanceof BarRenderer) {
			if (gap >= 0) {
				((BarRenderer) newr).setMaximumBarWidth(1 - gap);

			}

		}
	}

}
 
开发者ID:gama-platform,项目名称:gama,代码行数:41,代码来源:ChartJFreeChartOutputHistogram.java

示例10: calculateLabelAnchorPoint

private Point2D calculateLabelAnchorPoint(ItemLabelAnchor anchor, Rectangle2D bar, PlotOrientation orientation) {
	Point2D result = null;
	double offset = getItemLabelAnchorOffset();
	double x0 = bar.getX() - offset;
	double x1 = bar.getX();
	double x2 = bar.getX() + offset;
	double x3 = bar.getCenterX();
	double x4 = bar.getMaxX() - offset;
	double x5 = bar.getMaxX();
	double x6 = bar.getMaxX() + offset;

	double y0 = bar.getMaxY() + offset;
	double y1 = bar.getMaxY();
	double y2 = bar.getMaxY() - offset;
	double y3 = bar.getCenterY();
	double y4 = bar.getMinY() + offset;
	double y5 = bar.getMinY();
	double y6 = bar.getMinY() - offset;

	if (anchor == ItemLabelAnchor.CENTER) {
		result = new Point2D.Double(x3, y3);
	} else if (anchor == ItemLabelAnchor.INSIDE1) {
		result = new Point2D.Double(x4, y4);
	} else if (anchor == ItemLabelAnchor.INSIDE2) {
		result = new Point2D.Double(x4, y4);
	} else if (anchor == ItemLabelAnchor.INSIDE3) {
		result = new Point2D.Double(x4, y3);
	} else if (anchor == ItemLabelAnchor.INSIDE4) {
		result = new Point2D.Double(x4, y2);
	} else if (anchor == ItemLabelAnchor.INSIDE5) {
		result = new Point2D.Double(x4, y2);
	} else if (anchor == ItemLabelAnchor.INSIDE6) {
		result = new Point2D.Double(x3, y2);
	} else if (anchor == ItemLabelAnchor.INSIDE7) {
		result = new Point2D.Double(x2, y2);
	} else if (anchor == ItemLabelAnchor.INSIDE8) {
		result = new Point2D.Double(x2, y2);
	} else if (anchor == ItemLabelAnchor.INSIDE9) {
		result = new Point2D.Double(x2, y3);
	} else if (anchor == ItemLabelAnchor.INSIDE10) {
		result = new Point2D.Double(x2, y4);
	} else if (anchor == ItemLabelAnchor.INSIDE11) {
		result = new Point2D.Double(x2, y4);
	} else if (anchor == ItemLabelAnchor.INSIDE12) {
		result = new Point2D.Double(x3, y4);
	} else if (anchor == ItemLabelAnchor.OUTSIDE1) {
		result = new Point2D.Double(x5, y6);
	} else if (anchor == ItemLabelAnchor.OUTSIDE2) {
		result = new Point2D.Double(x6, y5);
	} else if (anchor == ItemLabelAnchor.OUTSIDE3) {
		result = new Point2D.Double(x6, y3);
	} else if (anchor == ItemLabelAnchor.OUTSIDE4) {
		result = new Point2D.Double(x6, y1);
	} else if (anchor == ItemLabelAnchor.OUTSIDE5) {
		result = new Point2D.Double(x5, y0);
	} else if (anchor == ItemLabelAnchor.OUTSIDE6) {
		result = new Point2D.Double(x3, y0);
	} else if (anchor == ItemLabelAnchor.OUTSIDE7) {
		result = new Point2D.Double(x1, y0);
	} else if (anchor == ItemLabelAnchor.OUTSIDE8) {
		result = new Point2D.Double(x0, y1);
	} else if (anchor == ItemLabelAnchor.OUTSIDE9) {
		result = new Point2D.Double(x0, y3);
	} else if (anchor == ItemLabelAnchor.OUTSIDE10) {
		result = new Point2D.Double(x0, y5);
	} else if (anchor == ItemLabelAnchor.OUTSIDE11) {
		result = new Point2D.Double(x1, y6);
	} else if (anchor == ItemLabelAnchor.OUTSIDE12) {
		result = new Point2D.Double(x3, y6);
	}

	return result;
}
 
开发者ID:OpenBD,项目名称:openbd-core,代码行数:73,代码来源:CustomClusteredXYBarRenderer.java

示例11: AbstractRenderer

/**
 * Default constructor.
 */
public AbstractRenderer() {

    this.seriesVisibleList = new BooleanList();
    this.baseSeriesVisible = true;

    this.seriesVisibleInLegendList = new BooleanList();
    this.baseSeriesVisibleInLegend = true;

    this.paintList = new PaintList();
    this.basePaint = DEFAULT_PAINT;
    this.autoPopulateSeriesPaint = true;

    this.fillPaintList = new PaintList();
    this.baseFillPaint = Color.white;
    this.autoPopulateSeriesFillPaint = false;

    this.outlinePaintList = new PaintList();
    this.baseOutlinePaint = DEFAULT_OUTLINE_PAINT;
    this.autoPopulateSeriesOutlinePaint = false;

    this.strokeList = new StrokeList();
    this.baseStroke = DEFAULT_STROKE;
    this.autoPopulateSeriesStroke = true;

    this.outlineStrokeList = new StrokeList();
    this.baseOutlineStroke = DEFAULT_OUTLINE_STROKE;
    this.autoPopulateSeriesOutlineStroke = false;

    this.shapeList = new ShapeList();
    this.baseShape = DEFAULT_SHAPE;
    this.autoPopulateSeriesShape = true;

    this.itemLabelsVisibleList = new BooleanList();
    this.baseItemLabelsVisible = false;

    this.itemLabelFontList = new ObjectList();
    this.baseItemLabelFont = new Font("Tahoma", Font.PLAIN, 10);

    this.itemLabelPaintList = new PaintList();
    this.baseItemLabelPaint = Color.black;

    this.positiveItemLabelPositionList = new ObjectList();
    this.basePositiveItemLabelPosition = new ItemLabelPosition(
            ItemLabelAnchor.OUTSIDE12, TextAnchor.BOTTOM_CENTER);

    this.negativeItemLabelPositionList = new ObjectList();
    this.baseNegativeItemLabelPosition = new ItemLabelPosition(
            ItemLabelAnchor.OUTSIDE6, TextAnchor.TOP_CENTER);

    this.createEntitiesList = new BooleanList();
    this.baseCreateEntities = true;

    this.defaultEntityRadius = 3;

    this.legendShapeList = new ShapeList();
    this.baseLegendShape = null;

    this.treatLegendShapeAsLine = false;

    this.legendTextFont = new ObjectList();
    this.baseLegendTextFont = null;

    this.legendTextPaint = new PaintList();
    this.baseLegendTextPaint = null;

    this.listenerList = new EventListenerList();

    this.selectedItemAttributes = new RenderAttributes();
    this.selectedItemAttributes.setDefaultFillPaint(Color.WHITE);
}
 
开发者ID:SpoonLabs,项目名称:astor,代码行数:73,代码来源:AbstractRenderer.java

示例12: AbstractRenderer

/**
 * Default constructor.
 */
public AbstractRenderer() {

    this.seriesVisible = null;
    this.seriesVisibleList = new BooleanList();
    this.baseSeriesVisible = true;
    
    this.seriesVisibleInLegend = null;
    this.seriesVisibleInLegendList = new BooleanList();
    this.baseSeriesVisibleInLegend = true;

    this.paint = null;
    this.paintList = new PaintList();
    this.basePaint = DEFAULT_PAINT;

    this.fillPaint = null;
    this.fillPaintList = new PaintList();
    this.baseFillPaint = Color.white;

    this.outlinePaint = null;
    this.outlinePaintList = new PaintList();
    this.baseOutlinePaint = DEFAULT_OUTLINE_PAINT;

    this.stroke = null;
    this.strokeList = new StrokeList();
    this.baseStroke = DEFAULT_STROKE;

    this.outlineStroke = null;
    this.outlineStrokeList = new StrokeList();
    this.baseOutlineStroke = DEFAULT_OUTLINE_STROKE;

    this.shape = null;
    this.shapeList = new ShapeList();
    this.baseShape = DEFAULT_SHAPE;

    this.itemLabelsVisible = null;
    this.itemLabelsVisibleList = new BooleanList();
    this.baseItemLabelsVisible = Boolean.FALSE;

    this.itemLabelFont = null;
    this.itemLabelFontList = new ObjectList();
    this.baseItemLabelFont = new Font("SansSerif", Font.PLAIN, 10);

    this.itemLabelPaint = null;
    this.itemLabelPaintList = new PaintList();
    this.baseItemLabelPaint = Color.black;

    this.positiveItemLabelPosition = null;
    this.positiveItemLabelPositionList = new ObjectList();
    this.basePositiveItemLabelPosition = new ItemLabelPosition(
        ItemLabelAnchor.OUTSIDE12, TextAnchor.BOTTOM_CENTER
    );
    
    this.negativeItemLabelPosition = null;
    this.negativeItemLabelPositionList = new ObjectList();
    this.baseNegativeItemLabelPosition = new ItemLabelPosition(
        ItemLabelAnchor.OUTSIDE6, TextAnchor.TOP_CENTER
    );

    this.createEntities = null;
    this.createEntitiesList = new BooleanList();
    this.baseCreateEntities = true;
    
    this.listenerList = new EventListenerList();

}
 
开发者ID:opensim-org,项目名称:opensim-gui,代码行数:68,代码来源:AbstractRenderer.java


注:本文中的org.jfree.chart.labels.ItemLabelAnchor.OUTSIDE12属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。