本文整理汇总了Java中org.jfree.util.ObjectList类的典型用法代码示例。如果您正苦于以下问题:Java ObjectList类的具体用法?Java ObjectList怎么用?Java ObjectList使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ObjectList类属于org.jfree.util包,在下文中一共展示了ObjectList类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: DialPlot
import org.jfree.util.ObjectList; //导入依赖的package包/类
/**
* Creates a new instance of <code>DialPlot</code>.
*
* @param dataset the dataset (<code>null</code> permitted).
*/
public DialPlot(ValueDataset dataset) {
this.background = null;
this.cap = null;
this.dialFrame = new ArcDialFrame();
this.datasets = new ObjectList();
if (dataset != null) {
setDataset(dataset);
}
this.scales = new ObjectList();
this.datasetToScaleMap = new ObjectList();
this.layers = new java.util.ArrayList();
this.pointers = new java.util.ArrayList();
this.viewX = 0.0;
this.viewY = 0.0;
this.viewW = 1.0;
this.viewH = 1.0;
}
示例2: DefaultPolarItemRenderer
import org.jfree.util.ObjectList; //导入依赖的package包/类
/**
* Creates a new instance of DefaultPolarItemRenderer
*/
public DefaultPolarItemRenderer() {
this.seriesFilled = new BooleanList();
this.drawOutlineWhenFilled = true;
this.fillComposite = AlphaComposite.getInstance(
AlphaComposite.SRC_OVER, 0.3f);
this.useFillPaint = false; // use item paint for fills by default
this.legendLine = new Line2D.Double(-7.0, 0.0, 7.0, 0.0);
this.shapesVisible = true;
this.connectFirstAndLastPoint = true;
this.toolTipGeneratorList = new ObjectList();
this.urlGenerator = null;
this.legendItemToolTipGenerator = null;
this.legendItemURLGenerator = null;
}
示例3: AbstractXYItemRenderer
import org.jfree.util.ObjectList; //导入依赖的package包/类
/**
* Creates a renderer where the tooltip generator and the URL generator are both
* <code>null</code>.
*/
protected AbstractXYItemRenderer() {
this.itemLabelGenerator = null;
this.itemLabelGeneratorList = new ObjectList();
this.toolTipGenerator = null;
this.toolTipGeneratorList = new ObjectList();
this.urlGenerator = null;
this.defaultEntityRadius = 3;
}
示例4: AbstractCategoryItemRenderer
import org.jfree.util.ObjectList; //导入依赖的package包/类
/**
* Creates a new renderer with no tool tip generator and no URL generator.
* <P>
* The defaults (no tool tip or URL generators) have been chosen to minimise the processing
* required to generate a default chart. If you require tool tips or URLs, then you can
* easily add the required generators.
*/
protected AbstractCategoryItemRenderer() {
this.labelGenerator = null;
this.labelGeneratorList = new ObjectList();
this.toolTipGenerator = null;
this.toolTipGeneratorList = new ObjectList();
this.itemURLGenerator = null;
this.itemURLGeneratorList = new ObjectList();
}
示例5: PiePlot
import org.jfree.util.ObjectList; //导入依赖的package包/类
/**
* Creates a plot that will draw a pie chart for the specified dataset.
*
* @param dataset the dataset (<code>null</code> permitted).
*/
public PiePlot(PieDataset dataset) {
super();
this.dataset = dataset;
if (dataset != null) {
dataset.addChangeListener(this);
}
this.pieIndex = 0;
this.interiorGap = DEFAULT_INTERIOR_GAP;
this.circular = true;
this.startAngle = DEFAULT_START_ANGLE;
this.direction = Rotation.CLOCKWISE;
this.minimumArcAngleToDraw = DEFAULT_MINIMUM_ARC_ANGLE_TO_DRAW;
this.sectionPaint = null;
this.sectionPaintList = new PaintList();
this.baseSectionPaint = null;
this.sectionOutlinePaint = null;
this.sectionOutlinePaintList = new PaintList();
this.baseSectionOutlinePaint = DEFAULT_OUTLINE_PAINT;
this.sectionOutlineStroke = null;
this.sectionOutlineStrokeList = new StrokeList();
this.baseSectionOutlineStroke = DEFAULT_OUTLINE_STROKE;
this.explodePercentages = new ObjectList();
this.labelGenerator = new StandardPieItemLabelGenerator();
this.labelFont = DEFAULT_LABEL_FONT;
this.labelPaint = DEFAULT_LABEL_PAINT;
this.labelBackgroundPaint = DEFAULT_LABEL_BACKGROUND_PAINT;
this.labelOutlinePaint = DEFAULT_LABEL_OUTLINE_PAINT;
this.labelOutlineStroke = DEFAULT_LABEL_OUTLINE_STROKE;
this.labelShadowPaint = DEFAULT_LABEL_SHADOW_PAINT;
this.toolTipGenerator = null;
this.urlGenerator = null;
}
示例6: setExplodePercent
import org.jfree.util.ObjectList; //导入依赖的package包/类
/**
* Sets the amount that a pie section should be exploded and sends a {@link PlotChangeEvent}
* to all registered listeners.
*
* @param section the section index.
* @param percent the explode percentage (0.30 = 30 percent).
*/
public void setExplodePercent(int section, double percent) {
if (this.explodePercentages == null) {
this.explodePercentages = new ObjectList();
}
this.explodePercentages.set(section, new Double(percent));
notifyListeners(new PlotChangeEvent(this));
}
示例7: DialPlot
import org.jfree.util.ObjectList; //导入依赖的package包/类
/**
* Creates a new instance of <code>DialPlot</code>.
*/
public DialPlot() {
this.background = null;
this.cap = null;
this.dialFrame = new StandardDialFrame();
this.datasets = new ObjectList();
this.scales = new ObjectList();
this.datasetToScaleMap = new ObjectList();
this.layers = new java.util.ArrayList();
this.viewX = 0.0;
this.viewY = 0.0;
this.viewW = 1.0;
this.viewH = 1.0;
}
示例8: AbstractXYItemRenderer
import org.jfree.util.ObjectList; //导入依赖的package包/类
/**
* Creates a renderer where the tooltip generator and the URL generator are
* both <code>null</code>.
*/
protected AbstractXYItemRenderer() {
this.itemLabelGenerator = null;
this.itemLabelGeneratorList = new ObjectList();
this.toolTipGenerator = null;
this.toolTipGeneratorList = new ObjectList();
this.urlGenerator = null;
this.backgroundAnnotations = new java.util.ArrayList();
this.foregroundAnnotations = new java.util.ArrayList();
this.defaultEntityRadius = 3;
this.legendItemLabelGenerator = new StandardXYSeriesLabelGenerator(
"{0}");
}
示例9: AbstractCategoryItemRenderer
import org.jfree.util.ObjectList; //导入依赖的package包/类
/**
* Creates a new renderer with no tool tip generator and no URL generator.
* The defaults (no tool tip or URL generators) have been chosen to
* minimise the processing required to generate a default chart. If you
* require tool tips or URLs, then you can easily add the required
* generators.
*/
protected AbstractCategoryItemRenderer() {
this.itemLabelGenerator = null;
this.itemLabelGeneratorList = new ObjectList();
this.toolTipGenerator = null;
this.toolTipGeneratorList = new ObjectList();
this.itemURLGenerator = null;
this.itemURLGeneratorList = new ObjectList();
this.legendItemLabelGenerator
= new StandardCategorySeriesLabelGenerator();
}
示例10: MotionBubbleRenderer
import org.jfree.util.ObjectList; //导入依赖的package包/类
/**
* Constructs a new MotionBubbleRenderer with the specified type of scaling.
*
* @param dataset the dataset that the renderer will use
* @param scaleType the type of scaling (must be one of:
* {@link #SCALE_ON_BOTH_AXES}, {@link #SCALE_ON_DOMAIN_AXIS},
* {@link #SCALE_ON_RANGE_AXIS}).
*/
public MotionBubbleRenderer(MotionDataSet dataset, int scaleType)
{
super(scaleType);
this.dataset = dataset;
dataset.addChangeListener(this);
this.selectedItems = new ObjectList();
this.selectedCategories = new HashMap<Object,Boolean>();
this.setBaseSeriesVisible(false, false);
}
示例11: AbstractXYItemRenderer
import org.jfree.util.ObjectList; //导入依赖的package包/类
/**
* Creates a renderer where the tooltip generator and the URL generator are
* both <code>null</code>.
*/
protected AbstractXYItemRenderer() {
super();
this.itemLabelGenerator = null;
this.itemLabelGeneratorList = new ObjectList();
this.toolTipGenerator = null;
this.toolTipGeneratorList = new ObjectList();
this.urlGenerator = null;
this.backgroundAnnotations = new java.util.ArrayList();
this.foregroundAnnotations = new java.util.ArrayList();
this.defaultEntityRadius = 3;
this.legendItemLabelGenerator = new StandardXYSeriesLabelGenerator(
"{0}");
}
示例12: AbstractXYItemRenderer
import org.jfree.util.ObjectList; //导入依赖的package包/类
/**
* Creates a renderer where the tooltip generator and the URL generator are
* both <code>null</code>.
*/
protected AbstractXYItemRenderer() {
super();
this.itemLabelGenerator = null;
this.itemLabelGeneratorList = new ObjectList();
this.toolTipGenerator = null;
this.toolTipGeneratorList = new ObjectList();
this.urlGenerator = null;
this.backgroundAnnotations = new java.util.ArrayList();
this.foregroundAnnotations = new java.util.ArrayList();
this.legendItemLabelGenerator = new StandardXYSeriesLabelGenerator(
"{0}");
}
示例13: AbstractCategoryItemRenderer
import org.jfree.util.ObjectList; //导入依赖的package包/类
/**
* Creates a new renderer with no tool tip generator and no URL generator.
* The defaults (no tool tip or URL generators) have been chosen to
* minimise the processing required to generate a default chart. If you
* require tool tips or URLs, then you can easily add the required
* generators.
*/
protected AbstractCategoryItemRenderer() {
this.itemLabelGenerator = null;
this.itemLabelGeneratorList = new ObjectList();
this.toolTipGenerator = null;
this.toolTipGeneratorList = new ObjectList();
this.itemURLGenerator = null;
this.itemURLGeneratorList = new ObjectList();
this.legendItemLabelGenerator
= new StandardCategorySeriesLabelGenerator();
}
示例14: testEquals
import org.jfree.util.ObjectList; //导入依赖的package包/类
/**
* Tests the equals() method.
*/
public void testEquals() {
final ObjectList l1 = new ObjectList();
l1.set(0, Color.blue);
l1.set(1, Color.red);
final ObjectList l2 = new ObjectList();
l2.set(0, Color.blue);
l2.set(1, Color.red);
assertTrue(l1.equals(l2));
assertTrue(l2.equals(l2));
}
示例15: testEquals2
import org.jfree.util.ObjectList; //导入依赖的package包/类
/**
* Another test of the equals method. The capacity of the internal list shouldn't
* be a factor.
*/
public void testEquals2() {
final ObjectList l1 = new ObjectList(20);
l1.set(0, Color.blue);
l1.set(1, Color.red);
final ObjectList l2 = new ObjectList();
l2.set(0, Color.blue);
l2.set(1, Color.red);
assertTrue(l1.equals(l2));
assertTrue(l2.equals(l2));
}