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


Java BooleanList类代码示例

本文整理汇总了Java中org.jfree.util.BooleanList的典型用法代码示例。如果您正苦于以下问题:Java BooleanList类的具体用法?Java BooleanList怎么用?Java BooleanList使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: XYLineAndShapeRenderer

import org.jfree.util.BooleanList; //导入依赖的package包/类
/**
 * Creates a new renderer with default settings.
 */
public XYLineAndShapeRenderer() {
    
    this.linesVisible = null;
    this.seriesLinesVisible = new BooleanList();
    this.defaultLinesVisible = true;
    
    this.shapesVisible = null;
    this.seriesShapesVisible = new BooleanList();
    this.defaultShapesVisible = true;
    
    this.shapesFilled = null;
    this.seriesShapesFilled = new BooleanList();
    this.defaultShapesFilled = true;

    this.drawOutlines = false;     // don't draw outlines for filled shapes
    this.useOutlinePaint = false;  // use item paint for outlines, not outline paint
    
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:22,代码来源:XYLineAndShapeRenderer.java

示例2: LineAndShapeRenderer

import org.jfree.util.BooleanList; //导入依赖的package包/类
/**
 * Constructs a renderer of the specified type.
 * <P>
 * Use one of the constants SHAPES, LINES or SHAPES_AND_LINES.
 *
 * @param type  the type of renderer.
 * 
 */
public LineAndShapeRenderer(int type) {
    super();
    if (type == SHAPES) {
        this.drawShapes = true;
    }
    if (type == LINES) {
        this.drawLines = true;
    }
    if (type == SHAPES_AND_LINES) {
        this.drawShapes = true;
        this.drawLines = true;
    }

    this.shapesFilled = null;
    this.seriesShapesFilled = new BooleanList();
    this.defaultShapesFilled = Boolean.TRUE;
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:26,代码来源:LineAndShapeRenderer.java

示例3: XYLineAndShapeRenderer

import org.jfree.util.BooleanList; //导入依赖的package包/类
/**
 * Creates a new renderer.
 * 
 * @param lines  lines visible?
 * @param shapes  shapes visible?
 */
public XYLineAndShapeRenderer(boolean lines, boolean shapes) {
    this.linesVisible = null;
    this.seriesLinesVisible = new BooleanList();
    this.baseLinesVisible = lines;
    this.legendLine = new Line2D.Double(-7.0, 0.0, 7.0, 0.0);
    
    this.shapesVisible = null;
    this.seriesShapesVisible = new BooleanList();
    this.baseShapesVisible = shapes;
    
    this.shapesFilled = null;
    this.useFillPaint = false;     // use item paint for fills by default
    this.seriesShapesFilled = new BooleanList();
    this.baseShapesFilled = true;

    this.drawOutlines = true;     
    this.useOutlinePaint = false;  // use item paint for outlines by 
                                   // default, not outline paint
    
    this.drawSeriesLineAsPath = false;
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:28,代码来源:XYLineAndShapeRenderer.java

示例4: LineAndShapeRenderer

import org.jfree.util.BooleanList; //导入依赖的package包/类
/**
 * Creates a new renderer with lines and/or shapes visible.
 * 
 * @param lines  draw lines?
 * @param shapes  draw shapes?
 */
public LineAndShapeRenderer(boolean lines, boolean shapes) {
    super();
    this.linesVisible = null;
    this.seriesLinesVisible = new BooleanList();
    this.baseLinesVisible = lines;
    this.shapesVisible = null;
    this.seriesShapesVisible = new BooleanList();
    this.baseShapesVisible = shapes;
    this.shapesFilled = null;
    this.seriesShapesFilled = new BooleanList();
    this.baseShapesFilled = true;
    this.useFillPaint = false;
    this.drawOutlines = true;
    this.useOutlinePaint = false;
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:22,代码来源:LineAndShapeRenderer.java

示例5: hashCode

import org.jfree.util.BooleanList; //导入依赖的package包/类
/**
 * Computes a hash code for a {@link BooleanList}.  In the latest version
 * of JCommon, the {@link BooleanList} class should implement the hashCode()
 * method correctly, but we compute it here anyway so that we can work with 
 * older versions of JCommon (back to 1.0.0).
 * 
 * @param pre  the seed value.
 * @param list  the list (<code>null</code> permitted).
 * 
 * @return The hash code.
 * 
 * @since 1.0.9
 */
public static int hashCode(int pre, BooleanList list) {
    if (list == null) {
        return pre;
    }
    int result = 127;
    int size = list.size();
    result = HashUtilities.hashCode(result, size);
    
    // for efficiency, we just use the first, last and middle items to
    // compute a hashCode...
    if (size > 0) {
        result = HashUtilities.hashCode(result, list.getBoolean(0));
        if (size > 1) {
            result = HashUtilities.hashCode(result, 
                    list.getBoolean(size - 1));
            if (size > 2) {
                result = HashUtilities.hashCode(result, 
                        list.getBoolean(size / 2));
            }
        }
    }
    return 37 * pre + result;
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:37,代码来源:HashUtilities.java

示例6: XYLineAndShapeRenderer

import org.jfree.util.BooleanList; //导入依赖的package包/类
/**
 * Creates a new renderer.
 *
 * @param lines  lines visible?
 * @param shapes  shapes visible?
 */
public XYLineAndShapeRenderer(boolean lines, boolean shapes) {
    this.linesVisible = null;
    this.seriesLinesVisible = new BooleanList();
    this.baseLinesVisible = lines;
    this.legendLine = new Line2D.Double(-7.0, 0.0, 7.0, 0.0);

    this.shapesVisible = null;
    this.seriesShapesVisible = new BooleanList();
    this.baseShapesVisible = shapes;

    this.shapesFilled = null;
    this.useFillPaint = false;     // use item paint for fills by default
    this.seriesShapesFilled = new BooleanList();
    this.baseShapesFilled = true;

    this.drawOutlines = true;
    this.useOutlinePaint = false;  // use item paint for outlines by
                                   // default, not outline paint

    this.drawSeriesLineAsPath = false;
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:28,代码来源:XYLineAndShapeRenderer.java

示例7: DefaultPolarItemRenderer

import org.jfree.util.BooleanList; //导入依赖的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;
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:19,代码来源:DefaultPolarItemRenderer.java

示例8: LineAndShapeRenderer

import org.jfree.util.BooleanList; //导入依赖的package包/类
/**
 * Creates a new renderer with lines and/or shapes visible.
 *
 * @param lines  draw lines?
 * @param shapes  draw shapes?
 */
public LineAndShapeRenderer(boolean lines, boolean shapes) {
    super();
    this.linesVisible = null;
    this.seriesLinesVisible = new BooleanList();
    this.baseLinesVisible = lines;
    this.shapesVisible = null;
    this.seriesShapesVisible = new BooleanList();
    this.baseShapesVisible = shapes;
    this.shapesFilled = null;
    this.seriesShapesFilled = new BooleanList();
    this.baseShapesFilled = true;
    this.useFillPaint = false;
    this.drawOutlines = true;
    this.useOutlinePaint = false;
    this.useSeriesOffset = false;  // preserves old behaviour
    this.itemMargin = 0.0;
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:24,代码来源:LineAndShapeRenderer.java

示例9: StandardXYItemRenderer

import org.jfree.util.BooleanList; //导入依赖的package包/类
/**
 * Constructs a new renderer. To specify the type of renderer, use one of the constants: {@link #SHAPES},
 * {@link #LINES} or {@link #SHAPES_AND_LINES}.
 *
 * @param type
 *            the type of renderer.
 * @param toolTipGenerator
 *            the item label generator (<code>null</code> permitted).
 * @param urlGenerator
 *            the URL generator.
 */
public StandardXYItemRenderer(final int type, final XYToolTipGenerator toolTipGenerator,
		final XYURLGenerator urlGenerator) {

	super();
	setBaseToolTipGenerator(toolTipGenerator);
	setURLGenerator(urlGenerator);
	if ((type & SHAPES) != 0) {
		this.baseShapesVisible = true;
	}
	if ((type & LINES) != 0) {
		this.plotLines = true;
	}
	if ((type & IMAGES) != 0) {
		this.plotImages = true;
	}
	if ((type & DISCONTINUOUS) != 0) {
		this.plotDiscontinuous = true;
	}

	this.shapesFilled = null;
	this.seriesShapesFilled = new BooleanList();
	this.baseShapesFilled = true;
	this.legendLine = new Line2D.Double(-7.0, 0.0, 7.0, 0.0);
	this.drawSeriesLineAsPath = false;
}
 
开发者ID:gama-platform,项目名称:gama,代码行数:37,代码来源:StandardXYItemRenderer.java

示例10: testEquals

import org.jfree.util.BooleanList; //导入依赖的package包/类
/**
 * Tests the equals() method.
 */
public void testEquals() {
    
    final BooleanList l1 = new BooleanList();
    l1.setBoolean(0, Boolean.TRUE);
    l1.setBoolean(1, Boolean.FALSE);
    l1.setBoolean(2, null);
    
    final BooleanList l2 = new BooleanList();
    l2.setBoolean(0, Boolean.TRUE);
    l2.setBoolean(1, Boolean.FALSE);
    l2.setBoolean(2, null);
    
    assertTrue(l1.equals(l2));
    assertTrue(l2.equals(l2));
    
}
 
开发者ID:nologic,项目名称:nabs,代码行数:20,代码来源:BooleanListTests.java

示例11: XYLineAndShapeRenderer

import org.jfree.util.BooleanList; //导入依赖的package包/类
/**
 * Creates a new renderer.
 * 
 * @param lines  lines visible?
 * @param shapes  shapes visible?
 */
public XYLineAndShapeRenderer(boolean lines, boolean shapes) {
    this.linesVisible = null;
    this.seriesLinesVisible = new BooleanList();
    this.baseLinesVisible = lines;
    this.legendLine = new Line2D.Double(-7.0, 0.0, 7.0, 0.0);
    
    this.shapesVisible = null;
    this.seriesShapesVisible = new BooleanList();
    this.baseShapesVisible = shapes;
    
    this.shapesFilled = null;
    this.useFillPaint = false;     // use item paint for fills by default
    this.seriesShapesFilled = new BooleanList();
    this.baseShapesFilled = true;

    this.drawOutlines = true;     
    this.useOutlinePaint = false;  // use item paint for outlines by 
                                   // default, not outline paint
    
    this.drawSeriesLineAsPath = true; //Ayman
}
 
开发者ID:opensim-org,项目名称:opensim-gui,代码行数:28,代码来源:XYLineAndShapeRenderer.java


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