GVKun编程网logo

org.jfree.chart.block.LineBorder的实例源码(abstractroutingdatasource源码)

29

想了解org.jfree.chart.block.LineBorder的实例源码的新动态吗?本文将为您提供详细的信息,我们还将为您解答关于abstractroutingdatasource源码的相关问

想了解org.jfree.chart.block.LineBorder的实例源码的新动态吗?本文将为您提供详细的信息,我们还将为您解答关于abstractroutingdatasource源码的相关问题,此外,我们还将为您介绍关于org.jfree.chart.axis.ColorBar的实例源码、org.jfree.chart.block.Arrangement的实例源码、org.jfree.chart.block.BlockBorder的实例源码、org.jfree.chart.block.BlockContainer的实例源码的新知识。

本文目录一览:

org.jfree.chart.block.LineBorder的实例源码(abstractroutingdatasource源码)

org.jfree.chart.block.LineBorder的实例源码(abstractroutingdatasource源码)

项目:jasperreports    文件:LineBorderProvider.java   
@Override
public BlockFrame getBlockFrame()
{
    RectangleInsets borderInsets = insets == null ? new RectangleInsets(1.0,1.0,1.0) : insets;
    stroke borderstroke = linestroke == null ? new Basicstroke(1.0f) : linestroke;
    Paint borderPaint = paint == null ? null : paint.getPaint();
    if (borderPaint == null) 
    {
        borderPaint = Color.BLACK;
    }

    return new LineBorder(borderPaint,borderstroke,borderInsets);
}
项目:lucee4    文件:Chart.java   
private void setLegend(JFreeChart chart,Plot plot,Font font) {
    if(!showlegend) return;


    Color bg = backgroundcolor==null?databackgroundcolor:backgroundcolor;
    if(font==null)font=getFont();



    LegendTitle legend = legendMultiLine?
            new LegendTitle(plot,new ColumnArrangement(),new ColumnArrangement()):
            new LegendTitle(plot);
       legend.setBackgroundPaint(bg);
       legend.setMargin(new RectangleInsets(1.0,1.0));
       legend.setFrame(new LineBorder());
       legend.setPosition(RectangleEdge.BottOM);
       legend.setHorizontalAlignment(HorizontalAlignment.LEFT);

       legend.setWidth(chartwidth-20);// geht nicht
       legend.setItemFont(font);
    legend.setItemPaint(foregroundcolor);

    //RectangleInsets labelPadding;
    legend.setItemLabelPadding(new RectangleInsets(2,2,2));
    legend.setBorder(0,0); 
    legend.setLegendItemGraphicLocation(RectangleAnchor.TOP_LEFT);
    legend.setLegendItemGraphicPadding(new RectangleInsets(8,10,0));
    chart.addLegend(legend);

}
项目:snap-desktop    文件:SpectrumTopComponent.java   
private void setLegend(JFreeChart chart) {
    chart.removeLegend();
    final LegendTitle legend = new LegendTitle(new SpectrumLegendItemSource());
    legend.setPosition(RectangleEdge.BottOM);
    LineBorder border = new LineBorder(Color.BLACK,new Basicstroke(),new RectangleInsets(2,2));
    legend.setFrame(border);
    chart.addLegend(legend);
}
项目:parabuild-ci    文件:LineBorderTests.java   
/**
 * Immutable - cloning not necessary.
 */
public void testcloning() {
    LineBorder b1 = new LineBorder();
    assertFalse(b1 instanceof Cloneable);
}
项目:parabuild-ci    文件:JFreeChart.java   
/**
 * Creates a new chart with the given title and plot.  The 
 * <code>createLegend</code> argument specifies whether or not a legend
 * should be added to the chart.  
 * <br><br>
 * Note that the  {@link ChartFactory} class contains a range 
 * of static methods that will return ready-made charts,and often this
 * is a more convenient way to create charts than using this constructor.
 *
 * @param title  the chart title (<code>null</code> permitted).
 * @param titleFont  the font for displaying the chart title 
 *                   (<code>null</code> permitted).
 * @param plot  controller of the visual representation of the data 
 *              (<code>null</code> not permitted).
 * @param createLegend  a flag indicating whether or not a legend should   
 *                      be created for the chart.
 */
public JFreeChart(String title,Font titleFont,boolean createLegend) {

    if (plot == null) {
        throw new NullPointerException("Null 'plot' argument.");
    }

    // create storage for listeners...
    this.progressListeners = new EventListenerList();
    this.changelisteners = new EventListenerList();
    this.notify = true;  // default is to notify listeners when the 
                         // chart changes

    this.renderingHints = new RenderingHints(
            RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);

    this.borderVisible = false;
    this.borderstroke = new Basicstroke(1.0f);
    this.borderPaint = Color.black;

    this.padding = RectangleInsets.ZERO_INSETS;

    this.plot = plot;
    plot.addchangelistener(this);

    this.subtitles = new ArrayList();

    // create a legend,if requested...
    if (createLegend) {
        LegendTitle legend = new LegendTitle(this.plot);
        legend.setMargin(new RectangleInsets(1.0,1.0));
        legend.setFrame(new LineBorder());
        legend.setBackgroundPaint(Color.white);
        legend.setPosition(RectangleEdge.BottOM);
        this.subtitles.add(legend);
    }

    // add the chart title,if one has been specified...
    if (title != null) {
        if (titleFont == null) {
            titleFont = DEFAULT_TITLE_FONT;
        }
        this.title = new TextTitle(title,titleFont);
        this.title.addchangelistener(this);
    }

    this.backgroundPaint = DEFAULT_BACKGROUND_PAINT;

    this.backgroundImage = DEFAULT_BACKGROUND_IMAGE;
    this.backgroundImageAlignment = DEFAULT_BACKGROUND_IMAGE_ALIGNMENT;
    this.backgroundImageAlpha = DEFAULT_BACKGROUND_IMAGE_ALPHA;

}
项目:ccu-historian    文件:JFreeChart.java   
/**
 * Creates a new chart with the given title and plot.  The
 * <code>createLegend</code> argument specifies whether or not a legend
 * should be added to the chart.
 * <br><br>
 * Note that the  {@link ChartFactory} class contains a range
 * of static methods that will return ready-made charts,and often this
 * is a more convenient way to create charts than using this constructor.
 *
 * @param title  the chart title (<code>null</code> permitted).
 * @param titleFont  the font for displaying the chart title
 *                   (<code>null</code> permitted).
 * @param plot  controller of the visual representation of the data
 *              (<code>null</code> not permitted).
 * @param createLegend  a flag indicating whether or not a legend should
 *                      be created for the chart.
 */
public JFreeChart(String title,boolean createLegend) {

    ParamChecks.nullNotPermitted(plot,"plot");

    // create storage for listeners...
    this.progressListeners = new EventListenerList();
    this.changelisteners = new EventListenerList();
    this.notify = true;  // default is to notify listeners when the
                         // chart changes

    this.renderingHints = new RenderingHints(
            RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);
    // added the following hint because of 
    // http://stackoverflow.com/questions/7785082/
    this.renderingHints.put(RenderingHints.KEY_stroke_CONTROL,RenderingHints.VALUE_stroke_PURE);

    this.borderVisible = false;
    this.borderstroke = new Basicstroke(1.0f);
    this.borderPaint = Color.black;

    this.padding = RectangleInsets.ZERO_INSETS;

    this.plot = plot;
    plot.addchangelistener(this);

    this.subtitles = new ArrayList();

    // create a legend,1.0));
        legend.setFrame(new LineBorder());
        legend.setBackgroundPaint(Color.white);
        legend.setPosition(RectangleEdge.BottOM);
        this.subtitles.add(legend);
        legend.addchangelistener(this);
    }

    // add the chart title,titleFont);
        this.title.addchangelistener(this);
    }

    this.backgroundPaint = DEFAULT_BACKGROUND_PAINT;

    this.backgroundImage = DEFAULT_BACKGROUND_IMAGE;
    this.backgroundImageAlignment = DEFAULT_BACKGROUND_IMAGE_ALIGNMENT;
    this.backgroundImageAlpha = DEFAULT_BACKGROUND_IMAGE_ALPHA;

}
项目:aya-lang    文件:JFreeChart.java   
/**
 * Creates a new chart with the given title and plot.  The
 * <code>createLegend</code> argument specifies whether or not a legend
 * should be added to the chart.
 * <br><br>
 * Note that the  {@link ChartFactory} class contains a range
 * of static methods that will return ready-made charts,titleFont);
        this.title.addchangelistener(this);
    }

    this.backgroundPaint = DEFAULT_BACKGROUND_PAINT;

    this.backgroundImage = DEFAULT_BACKGROUND_IMAGE;
    this.backgroundImageAlignment = DEFAULT_BACKGROUND_IMAGE_ALIGNMENT;
    this.backgroundImageAlpha = DEFAULT_BACKGROUND_IMAGE_ALPHA;

}
项目:HTML5_WebSite    文件:JFreeChart.java   
/**
 * Creates a new chart with the given title and plot.  The
 * <code>createLegend</code> argument specifies whether or not a legend
 * should be added to the chart.
 * <br><br>
 * Note that the  {@link ChartFactory} class contains a range
 * of static methods that will return ready-made charts,boolean createLegend) {

    if (plot == null) {
        throw new NullPointerException("Null 'plot' argument.");
    }

    // create storage for listeners...
    this.progressListeners = new EventListenerList();
    this.changelisteners = new EventListenerList();
    this.notify = true;  // default is to notify listeners when the
                         // chart changes

    this.renderingHints = new RenderingHints(
            RenderingHints.KEY_ANTIALIASING,titleFont);
        this.title.addchangelistener(this);
    }

    this.backgroundPaint = DEFAULT_BACKGROUND_PAINT;

    this.backgroundImage = DEFAULT_BACKGROUND_IMAGE;
    this.backgroundImageAlignment = DEFAULT_BACKGROUND_IMAGE_ALIGNMENT;
    this.backgroundImageAlpha = DEFAULT_BACKGROUND_IMAGE_ALPHA;

}
项目:populus    文件:JFreeChart.java   
/**
 * Creates a new chart with the given title and plot.  The
 * <code>createLegend</code> argument specifies whether or not a legend
 * should be added to the chart.
 * <br><br>
 * Note that the  {@link ChartFactory} class contains a range
 * of static methods that will return ready-made charts,titleFont);
        this.title.addchangelistener(this);
    }

    this.backgroundPaint = DEFAULT_BACKGROUND_PAINT;

    this.backgroundImage = DEFAULT_BACKGROUND_IMAGE;
    this.backgroundImageAlignment = DEFAULT_BACKGROUND_IMAGE_ALIGNMENT;
    this.backgroundImageAlpha = DEFAULT_BACKGROUND_IMAGE_ALPHA;

}
项目:PI    文件:JFreeChart.java   
/**
 * Creates a new chart with the given title and plot.  The
 * <code>createLegend</code> argument specifies whether or not a legend
 * should be added to the chart.
 * <br><br>
 * Note that the  {@link ChartFactory} class contains a range
 * of static methods that will return ready-made charts,titleFont);
        this.title.addchangelistener(this);
    }

    this.backgroundPaint = DEFAULT_BACKGROUND_PAINT;

    this.backgroundImage = DEFAULT_BACKGROUND_IMAGE;
    this.backgroundImageAlignment = DEFAULT_BACKGROUND_IMAGE_ALIGNMENT;
    this.backgroundImageAlpha = DEFAULT_BACKGROUND_IMAGE_ALPHA;

}
项目:nabs    文件:LineBorderTests.java   
/**
 * Immutable - cloning not necessary.
 */
public void testcloning() {
    LineBorder b1 = new LineBorder();
    assertFalse(b1 instanceof Cloneable);
}
项目:nabs    文件:JFreeChart.java   
/**
 * Creates a new chart with the given title and plot.  The 
 * <code>createLegend</code> argument specifies whether or not a legend
 * should be added to the chart.  
 * <br><br>
 * Note that the  {@link ChartFactory} class contains a range 
 * of static methods that will return ready-made charts,titleFont);
        this.title.addchangelistener(this);
    }

    this.backgroundPaint = DEFAULT_BACKGROUND_PAINT;

    this.backgroundImage = DEFAULT_BACKGROUND_IMAGE;
    this.backgroundImageAlignment = DEFAULT_BACKGROUND_IMAGE_ALIGNMENT;
    this.backgroundImageAlpha = DEFAULT_BACKGROUND_IMAGE_ALPHA;

}
项目:ECG-Viewer    文件:JFreeChart.java   
/**
 * Creates a new chart with the given title and plot.  The
 * <code>createLegend</code> argument specifies whether or not a legend
 * should be added to the chart.
 * <br><br>
 * Note that the  {@link ChartFactory} class contains a range
 * of static methods that will return ready-made charts,titleFont);
        this.title.addchangelistener(this);
    }

    this.backgroundPaint = DEFAULT_BACKGROUND_PAINT;

    this.backgroundImage = DEFAULT_BACKGROUND_IMAGE;
    this.backgroundImageAlignment = DEFAULT_BACKGROUND_IMAGE_ALIGNMENT;
    this.backgroundImageAlpha = DEFAULT_BACKGROUND_IMAGE_ALPHA;

}
项目:astor    文件:LineBorderTests.java   
/**
 * Immutable - cloning not necessary.
 */
public void testcloning() {
    LineBorder b1 = new LineBorder();
    assertFalse(b1 instanceof Cloneable);
}
项目:astor    文件:JFreeChart.java   
/**
 * Creates a new chart with the given title and plot.  The
 * <code>createLegend</code> argument specifies whether or not a legend
 * should be added to the chart.
 * <br><br>
 * Note that the  {@link ChartFactory} class contains a range
 * of static methods that will return ready-made charts,titleFont);
        this.title.addchangelistener(this);
    }

    this.backgroundPaint = DEFAULT_BACKGROUND_PAINT;

    this.backgroundImage = DEFAULT_BACKGROUND_IMAGE;
    this.backgroundImageAlignment = DEFAULT_BACKGROUND_IMAGE_ALIGNMENT;
    this.backgroundImageAlpha = DEFAULT_BACKGROUND_IMAGE_ALPHA;

}
项目:group-five    文件:JFreeChart.java   
/**
 * Creates a new chart with the given title and plot.  The
 * <code>createLegend</code> argument specifies whether or not a legend
 * should be added to the chart.
 * <br><br>
 * Note that the  {@link ChartFactory} class contains a range
 * of static methods that will return ready-made charts,titleFont);
        this.title.addchangelistener(this);
    }

    this.backgroundPaint = DEFAULT_BACKGROUND_PAINT;

    this.backgroundImage = DEFAULT_BACKGROUND_IMAGE;
    this.backgroundImageAlignment = DEFAULT_BACKGROUND_IMAGE_ALIGNMENT;
    this.backgroundImageAlpha = DEFAULT_BACKGROUND_IMAGE_ALPHA;

}
项目:manydesigns.cn    文件:JFreeChart.java   
/**
 * Creates a new chart with the given title and plot. The <code>createLegend</code> argument specifies whether or
 * not a legend should be added to the chart. <br>
 * <br>
 * Note that the {@link ChartFactory} class contains a range of static methods that will return ready-made charts,* and often this is a more convenient way to create charts than using this constructor.
 * 
 * @param title the chart title (<code>null</code> permitted).
 * @param titleFont the font for displaying the chart title (<code>null</code> permitted).
 * @param plot controller of the visual representation of the data (<code>null</code> not permitted).
 * @param createLegend a flag indicating whether or not a legend should be created for the chart.
 */
public JFreeChart(String title,"plot");

    // create storage for listeners...
    this.progressListeners = new EventListenerList();
    this.changelisteners = new EventListenerList();
    this.notify = true; // default is to notify listeners when the
                        // chart changes

    this.renderingHints = new RenderingHints(RenderingHints.KEY_ANTIALIASING,titleFont);
        this.title.addchangelistener(this);
    }

    this.backgroundPaint = DEFAULT_BACKGROUND_PAINT;

    this.backgroundImage = DEFAULT_BACKGROUND_IMAGE;
    this.backgroundImageAlignment = DEFAULT_BACKGROUND_IMAGE_ALIGNMENT;
    this.backgroundImageAlpha = DEFAULT_BACKGROUND_IMAGE_ALPHA;

}
项目:buffer_bci    文件:JFreeChart.java   
/**
 * Creates a new chart with the given title and plot.  The
 * <code>createLegend</code> argument specifies whether or not a legend
 * should be added to the chart.
 * <br><br>
 * Note that the  {@link ChartFactory} class contains a range
 * of static methods that will return ready-made charts,titleFont);
        this.title.addchangelistener(this);
    }

    this.backgroundPaint = DEFAULT_BACKGROUND_PAINT;

    this.backgroundImage = DEFAULT_BACKGROUND_IMAGE;
    this.backgroundImageAlignment = DEFAULT_BACKGROUND_IMAGE_ALIGNMENT;
    this.backgroundImageAlpha = DEFAULT_BACKGROUND_IMAGE_ALPHA;

}
项目:proyecto-teoria-control-utn-frro    文件:JFreeChart.java   
/**
 * Creates a new chart with the given title and plot.  The
 * <code>createLegend</code> argument specifies whether or not a legend
 * should be added to the chart.
 * <br><br>
 * Note that the  {@link ChartFactory} class contains a range
 * of static methods that will return ready-made charts,titleFont);
        this.title.addchangelistener(this);
    }

    this.backgroundPaint = DEFAULT_BACKGROUND_PAINT;

    this.backgroundImage = DEFAULT_BACKGROUND_IMAGE;
    this.backgroundImageAlignment = DEFAULT_BACKGROUND_IMAGE_ALIGNMENT;
    this.backgroundImageAlpha = DEFAULT_BACKGROUND_IMAGE_ALPHA;

}
项目:Memetic-Algorithm-for-TSP    文件:JFreeChart.java   
/**
 * Creates a new chart with the given title and plot.  The
 * <code>createLegend</code> argument specifies whether or not a legend
 * should be added to the chart.
 * <br><br>
 * Note that the  {@link ChartFactory} class contains a range
 * of static methods that will return ready-made charts,titleFont);
        this.title.addchangelistener(this);
    }

    this.backgroundPaint = DEFAULT_BACKGROUND_PAINT;

    this.backgroundImage = DEFAULT_BACKGROUND_IMAGE;
    this.backgroundImageAlignment = DEFAULT_BACKGROUND_IMAGE_ALIGNMENT;
    this.backgroundImageAlpha = DEFAULT_BACKGROUND_IMAGE_ALPHA;

}

org.jfree.chart.axis.ColorBar的实例源码

org.jfree.chart.axis.ColorBar的实例源码

项目:parabuild-ci    文件:ColorBarTests.java   
/**
 * Check that the equals() method can distinguish all fields.
 */
public void testEquals() {
    ColorBar c1 = new ColorBar("Test");
    ColorBar c2 = new ColorBar("Test");
    assertEquals(c1,c2);

    c1.setAxis(new NumberAxis("Axis 1"));
    assertTrue(!c1.equals(c2));
    c2.setAxis(new NumberAxis("Axis 1"));
    assertTrue(c1.equals(c2));

    c1.setColorPalette(new GreyPalette());
    assertTrue(!c1.equals(c2));
    c2.setColorPalette(new GreyPalette());
    assertTrue(c1.equals(c2));
}
项目:nabs    文件:ColorBarTests.java   
/**
 * Check that the equals() method can distinguish all fields.
 */
public void testEquals() {
    ColorBar c1 = new ColorBar("Test");
    ColorBar c2 = new ColorBar("Test");
    assertEquals(c1,c2);

    c1.setAxis(new NumberAxis("Axis 1"));
    assertTrue(!c1.equals(c2));
    c2.setAxis(new NumberAxis("Axis 1"));
    assertTrue(c1.equals(c2));

    c1.setColorPalette(new GreyPalette());
    assertTrue(!c1.equals(c2));
    c2.setColorPalette(new GreyPalette());
    assertTrue(c1.equals(c2));
}
项目:parabuild-ci    文件:ContourPlot.java   
/**
 * Constructs a contour plot with the specified axes (other attributes take default values).
 *
 * @param dataset  The dataset.
 * @param domainAxis  The domain axis.
 * @param rangeAxis  The range axis.
 * @param colorBar  The z-axis axis.
*/
public ContourPlot(ContourDataset dataset,ValueAxis domainAxis,ValueAxis rangeAxis,ColorBar colorBar) {

    super();

    this.dataset = dataset;
    if (dataset != null) {
        dataset.addchangelistener(this);
    }

    this.domainAxis = domainAxis;
    if (domainAxis != null) {
        domainAxis.setPlot(this);
        domainAxis.addchangelistener(this);
    }

    this.rangeAxis = rangeAxis;
    if (rangeAxis != null) {
        rangeAxis.setPlot(this);
        rangeAxis.addchangelistener(this);
    }

    this.colorBar = colorBar;
    if (colorBar != null) {
        colorBar.getAxis().setPlot(this);
        colorBar.getAxis().addchangelistener(this);
        colorBar.configure(this);
    }
    this.colorBarLocation = RectangleEdge.LEFT;

    this.toolTipGenerator = new StandardContourToolTipGenerator();

}
项目:parabuild-ci    文件:ContourPlot.java   
/**
 * Receives notification of a change to one of the plot's axes.
 *
 * @param event  information about the event.
 */
public void axisChanged(AxisChangeEvent event) {
    Object source = event.getSource();
    if (source.equals(this.rangeAxis) || source.equals(this.domainAxis)) {
        ColorBar cba = this.colorBar;
        if (this.colorBar.getAxis().isAutoRange()) {
            cba.getAxis().configure();
        }

    }
    super.axisChanged(event);
}
项目:parabuild-ci    文件:ColorBarPropertyEditPanel.java   
/**
 * Sets the properties of the specified axis to match the properties defined on this panel.
 * 
 * @param colorBar  the color bar.
 */
public void setAxisProperties(ColorBar colorBar) {
    super.setAxisProperties(colorBar.getAxis());
    colorBar.setColorPalette(this.currentPalette.getPalette());
    colorBar.getColorPalette().setInverse(this.invertPalette); //dmo added
    colorBar.getColorPalette().setStepped(this.stepPalette); //dmo added
}
项目:parabuild-ci    文件:ColorBarPropertyEditPanel.java   
/**
 * A static method that returns a panel that is appropriate for the axis
 * type.
 *
 * @param colorBar  the color bar.
 *
 * @return a panel or <code>null</code< if axis is <code>null</code>.
 */
public static ColorBarPropertyEditPanel getInstance(ColorBar colorBar) {

    if (colorBar != null) {
        return new ColorBarPropertyEditPanel(colorBar);
    }
    else {
        return null;
    }

}
项目:parabuild-ci    文件:ColorBarTests.java   
/**
 * Two objects that are equal are required to return the same hashCode. 
 */
public void testHashCode() {
    ColorBar c1 = new ColorBar("Test");
    ColorBar c2 = new ColorBar("Test");
    assertTrue(c1.equals(c2));
    int h1 = c1.hashCode();
    int h2 = c2.hashCode();
    assertEquals(h1,h2);
}
项目:parabuild-ci    文件:ContourPlot.java   
/**
 * Constructs a contour plot with the specified axes (other attributes take
 * default values).
 *
 * @param dataset  The dataset.
 * @param domainAxis  The domain axis.
 * @param rangeAxis  The range axis.
 * @param colorBar  The z-axis axis.
*/
public ContourPlot(ContourDataset dataset,ColorBar colorBar) {

    super();

    this.dataset = dataset;
    if (dataset != null) {
        dataset.addchangelistener(this);
    }

    this.domainAxis = domainAxis;
    if (domainAxis != null) {
        domainAxis.setPlot(this);
        domainAxis.addchangelistener(this);
    }

    this.rangeAxis = rangeAxis;
    if (rangeAxis != null) {
        rangeAxis.setPlot(this);
        rangeAxis.addchangelistener(this);
    }

    this.colorBar = colorBar;
    if (colorBar != null) {
        colorBar.getAxis().setPlot(this);
        colorBar.getAxis().addchangelistener(this);
        colorBar.configure(this);
    }
    this.colorBarLocation = RectangleEdge.LEFT;

    this.toolTipGenerator = new StandardContourToolTipGenerator();

}
项目:parabuild-ci    文件:DefaultColorBarEditor.java   
/**
 * Sets the properties of the specified axis to match the properties 
 * defined on this panel.
 * 
 * @param colorBar  the color bar.
 */
public void setAxisProperties(ColorBar colorBar) {
    super.setAxisProperties(colorBar.getAxis());
    colorBar.setColorPalette(this.currentPalette.getPalette());
    colorBar.getColorPalette().setInverse(this.invertPalette); //dmo added
    colorBar.getColorPalette().setStepped(this.stepPalette); //dmo added
}
项目:parabuild-ci    文件:DefaultColorBarEditor.java   
/**
 * A static method that returns a panel that is appropriate for the axis
 * type.
 *
 * @param colorBar  the color bar.
 *
 * @return A panel or <code>null</code< if axis is <code>null</code>.
 */
public static DefaultColorBarEditor getInstance(ColorBar colorBar) {

    if (colorBar != null) {
        return new DefaultColorBarEditor(colorBar);
    }
    else {
        return null;
    }

}
项目:ccu-historian    文件:ContourPlot.java   
/**
 * Constructs a contour plot with the specified axes (other attributes take
 * default values).
 *
 * @param dataset  The dataset.
 * @param domainAxis  The domain axis.
 * @param rangeAxis  The range axis.
 * @param colorBar  The z-axis axis.
*/
public ContourPlot(ContourDataset dataset,ColorBar colorBar) {

    super();

    this.dataset = dataset;
    if (dataset != null) {
        dataset.addchangelistener(this);
    }

    this.domainAxis = domainAxis;
    if (domainAxis != null) {
        domainAxis.setPlot(this);
        domainAxis.addchangelistener(this);
    }

    this.rangeAxis = rangeAxis;
    if (rangeAxis != null) {
        rangeAxis.setPlot(this);
        rangeAxis.addchangelistener(this);
    }

    this.colorBar = colorBar;
    if (colorBar != null) {
        colorBar.getAxis().setPlot(this);
        colorBar.getAxis().addchangelistener(this);
        colorBar.configure(this);
    }
    this.colorBarLocation = RectangleEdge.LEFT;

    this.toolTipGenerator = new StandardContourToolTipGenerator();

}
项目:ccu-historian    文件:ContourPlot.java   
/**
 * Receives notification of a change to one of the plot's axes.
 *
 * @param event  information about the event.
 */
@Override
public void axisChanged(AxisChangeEvent event) {
    Object source = event.getSource();
    if (source.equals(this.rangeAxis) || source.equals(this.domainAxis)) {
        ColorBar cba = this.colorBar;
        if (this.colorBar.getAxis().isAutoRange()) {
            cba.getAxis().configure();
        }

    }
    super.axisChanged(event);
}
项目:ccu-historian    文件:DefaultColorBarEditor.java   
/**
 * Sets the properties of the specified axis to match the properties
 * defined on this panel.
 *
 * @param colorBar  the color bar.
 */
public void setAxisProperties(ColorBar colorBar) {
    super.setAxisProperties(colorBar.getAxis());
    colorBar.setColorPalette(this.currentPalette.getPalette());
    colorBar.getColorPalette().setInverse(this.invertPalette); //dmo added
    colorBar.getColorPalette().setStepped(this.stepPalette); //dmo added
}
项目:ccu-historian    文件:DefaultColorBarEditor.java   
/**
 * A static method that returns a panel that is appropriate for the axis
 * type.
 *
 * @param colorBar  the color bar.
 *
 * @return A panel or <code>null</code< if axis is <code>null</code>.
 */
public static DefaultColorBarEditor getInstance(ColorBar colorBar) {

    if (colorBar != null) {
        return new DefaultColorBarEditor(colorBar);
    }
    else {
        return null;
    }

}
项目:aya-lang    文件:ContourPlot.java   
/**
 * Constructs a contour plot with the specified axes (other attributes take
 * default values).
 *
 * @param dataset  The dataset.
 * @param domainAxis  The domain axis.
 * @param rangeAxis  The range axis.
 * @param colorBar  The z-axis axis.
*/
public ContourPlot(ContourDataset dataset,ColorBar colorBar) {

    super();

    this.dataset = dataset;
    if (dataset != null) {
        dataset.addchangelistener(this);
    }

    this.domainAxis = domainAxis;
    if (domainAxis != null) {
        domainAxis.setPlot(this);
        domainAxis.addchangelistener(this);
    }

    this.rangeAxis = rangeAxis;
    if (rangeAxis != null) {
        rangeAxis.setPlot(this);
        rangeAxis.addchangelistener(this);
    }

    this.colorBar = colorBar;
    if (colorBar != null) {
        colorBar.getAxis().setPlot(this);
        colorBar.getAxis().addchangelistener(this);
        colorBar.configure(this);
    }
    this.colorBarLocation = RectangleEdge.LEFT;

    this.toolTipGenerator = new StandardContourToolTipGenerator();

}
项目:aya-lang    文件:ContourPlot.java   
/**
 * Receives notification of a change to one of the plot's axes.
 *
 * @param event  information about the event.
 */
@Override
public void axisChanged(AxisChangeEvent event) {
    Object source = event.getSource();
    if (source.equals(this.rangeAxis) || source.equals(this.domainAxis)) {
        ColorBar cba = this.colorBar;
        if (this.colorBar.getAxis().isAutoRange()) {
            cba.getAxis().configure();
        }

    }
    super.axisChanged(event);
}
项目:aya-lang    文件:DefaultColorBarEditor.java   
/**
 * Sets the properties of the specified axis to match the properties
 * defined on this panel.
 *
 * @param colorBar  the color bar.
 */
public void setAxisProperties(ColorBar colorBar) {
    super.setAxisProperties(colorBar.getAxis());
    colorBar.setColorPalette(this.currentPalette.getPalette());
    colorBar.getColorPalette().setInverse(this.invertPalette); //dmo added
    colorBar.getColorPalette().setStepped(this.stepPalette); //dmo added
}
项目:aya-lang    文件:DefaultColorBarEditor.java   
/**
 * A static method that returns a panel that is appropriate for the axis
 * type.
 *
 * @param colorBar  the color bar.
 *
 * @return A panel or <code>null</code< if axis is <code>null</code>.
 */
public static DefaultColorBarEditor getInstance(ColorBar colorBar) {

    if (colorBar != null) {
        return new DefaultColorBarEditor(colorBar);
    }
    else {
        return null;
    }

}
项目:HTML5_WebSite    文件:ContourPlot.java   
/**
 * Constructs a contour plot with the specified axes (other attributes take
 * default values).
 *
 * @param dataset  The dataset.
 * @param domainAxis  The domain axis.
 * @param rangeAxis  The range axis.
 * @param colorBar  The z-axis axis.
*/
public ContourPlot(ContourDataset dataset,ColorBar colorBar) {

    super();

    this.dataset = dataset;
    if (dataset != null) {
        dataset.addchangelistener(this);
    }

    this.domainAxis = domainAxis;
    if (domainAxis != null) {
        domainAxis.setPlot(this);
        domainAxis.addchangelistener(this);
    }

    this.rangeAxis = rangeAxis;
    if (rangeAxis != null) {
        rangeAxis.setPlot(this);
        rangeAxis.addchangelistener(this);
    }

    this.colorBar = colorBar;
    if (colorBar != null) {
        colorBar.getAxis().setPlot(this);
        colorBar.getAxis().addchangelistener(this);
        colorBar.configure(this);
    }
    this.colorBarLocation = RectangleEdge.LEFT;

    this.toolTipGenerator = new StandardContourToolTipGenerator();

}
项目:HTML5_WebSite    文件:ContourPlot.java   
/**
 * Receives notification of a change to one of the plot's axes.
 *
 * @param event  information about the event.
 */
public void axisChanged(AxisChangeEvent event) {
    Object source = event.getSource();
    if (source.equals(this.rangeAxis) || source.equals(this.domainAxis)) {
        ColorBar cba = this.colorBar;
        if (this.colorBar.getAxis().isAutoRange()) {
            cba.getAxis().configure();
        }

    }
    super.axisChanged(event);
}
项目:HTML5_WebSite    文件:DefaultColorBarEditor.java   
/**
 * Sets the properties of the specified axis to match the properties
 * defined on this panel.
 *
 * @param colorBar  the color bar.
 */
public void setAxisProperties(ColorBar colorBar) {
    super.setAxisProperties(colorBar.getAxis());
    colorBar.setColorPalette(this.currentPalette.getPalette());
    colorBar.getColorPalette().setInverse(this.invertPalette); //dmo added
    colorBar.getColorPalette().setStepped(this.stepPalette); //dmo added
}
项目:HTML5_WebSite    文件:DefaultColorBarEditor.java   
/**
 * A static method that returns a panel that is appropriate for the axis
 * type.
 *
 * @param colorBar  the color bar.
 *
 * @return A panel or <code>null</code< if axis is <code>null</code>.
 */
public static DefaultColorBarEditor getInstance(ColorBar colorBar) {

    if (colorBar != null) {
        return new DefaultColorBarEditor(colorBar);
    }
    else {
        return null;
    }

}
项目:populus    文件:ContourPlot.java   
/**
 * Constructs a contour plot with the specified axes (other attributes take
 * default values).
 *
 * @param dataset  The dataset.
 * @param domainAxis  The domain axis.
 * @param rangeAxis  The range axis.
 * @param colorBar  The z-axis axis.
*/
public ContourPlot(ContourDataset dataset,ColorBar colorBar) {

    super();

    this.dataset = dataset;
    if (dataset != null) {
        dataset.addchangelistener(this);
    }

    this.domainAxis = domainAxis;
    if (domainAxis != null) {
        domainAxis.setPlot(this);
        domainAxis.addchangelistener(this);
    }

    this.rangeAxis = rangeAxis;
    if (rangeAxis != null) {
        rangeAxis.setPlot(this);
        rangeAxis.addchangelistener(this);
    }

    this.colorBar = colorBar;
    if (colorBar != null) {
        colorBar.getAxis().setPlot(this);
        colorBar.getAxis().addchangelistener(this);
        colorBar.configure(this);
    }
    this.colorBarLocation = RectangleEdge.LEFT;

    this.toolTipGenerator = new StandardContourToolTipGenerator();

}
项目:populus    文件:ContourPlot.java   
/**
 * Receives notification of a change to one of the plot's axes.
 *
 * @param event  information about the event.
 */
@Override
public void axisChanged(AxisChangeEvent event) {
    Object source = event.getSource();
    if (source.equals(this.rangeAxis) || source.equals(this.domainAxis)) {
        ColorBar cba = this.colorBar;
        if (this.colorBar.getAxis().isAutoRange()) {
            cba.getAxis().configure();
        }

    }
    super.axisChanged(event);
}
项目:populus    文件:DefaultColorBarEditor.java   
/**
 * Sets the properties of the specified axis to match the properties
 * defined on this panel.
 *
 * @param colorBar  the color bar.
 */
public void setAxisProperties(ColorBar colorBar) {
    super.setAxisProperties(colorBar.getAxis());
    colorBar.setColorPalette(this.currentPalette.getPalette());
    colorBar.getColorPalette().setInverse(this.invertPalette); //dmo added
    colorBar.getColorPalette().setStepped(this.stepPalette); //dmo added
}
项目:populus    文件:DefaultColorBarEditor.java   
/**
 * A static method that returns a panel that is appropriate for the axis
 * type.
 *
 * @param colorBar  the color bar.
 *
 * @return A panel or <code>null</code< if axis is <code>null</code>.
 */
public static DefaultColorBarEditor getInstance(ColorBar colorBar) {

    if (colorBar != null) {
        return new DefaultColorBarEditor(colorBar);
    }
    else {
        return null;
    }

}
项目:PI    文件:ContourPlot.java   
/**
 * Constructs a contour plot with the specified axes (other attributes take
 * default values).
 *
 * @param dataset  The dataset.
 * @param domainAxis  The domain axis.
 * @param rangeAxis  The range axis.
 * @param colorBar  The z-axis axis.
*/
public ContourPlot(ContourDataset dataset,ColorBar colorBar) {

    super();

    this.dataset = dataset;
    if (dataset != null) {
        dataset.addchangelistener(this);
    }

    this.domainAxis = domainAxis;
    if (domainAxis != null) {
        domainAxis.setPlot(this);
        domainAxis.addchangelistener(this);
    }

    this.rangeAxis = rangeAxis;
    if (rangeAxis != null) {
        rangeAxis.setPlot(this);
        rangeAxis.addchangelistener(this);
    }

    this.colorBar = colorBar;
    if (colorBar != null) {
        colorBar.getAxis().setPlot(this);
        colorBar.getAxis().addchangelistener(this);
        colorBar.configure(this);
    }
    this.colorBarLocation = RectangleEdge.LEFT;

    this.toolTipGenerator = new StandardContourToolTipGenerator();

}
项目:PI    文件:ContourPlot.java   
/**
 * Receives notification of a change to one of the plot's axes.
 *
 * @param event  information about the event.
 */
public void axisChanged(AxisChangeEvent event) {
    Object source = event.getSource();
    if (source.equals(this.rangeAxis) || source.equals(this.domainAxis)) {
        ColorBar cba = this.colorBar;
        if (this.colorBar.getAxis().isAutoRange()) {
            cba.getAxis().configure();
        }

    }
    super.axisChanged(event);
}
项目:PI    文件:DefaultColorBarEditor.java   
/**
 * Sets the properties of the specified axis to match the properties
 * defined on this panel.
 *
 * @param colorBar  the color bar.
 */
public void setAxisProperties(ColorBar colorBar) {
    super.setAxisProperties(colorBar.getAxis());
    colorBar.setColorPalette(this.currentPalette.getPalette());
    colorBar.getColorPalette().setInverse(this.invertPalette); //dmo added
    colorBar.getColorPalette().setStepped(this.stepPalette); //dmo added
}
项目:PI    文件:DefaultColorBarEditor.java   
/**
 * A static method that returns a panel that is appropriate for the axis
 * type.
 *
 * @param colorBar  the color bar.
 *
 * @return A panel or <code>null</code< if axis is <code>null</code>.
 */
public static DefaultColorBarEditor getInstance(ColorBar colorBar) {

    if (colorBar != null) {
        return new DefaultColorBarEditor(colorBar);
    }
    else {
        return null;
    }

}
项目:nabs    文件:ColorBarTests.java   
/**
 * Two objects that are equal are required to return the same hashCode. 
 */
public void testHashCode() {
    ColorBar c1 = new ColorBar("Test");
    ColorBar c2 = new ColorBar("Test");
    assertTrue(c1.equals(c2));
    int h1 = c1.hashCode();
    int h2 = c2.hashCode();
    assertEquals(h1,h2);
}
项目:nabs    文件:ContourPlot.java   
/**
 * Constructs a contour plot with the specified axes (other attributes take
 * default values).
 *
 * @param dataset  The dataset.
 * @param domainAxis  The domain axis.
 * @param rangeAxis  The range axis.
 * @param colorBar  The z-axis axis.
*/
public ContourPlot(ContourDataset dataset,ColorBar colorBar) {

    super();

    this.dataset = dataset;
    if (dataset != null) {
        dataset.addchangelistener(this);
    }

    this.domainAxis = domainAxis;
    if (domainAxis != null) {
        domainAxis.setPlot(this);
        domainAxis.addchangelistener(this);
    }

    this.rangeAxis = rangeAxis;
    if (rangeAxis != null) {
        rangeAxis.setPlot(this);
        rangeAxis.addchangelistener(this);
    }

    this.colorBar = colorBar;
    if (colorBar != null) {
        colorBar.getAxis().setPlot(this);
        colorBar.getAxis().addchangelistener(this);
        colorBar.configure(this);
    }
    this.colorBarLocation = RectangleEdge.LEFT;

    this.toolTipGenerator = new StandardContourToolTipGenerator();

}
项目:nabs    文件:ContourPlot.java   
/**
 * Receives notification of a change to one of the plot's axes.
 *
 * @param event  information about the event.
 */
public void axisChanged(AxisChangeEvent event) {
    Object source = event.getSource();
    if (source.equals(this.rangeAxis) || source.equals(this.domainAxis)) {
        ColorBar cba = this.colorBar;
        if (this.colorBar.getAxis().isAutoRange()) {
            cba.getAxis().configure();
        }

    }
    super.axisChanged(event);
}
项目:nabs    文件:DefaultColorBarEditor.java   
/**
 * Sets the properties of the specified axis to match the properties 
 * defined on this panel.
 * 
 * @param colorBar  the color bar.
 */
public void setAxisProperties(ColorBar colorBar) {
    super.setAxisProperties(colorBar.getAxis());
    colorBar.setColorPalette(this.currentPalette.getPalette());
    colorBar.getColorPalette().setInverse(this.invertPalette); //dmo added
    colorBar.getColorPalette().setStepped(this.stepPalette); //dmo added
}
项目:nabs    文件:DefaultColorBarEditor.java   
/**
 * A static method that returns a panel that is appropriate for the axis
 * type.
 *
 * @param colorBar  the color bar.
 *
 * @return A panel or <code>null</code< if axis is <code>null</code>.
 */
public static DefaultColorBarEditor getInstance(ColorBar colorBar) {

    if (colorBar != null) {
        return new DefaultColorBarEditor(colorBar);
    }
    else {
        return null;
    }

}
项目:ECG-Viewer    文件:ContourPlot.java   
/**
 * Constructs a contour plot with the specified axes (other attributes take
 * default values).
 *
 * @param dataset  The dataset.
 * @param domainAxis  The domain axis.
 * @param rangeAxis  The range axis.
 * @param colorBar  The z-axis axis.
*/
public ContourPlot(ContourDataset dataset,ColorBar colorBar) {

    super();

    this.dataset = dataset;
    if (dataset != null) {
        dataset.addchangelistener(this);
    }

    this.domainAxis = domainAxis;
    if (domainAxis != null) {
        domainAxis.setPlot(this);
        domainAxis.addchangelistener(this);
    }

    this.rangeAxis = rangeAxis;
    if (rangeAxis != null) {
        rangeAxis.setPlot(this);
        rangeAxis.addchangelistener(this);
    }

    this.colorBar = colorBar;
    if (colorBar != null) {
        colorBar.getAxis().setPlot(this);
        colorBar.getAxis().addchangelistener(this);
        colorBar.configure(this);
    }
    this.colorBarLocation = RectangleEdge.LEFT;

    this.toolTipGenerator = new StandardContourToolTipGenerator();

}
项目:ECG-Viewer    文件:ContourPlot.java   
/**
 * Receives notification of a change to one of the plot's axes.
 *
 * @param event  information about the event.
 */
@Override
public void axisChanged(AxisChangeEvent event) {
    Object source = event.getSource();
    if (source.equals(this.rangeAxis) || source.equals(this.domainAxis)) {
        ColorBar cba = this.colorBar;
        if (this.colorBar.getAxis().isAutoRange()) {
            cba.getAxis().configure();
        }

    }
    super.axisChanged(event);
}
项目:ECG-Viewer    文件:DefaultColorBarEditor.java   
/**
 * Sets the properties of the specified axis to match the properties
 * defined on this panel.
 *
 * @param colorBar  the color bar.
 */
public void setAxisProperties(ColorBar colorBar) {
    super.setAxisProperties(colorBar.getAxis());
    colorBar.setColorPalette(this.currentPalette.getPalette());
    colorBar.getColorPalette().setInverse(this.invertPalette); //dmo added
    colorBar.getColorPalette().setStepped(this.stepPalette); //dmo added
}
项目:ECG-Viewer    文件:DefaultColorBarEditor.java   
/**
 * A static method that returns a panel that is appropriate for the axis
 * type.
 *
 * @param colorBar  the color bar.
 *
 * @return A panel or <code>null</code< if axis is <code>null</code>.
 */
public static DefaultColorBarEditor getInstance(ColorBar colorBar) {

    if (colorBar != null) {
        return new DefaultColorBarEditor(colorBar);
    }
    else {
        return null;
    }

}

org.jfree.chart.block.Arrangement的实例源码

org.jfree.chart.block.Arrangement的实例源码

项目:parabuild-ci    文件:LegendTitle.java   
/**
 * Creates a new legend title with the specified arrangement.
 * 
 * @param source  the source.
 * @param hLayout  the horizontal item arrangement (<code>null</code> not
 *                 permitted).
 * @param vLayout  the vertical item arrangement (<code>null</code> not
 *                 permitted).
 */
public LegendTitle(LegendItemSource source,Arrangement hLayout,Arrangement vLayout) {
    this.sources = new LegendItemSource[] {source};
    this.items = new BlockContainer(hLayout);
    this.hLayout = hLayout;
    this.vLayout = vLayout;
    this.backgroundPaint = null;  
    this.legendItemGraphicEdge = RectangleEdge.LEFT;
    this.legendItemGraphicAnchor = RectangleAnchor.CENTER;
    this.legendItemGraphicLocation = RectangleAnchor.CENTER;
    this.legendItemGraphicPadding = new RectangleInsets(2.0,2.0,2.0);
    this.itemFont = DEFAULT_ITEM_FONT;
    this.itemPaint = DEFAULT_ITEM_PAINT;
    this.itemLabelPadding = new RectangleInsets(2.0,2.0);
}
项目:ccu-historian    文件:LegendTitle.java   
/**
 * Creates a new legend title with the specified arrangement.
 *
 * @param source  the source.
 * @param hLayout  the horizontal item arrangement (<code>null</code> not
 *                 permitted).
 * @param vLayout  the vertical item arrangement (<code>null</code> not
 *                 permitted).
 */
public LegendTitle(LegendItemSource source,Arrangement vLayout) {
    this.sources = new LegendItemSource[] {source};
    this.items = new BlockContainer(hLayout);
    this.hLayout = hLayout;
    this.vLayout = vLayout;
    this.backgroundPaint = null;
    this.legendItemGraphicEdge = RectangleEdge.LEFT;
    this.legendItemGraphicAnchor = RectangleAnchor.CENTER;
    this.legendItemGraphicLocation = RectangleAnchor.CENTER;
    this.legendItemGraphicPadding = new RectangleInsets(2.0,2.0);
    this.sortOrder = SortOrder.ASCENDING;
}
项目:jfreechart    文件:LegendTitle.java   
/**
 * Creates a new legend title with the specified arrangement.
 *
 * @param source  the source.
 * @param hLayout  the horizontal item arrangement ({@code null} not
 *                 permitted).
 * @param vLayout  the vertical item arrangement ({@code null} not
 *                 permitted).
 */
public LegendTitle(LegendItemSource source,2.0);
    this.sortOrder = SortOrder.ASCENDING;
}
项目:aya-lang    文件:LegendTitle.java   
/**
 * Creates a new legend title with the specified arrangement.
 *
 * @param source  the source.
 * @param hLayout  the horizontal item arrangement (<code>null</code> not
 *                 permitted).
 * @param vLayout  the vertical item arrangement (<code>null</code> not
 *                 permitted).
 */
public LegendTitle(LegendItemSource source,2.0);
    this.sortOrder = SortOrder.ASCENDING;
}
项目:HTML5_WebSite    文件:LegendTitle.java   
/**
 * Creates a new legend title with the specified arrangement.
 *
 * @param source  the source.
 * @param hLayout  the horizontal item arrangement (<code>null</code> not
 *                 permitted).
 * @param vLayout  the vertical item arrangement (<code>null</code> not
 *                 permitted).
 */
public LegendTitle(LegendItemSource source,2.0);
}
项目:populus    文件:LegendTitle.java   
/**
 * Creates a new legend title with the specified arrangement.
 *
 * @param source  the source.
 * @param hLayout  the horizontal item arrangement (<code>null</code> not
 *                 permitted).
 * @param vLayout  the vertical item arrangement (<code>null</code> not
 *                 permitted).
 */
public LegendTitle(LegendItemSource source,2.0);
    this.sortOrder = SortOrder.ASCENDING;
}
项目:PI    文件:LegendTitle.java   
/**
 * Creates a new legend title with the specified arrangement.
 *
 * @param source  the source.
 * @param hLayout  the horizontal item arrangement (<code>null</code> not
 *                 permitted).
 * @param vLayout  the vertical item arrangement (<code>null</code> not
 *                 permitted).
 */
public LegendTitle(LegendItemSource source,2.0);
}
项目:nabs    文件:LegendTitle.java   
/**
 * Creates a new legend title with the specified arrangement.
 * 
 * @param source  the source.
 * @param hLayout  the horizontal item arrangement (<code>null</code> not
 *                 permitted).
 * @param vLayout  the vertical item arrangement (<code>null</code> not
 *                 permitted).
 */
public LegendTitle(LegendItemSource source,2.0);
}
项目:ECG-Viewer    文件:LegendTitle.java   
/**
 * Creates a new legend title with the specified arrangement.
 *
 * @param source  the source.
 * @param hLayout  the horizontal item arrangement (<code>null</code> not
 *                 permitted).
 * @param vLayout  the vertical item arrangement (<code>null</code> not
 *                 permitted).
 */
public LegendTitle(LegendItemSource source,2.0);
    this.sortOrder = SortOrder.ASCENDING;
}
项目:astor    文件:LegendTitle.java   
/**
 * Creates a new legend title with the specified arrangement.
 *
 * @param source  the source.
 * @param hLayout  the horizontal item arrangement (<code>null</code> not
 *                 permitted).
 * @param vLayout  the vertical item arrangement (<code>null</code> not
 *                 permitted).
 */
public LegendTitle(LegendItemSource source,2.0);
}
项目:opensim-gui    文件:LegendTitle.java   
/**
 * Creates a new legend title with the specified arrangement.
 * 
 * @param source  the source.
 * @param hLayout  the horizontal item arrangement (<code>null</code> not
 *                 permitted).
 * @param vLayout  the vertical item arrangement (<code>null</code> not
 *                 permitted).
 */
public LegendTitle(LegendItemSource source,2.0);
}
项目:group-five    文件:LegendTitle.java   
/**
 * Creates a new legend title with the specified arrangement.
 *
 * @param source  the source.
 * @param hLayout  the horizontal item arrangement (<code>null</code> not
 *                 permitted).
 * @param vLayout  the vertical item arrangement (<code>null</code> not
 *                 permitted).
 */
public LegendTitle(LegendItemSource source,2.0);
    this.sortOrder = SortOrder.ASCENDING;
}
项目:manydesigns.cn    文件:LegendTitle.java   
/**
 * Creates a new legend title with the specified arrangement.
 *
 * @param source  the source.
 * @param hLayout  the horizontal item arrangement (<code>null</code> not
 *                 permitted).
 * @param vLayout  the vertical item arrangement (<code>null</code> not
 *                 permitted).
 */
public LegendTitle(LegendItemSource source,2.0);
    this.sortOrder = SortOrder.ASCENDING;
}
项目:buffer_bci    文件:LegendTitle.java   
/**
 * Creates a new legend title with the specified arrangement.
 *
 * @param source  the source.
 * @param hLayout  the horizontal item arrangement (<code>null</code> not
 *                 permitted).
 * @param vLayout  the vertical item arrangement (<code>null</code> not
 *                 permitted).
 */
public LegendTitle(LegendItemSource source,2.0);
    this.sortOrder = SortOrder.ASCENDING;
}
项目:proyecto-teoria-control-utn-frro    文件:LegendTitle.java   
/**
 * Creates a new legend title with the specified arrangement.
 *
 * @param source  the source.
 * @param hLayout  the horizontal item arrangement (<code>null</code> not
 *                 permitted).
 * @param vLayout  the vertical item arrangement (<code>null</code> not
 *                 permitted).
 */
public LegendTitle(LegendItemSource source,2.0);
    this.sortOrder = SortOrder.ASCENDING;
}
项目:Memetic-Algorithm-for-TSP    文件:LegendTitle.java   
/**
 * Creates a new legend title with the specified arrangement.
 *
 * @param source  the source.
 * @param hLayout  the horizontal item arrangement (<code>null</code> not
 *                 permitted).
 * @param vLayout  the vertical item arrangement (<code>null</code> not
 *                 permitted).
 */
public LegendTitle(LegendItemSource source,2.0);
    this.sortOrder = SortOrder.ASCENDING;
}
项目:rapidminer    文件:ColoredBlockContainer.java   
public ColoredBlockContainer(Paint fillPaint,Arrangement arrangement) {
    super(arrangement);
    this.fillPaint = fillPaint;
}
项目:rapidminer    文件:SmartLegendTitle.java   
public SmartLegendTitle(LegendItemSource source,Arrangement vLayout) {
    super(source,hLayout,vLayout);
}
项目:rapidminer-studio    文件:ColoredBlockContainer.java   
public ColoredBlockContainer(Paint fillPaint,Arrangement arrangement) {
    super(arrangement);
    this.fillPaint = fillPaint;
}
项目:rapidminer-studio    文件:SmartLegendTitle.java   
public SmartLegendTitle(LegendItemSource source,vLayout);
}
项目:rapidminer-5    文件:ColoredBlockContainer.java   
public ColoredBlockContainer(Paint fillPaint,Arrangement arrangement) {
    super(arrangement);
    this.fillPaint = fillPaint;
}
项目:rapidminer-5    文件:SmartLegendTitle.java   
public SmartLegendTitle(LegendItemSource source,vLayout);
}
项目:parabuild-ci    文件:LegendItemBlockContainer.java   
/**
 * Creates a new legend item block.
 * 
 * @param arrangement
 * @param dataset
 * @param series
 */
public LegendItemBlockContainer(Arrangement arrangement,int dataset,int series) {
    super(arrangement);
    this.dataset = dataset;
    this.series = series;
}
项目:ccu-historian    文件:LegendItemBlockContainer.java   
/**
 * Creates a new legend item block.
 *
 * @param arrangement  the arrangement.
 * @param datasetIndex  the dataset index.
 * @param series  the series index.
 *
 * @deprecated As of 1.0.6,use the other constructor.
 */
public LegendItemBlockContainer(Arrangement arrangement,int datasetIndex,int series) {
    super(arrangement);
    this.datasetIndex = datasetIndex;
    this.series = series;
}
项目:ccu-historian    文件:LegendItemBlockContainer.java   
/**
 * Creates a new legend item block.
 *
 * @param arrangement  the arrangement.
 * @param dataset  the dataset.
 * @param seriesKey  the series key.
 *
 * @since 1.0.6
 */
public LegendItemBlockContainer(Arrangement arrangement,Dataset dataset,Comparable seriesKey) {
    super(arrangement);
    this.dataset = dataset;
    this.seriesKey = seriesKey;
}
项目:jfreechart    文件:LegendItemBlockContainer.java   
/**
 * Creates a new legend item block.
 *
 * @param arrangement  the arrangement.
 * @param dataset  the dataset.
 * @param seriesKey  the series key.
 *
 * @since 1.0.6
 */
public LegendItemBlockContainer(Arrangement arrangement,Comparable seriesKey) {
    super(arrangement);
    this.dataset = dataset;
    this.seriesKey = seriesKey;
}
项目:aya-lang    文件:LegendItemBlockContainer.java   
/**
 * Creates a new legend item block.
 *
 * @param arrangement  the arrangement.
 * @param datasetIndex  the dataset index.
 * @param series  the series index.
 *
 * @deprecated As of 1.0.6,int series) {
    super(arrangement);
    this.datasetIndex = datasetIndex;
    this.series = series;
}
项目:aya-lang    文件:LegendItemBlockContainer.java   
/**
 * Creates a new legend item block.
 *
 * @param arrangement  the arrangement.
 * @param dataset  the dataset.
 * @param seriesKey  the series key.
 *
 * @since 1.0.6
 */
public LegendItemBlockContainer(Arrangement arrangement,Comparable seriesKey) {
    super(arrangement);
    this.dataset = dataset;
    this.seriesKey = seriesKey;
}
项目:HTML5_WebSite    文件:LegendItemBlockContainer.java   
/**
 * Creates a new legend item block.
 *
 * @param arrangement  the arrangement.
 * @param datasetIndex  the dataset index.
 * @param series  the series index.
 *
 * @deprecated As of 1.0.6,int series) {
    super(arrangement);
    this.datasetIndex = datasetIndex;
    this.series = series;
}
项目:HTML5_WebSite    文件:LegendItemBlockContainer.java   
/**
 * Creates a new legend item block.
 *
 * @param arrangement  the arrangement.
 * @param dataset  the dataset.
 * @param seriesKey  the series key.
 *
 * @since 1.0.6
 */
public LegendItemBlockContainer(Arrangement arrangement,Comparable seriesKey) {
    super(arrangement);
    this.dataset = dataset;
    this.seriesKey = seriesKey;
}
项目:populus    文件:LegendItemBlockContainer.java   
/**
 * Creates a new legend item block.
 *
 * @param arrangement  the arrangement.
 * @param datasetIndex  the dataset index.
 * @param series  the series index.
 *
 * @deprecated As of 1.0.6,int series) {
    super(arrangement);
    this.datasetIndex = datasetIndex;
    this.series = series;
}
项目:populus    文件:LegendItemBlockContainer.java   
/**
 * Creates a new legend item block.
 *
 * @param arrangement  the arrangement.
 * @param dataset  the dataset.
 * @param seriesKey  the series key.
 *
 * @since 1.0.6
 */
public LegendItemBlockContainer(Arrangement arrangement,Comparable seriesKey) {
    super(arrangement);
    this.dataset = dataset;
    this.seriesKey = seriesKey;
}
项目:PI    文件:LegendItemBlockContainer.java   
/**
 * Creates a new legend item block.
 *
 * @param arrangement  the arrangement.
 * @param datasetIndex  the dataset index.
 * @param series  the series index.
 *
 * @deprecated As of 1.0.6,int series) {
    super(arrangement);
    this.datasetIndex = datasetIndex;
    this.series = series;
}
项目:PI    文件:LegendItemBlockContainer.java   
/**
 * Creates a new legend item block.
 *
 * @param arrangement  the arrangement.
 * @param dataset  the dataset.
 * @param seriesKey  the series key.
 *
 * @since 1.0.6
 */
public LegendItemBlockContainer(Arrangement arrangement,Comparable seriesKey) {
    super(arrangement);
    this.dataset = dataset;
    this.seriesKey = seriesKey;
}
项目:nabs    文件:LegendItemBlockContainer.java   
/**
 * Creates a new legend item block.
 * 
 * @param arrangement
 * @param dataset
 * @param series
 */
public LegendItemBlockContainer(Arrangement arrangement,int series) {
    super(arrangement);
    this.dataset = dataset;
    this.series = series;
}
项目:ECG-Viewer    文件:LegendItemBlockContainer.java   
/**
 * Creates a new legend item block.
 *
 * @param arrangement  the arrangement.
 * @param datasetIndex  the dataset index.
 * @param series  the series index.
 *
 * @deprecated As of 1.0.6,int series) {
    super(arrangement);
    this.datasetIndex = datasetIndex;
    this.series = series;
}
项目:ECG-Viewer    文件:LegendItemBlockContainer.java   
/**
 * Creates a new legend item block.
 *
 * @param arrangement  the arrangement.
 * @param dataset  the dataset.
 * @param seriesKey  the series key.
 *
 * @since 1.0.6
 */
public LegendItemBlockContainer(Arrangement arrangement,Comparable seriesKey) {
    super(arrangement);
    this.dataset = dataset;
    this.seriesKey = seriesKey;
}
项目:astor    文件:LegendItemBlockContainer.java   
/**
 * Creates a new legend item block.
 *
 * @param arrangement  the arrangement.
 * @param dataset  the dataset.
 * @param seriesKey  the series key.
 *
 * @since 1.0.6
 */
public LegendItemBlockContainer(Arrangement arrangement,Comparable seriesKey) {
    super(arrangement);
    this.dataset = dataset;
    this.seriesKey = seriesKey;
}
项目:opensim-gui    文件:LegendItemBlockContainer.java   
/**
 * Creates a new legend item block.
 * 
 * @param arrangement
 * @param dataset
 * @param series
 */
public LegendItemBlockContainer(Arrangement arrangement,int series) {
    super(arrangement);
    this.dataset = dataset;
    this.series = series;
}

org.jfree.chart.block.BlockBorder的实例源码

org.jfree.chart.block.BlockBorder的实例源码

项目:rapidminer    文件:ROCChartPlotter.java   
public void paintDeviationChart(Graphics graphics,int width,int height) {
    prepareData();

    JFreeChart chart = createChart(this.dataset);

    // set the background color for the chart...
    chart.setBackgroundPaint(Color.white);

    // legend settings
    LegendTitle legend = chart.getLegend();
    if (legend != null) {
        legend.setPosition(RectangleEdge.TOP);
        legend.setFrame(BlockBorder.NONE);
        legend.setHorizontalAlignment(HorizontalAlignment.LEFT);
    }

    Rectangle2D drawRect = new Rectangle2D.Double(0,width,height);
    chart.draw((Graphics2D) graphics,drawRect);
}
项目:jfree-fxdemos    文件:BarChartFXDemo1.java   
/**
 * Creates a sample chart.
 *
 * @param dataset  the dataset.
 *
 * @return The chart.
 */
private static JFreeChart createChart(CategoryDataset dataset) {
    JFreeChart chart = ChartFactory.createBarChart(
        "Performance: JFreeSVG vs Batik",null /* x-axis label*/,"Milliseconds" /* y-axis label */,dataset);
    chart.addSubtitle(new TextTitle("Time to generate 1000 charts in SVG " 
            + "format (lower bars = better performance)"));
    chart.setBackgroundPaint(Color.white);
    CategoryPlot plot = (CategoryPlot) chart.getPlot();

    NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
    rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
    BarRenderer renderer = (BarRenderer) plot.getRenderer();
    renderer.setDrawBarOutline(false);
    chart.getLegend().setFrame(BlockBorder.NONE);
    return chart;
}
项目:ccu-historian    文件:BarChartFXDemo1.java   
/**
 * Creates a sample chart.
 *
 * @param dataset  the dataset.
 *
 * @return The chart.
 */
private static JFreeChart createChart(CategoryDataset dataset) {
    JFreeChart chart = ChartFactory.createBarChart(
        "Performance: JFreeSVG vs Batik",dataset);
    chart.addSubtitle(new TextTitle("Time to generate 1000 charts in SVG " 
            + "format (lower bars = better performance)"));
    chart.setBackgroundPaint(Color.white);
    CategoryPlot plot = (CategoryPlot) chart.getPlot();

    NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
    rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
    BarRenderer renderer = (BarRenderer) plot.getRenderer();
    renderer.setDrawBarOutline(false);
    chart.getLegend().setFrame(BlockBorder.NONE);
    return chart;
}
项目:ccu-historian    文件:BarChartDemo1.java   
/**
 * Creates a sample chart.
 *
 * @param dataset  the dataset.
 *
 * @return The chart.
 */
private static JFreeChart createChart(CategoryDataset dataset) {
    JFreeChart chart = ChartFactory.createBarChart(
        "Performance: JFreeSVG vs Batik",dataset);
    chart.addSubtitle(new TextTitle("Time to generate 1000 charts in SVG " 
            + "format (lower bars = better performance)"));
    chart.setBackgroundPaint(Color.white);
    CategoryPlot plot = (CategoryPlot) chart.getPlot();

    // ******************************************************************
    //  More than 150 demo applications are included with the JFreeChart
    //  Developer Guide...for more information,see:
    //
    //  >   http://www.object-refinery.com/jfreechart/guide.html
    //
    // ******************************************************************

    NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
    rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
    BarRenderer renderer = (BarRenderer) plot.getRenderer();
    renderer.setDrawBarOutline(false);
    chart.getLegend().setFrame(BlockBorder.NONE);
    return chart;
}
项目:aya-lang    文件:BarChartFXDemo1.java   
/**
 * Creates a sample chart.
 *
 * @param dataset  the dataset.
 *
 * @return The chart.
 */
private static JFreeChart createChart(CategoryDataset dataset) {
    JFreeChart chart = ChartFactory.createBarChart(
        "Performance: JFreeSVG vs Batik",dataset);
    chart.addSubtitle(new TextTitle("Time to generate 1000 charts in SVG " 
            + "format (lower bars = better performance)"));
    chart.setBackgroundPaint(Color.white);
    CategoryPlot plot = (CategoryPlot) chart.getPlot();

    NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
    rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
    BarRenderer renderer = (BarRenderer) plot.getRenderer();
    renderer.setDrawBarOutline(false);
    chart.getLegend().setFrame(BlockBorder.NONE);
    return chart;
}
项目:aya-lang    文件:BarChartDemo1.java   
/**
 * Creates a sample chart.
 *
 * @param dataset  the dataset.
 *
 * @return The chart.
 */
private static JFreeChart createChart(CategoryDataset dataset) {
    JFreeChart chart = ChartFactory.createBarChart(
        "Performance: JFreeSVG vs Batik",see:
    //
    //  >   http://www.object-refinery.com/jfreechart/guide.html
    //
    // ******************************************************************

    NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
    rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
    BarRenderer renderer = (BarRenderer) plot.getRenderer();
    renderer.setDrawBarOutline(false);
    chart.getLegend().setFrame(BlockBorder.NONE);
    return chart;
}
项目:rapidminer-studio    文件:ROCChartPlotter.java   
public void paintDeviationChart(Graphics graphics,drawRect);
}
项目:populus    文件:BarChartFXDemo1.java   
/**
 * Creates a sample chart.
 *
 * @param dataset  the dataset.
 *
 * @return The chart.
 */
private static JFreeChart createChart(CategoryDataset dataset) {
    JFreeChart chart = ChartFactory.createBarChart(
        "Performance: JFreeSVG vs Batik",dataset);
    chart.addSubtitle(new TextTitle("Time to generate 1000 charts in SVG " 
            + "format (lower bars = better performance)"));
    chart.setBackgroundPaint(Color.white);
    CategoryPlot plot = (CategoryPlot) chart.getPlot();

    NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
    rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
    BarRenderer renderer = (BarRenderer) plot.getRenderer();
    renderer.setDrawBarOutline(false);
    chart.getLegend().setFrame(BlockBorder.NONE);
    return chart;
}
项目:populus    文件:BarChartDemo1.java   
/**
 * Creates a sample chart.
 *
 * @param dataset  the dataset.
 *
 * @return The chart.
 */
private static JFreeChart createChart(CategoryDataset dataset) {
    JFreeChart chart = ChartFactory.createBarChart(
        "Performance: JFreeSVG vs Batik",see:
    //
    //  >   http://www.object-refinery.com/jfreechart/guide.html
    //
    // ******************************************************************

    NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
    rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
    BarRenderer renderer = (BarRenderer) plot.getRenderer();
    renderer.setDrawBarOutline(false);
    chart.getLegend().setFrame(BlockBorder.NONE);
    return chart;
}
项目:PDFReporter-Studio    文件:MLegendSettings.java   
@Override
public void setPropertyValue(Object id,Object value) {
    LegendSettings ts = getValue();
    if (id.equals(LegendSettings.PROPERTY_showLegend))
        ts.setShowLegend((Boolean) value);
    else if (id.equals(LegendSettings.PROPERTY_font))
        ts.setFont(MFontUtil.setMFont(value));
    else if (id.equals(LegendSettings.PROPERTY_position))
        ts.setPosition((EdgeEnum) posD.getEnumValue(value));
    else if (id.equals(LegendSettings.PROPERTY_horizontalAlignment))
        ts.setHorizontalAlignment(((JFreeChartHorizontalAlignmentEnum) hp.getEnumValue(value)).getJFreeChartValue());
    else if (id.equals(LegendSettings.PROPERTY_verticalAlignment))
        ts.setVerticalAlignment(((JFreeChartVerticalAlignmentEnum) vp.getEnumValue(value)).getJFreeChartValue());
    else if (id.equals(LegendSettings.PROPERTY_backgroundPaint))
        ts.setBackgroundPaint((PaintProvider) value);
    else if (id.equals(LegendSettings.PROPERTY_foregroundPaint))
        ts.setForegroundPaint((PaintProvider) value);

    RectangleInsets ri = PadUtil.setPropertyValue(id,value,ts.getPadding());
    if (ri != null)
        ts.setPadding(ri);
    BlockFrame bf = ts.getBlockFrame();
    ri = PadUtil.setPropertyValue(id,bf == null ? null : bf.getInsets(),LegendSettings.PROPERTY_blockFrame);
    if (ri != null)
        ts.setBlockFrame(new BlockBorder(ri.getTop(),ri.getLeft(),ri.getBottom(),ri.getRight()));
}
项目:ECG-Viewer    文件:BarChartFXDemo1.java   
/**
 * Creates a sample chart.
 *
 * @param dataset  the dataset.
 *
 * @return The chart.
 */
private static JFreeChart createChart(CategoryDataset dataset) {
    JFreeChart chart = ChartFactory.createBarChart(
        "Performance: JFreeSVG vs Batik",dataset);
    chart.addSubtitle(new TextTitle("Time to generate 1000 charts in SVG " 
            + "format (lower bars = better performance)"));
    chart.setBackgroundPaint(Color.white);
    CategoryPlot plot = (CategoryPlot) chart.getPlot();

    NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
    rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
    BarRenderer renderer = (BarRenderer) plot.getRenderer();
    renderer.setDrawBarOutline(false);
    chart.getLegend().setFrame(BlockBorder.NONE);
    return chart;
}
项目:ECG-Viewer    文件:BarChartDemo1.java   
/**
 * Creates a sample chart.
 *
 * @param dataset  the dataset.
 *
 * @return The chart.
 */
private static JFreeChart createChart(CategoryDataset dataset) {
    JFreeChart chart = ChartFactory.createBarChart(
        "Performance: JFreeSVG vs Batik",see:
    //
    //  >   http://www.object-refinery.com/jfreechart/guide.html
    //
    // ******************************************************************

    NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
    rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
    BarRenderer renderer = (BarRenderer) plot.getRenderer();
    renderer.setDrawBarOutline(false);
    chart.getLegend().setFrame(BlockBorder.NONE);
    return chart;
}
项目:group-five    文件:BarChartFXDemo1.java   
/**
 * Creates a sample chart.
 *
 * @param dataset  the dataset.
 *
 * @return The chart.
 */
private static JFreeChart createChart(CategoryDataset dataset) {
    JFreeChart chart = ChartFactory.createBarChart(
        "Performance: JFreeSVG vs Batik",dataset);
    chart.addSubtitle(new TextTitle("Time to generate 1000 charts in SVG " 
            + "format (lower bars = better performance)"));
    chart.setBackgroundPaint(Color.white);
    CategoryPlot plot = (CategoryPlot) chart.getPlot();

    NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
    rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
    BarRenderer renderer = (BarRenderer) plot.getRenderer();
    renderer.setDrawBarOutline(false);
    chart.getLegend().setFrame(BlockBorder.NONE);
    return chart;
}
项目:group-five    文件:BarChartDemo1.java   
/**
 * Creates a sample chart.
 *
 * @param dataset  the dataset.
 *
 * @return The chart.
 */
private static JFreeChart createChart(CategoryDataset dataset) {
    JFreeChart chart = ChartFactory.createBarChart(
        "Performance: JFreeSVG vs Batik",see:
    //
    //  >   http://www.object-refinery.com/jfreechart/guide.html
    //
    // ******************************************************************

    NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
    rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
    BarRenderer renderer = (BarRenderer) plot.getRenderer();
    renderer.setDrawBarOutline(false);
    chart.getLegend().setFrame(BlockBorder.NONE);
    return chart;
}
项目:rapidminer-5    文件:JFreeChartPlotEngine.java   
/**
 * Creates {@link LegendTitle}s for all dimensions from the PlotConfiguration of this Plotter2D.
 * Expects that all {@link ValueSource} s in the provided PlotConfiguration use the same
 * {@link DimensionConfig} s.
 */
private List<LegendTitle> createLegendTitles() {
    List<LegendTitle> legendTitles = new LinkedList<LegendTitle>();
    LegendConfiguration legendConfiguration = plotInstance.getCurrentPlotConfigurationClone().getLegendConfiguration();

    LegendTitle legendTitle = new SmartLegendTitle(this,new FlowArrangement(HorizontalAlignment.CENTER,VerticalAlignment.CENTER,30,2),new ColumnArrangement(
            HorizontalAlignment.LEFT,2));
    legendTitle.setItemPaint(legendConfiguration.getLegendFontColor());

    RectangleEdge position = legendConfiguration.getLegendPosition().getPosition();
    if (position == null) {
        return legendTitles;
    }
    legendTitle.setPosition(position);

    if (legendConfiguration.isShowLegendFrame()) {
        legendTitle.setFrame(new BlockBorder(legendConfiguration.getLegendFrameColor()));
    }
    ColoredBlockContainer wrapper = new ColoredBlockContainer(legendConfiguration.getLegendBackgroundColor());
    wrapper.add(legendTitle.getItemContainer());
    wrapper.setPadding(3,3,3);
    legendTitle.setWrapper(wrapper);

    legendTitles.add(legendTitle);
    return legendTitles;
}
项目:rapidminer-5    文件:ROCChartPlotter.java   
public void paintDeviationChart(Graphics graphics,int height) {      
    prepareData();

    JFreeChart chart = createChart(this.dataset);

    // set the background color for the chart...
    chart.setBackgroundPaint(Color.white);

    // legend settings
    LegendTitle legend = chart.getLegend();
    if (legend != null) {
        legend.setPosition(RectangleEdge.TOP);
        legend.setFrame(BlockBorder.NONE);
        legend.setHorizontalAlignment(HorizontalAlignment.LEFT);
    }

    Rectangle2D drawRect = new Rectangle2D.Double(0,height);
    chart.draw((Graphics2D)graphics,drawRect);
}
项目:buffer_bci    文件:BarChartFXDemo1.java   
/**
 * Creates a sample chart.
 *
 * @param dataset  the dataset.
 *
 * @return The chart.
 */
private static JFreeChart createChart(CategoryDataset dataset) {
    JFreeChart chart = ChartFactory.createBarChart(
        "Performance: JFreeSVG vs Batik",dataset);
    chart.addSubtitle(new TextTitle("Time to generate 1000 charts in SVG " 
            + "format (lower bars = better performance)"));
    chart.setBackgroundPaint(Color.white);
    CategoryPlot plot = (CategoryPlot) chart.getPlot();

    NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
    rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
    BarRenderer renderer = (BarRenderer) plot.getRenderer();
    renderer.setDrawBarOutline(false);
    chart.getLegend().setFrame(BlockBorder.NONE);
    return chart;
}
项目:buffer_bci    文件:BarChartDemo1.java   
/**
 * Creates a sample chart.
 *
 * @param dataset  the dataset.
 *
 * @return The chart.
 */
private static JFreeChart createChart(CategoryDataset dataset) {
    JFreeChart chart = ChartFactory.createBarChart(
        "Performance: JFreeSVG vs Batik",see:
    //
    //  >   http://www.object-refinery.com/jfreechart/guide.html
    //
    // ******************************************************************

    NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
    rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
    BarRenderer renderer = (BarRenderer) plot.getRenderer();
    renderer.setDrawBarOutline(false);
    chart.getLegend().setFrame(BlockBorder.NONE);
    return chart;
}
项目:iveely.ml    文件:LineChart.java   
public ChartPanel createChart(final String title,final CategoryDataset dataset,final String xlabel,final String ylable) {
    JFreeChart chart = ChartFactory.createLineChart(title,xlabel,ylable,dataset);
    ChartUtils.setAntiAlias(chart);
    ChartUtils.setLineRender(chart.getCategoryPlot(),false,true);//
    ChartUtils.setXAixs(chart.getCategoryPlot());
    ChartUtils.setYAixs(chart.getCategoryPlot());
    chart.getLegend().setFrame(new BlockBorder(Color.WHITE));
    ChartPanel chartPanel = new ChartPanel(chart);
    return chartPanel;
}
项目:iveely.ml    文件:BarChart.java   
public ChartPanel createChart(final String title,final String ylable) {
    JFreeChart chart = ChartFactory.createBarChart(title,dataset);
    ChartUtils.setAntiAlias(chart);
    ChartUtils.setBarRenderer(chart.getCategoryPlot(),false);
    ChartUtils.setXAixs(chart.getCategoryPlot());
    ChartUtils.setYAixs(chart.getCategoryPlot());
    chart.getLegend().setFrame(new BlockBorder(Color.WHITE));
    ChartPanel chartPanel = new ChartPanel(chart);
    return chartPanel;
}
项目:iveely.ml    文件:PieChart.java   
public ChartPanel createChart(String title,DefaultPieDataset dataset) {
    JFreeChart chart = ChartFactory.createPieChart(title,dataset);
    ChartUtils.setAntiAlias(chart);
    ChartUtils.setPieRender(chart.getPlot());
    chart.getLegend().setFrame(new BlockBorder(Color.WHITE));
    chart.getLegend().setPosition(RectangleEdge.RIGHT);
    ChartPanel chartPanel = new ChartPanel(chart);
    return chartPanel;
}
项目:iveely.ml    文件:StackedBarChart.java   
public ChartPanel createChart(final String title,final String ylable) {
    JFreeChart chart = ChartFactory.createStackedBarChart(title,dataset);
    ChartUtils.setAntiAlias(chart);
    ChartUtils.setStackBarRender(chart.getCategoryPlot());
    ChartUtils.setXAixs(chart.getCategoryPlot());
    ChartUtils.setYAixs(chart.getCategoryPlot());
    chart.getLegend().setFrame(new BlockBorder(Color.WHITE));
    ChartPanel chartPanel = new ChartPanel(chart);
    return chartPanel;
}
项目:rapidminer    文件:JFreeChartPlotEngine.java   
/**
 * Creates {@link LegendTitle}s for all dimensions from the PlotConfiguration of this Plotter2D.
 * Expects that all {@link ValueSource} s in the provided PlotConfiguration use the same
 * {@link DimensionConfig} s.
 */
private List<LegendTitle> createLegendTitles() {
    List<LegendTitle> legendTitles = new LinkedList<LegendTitle>();
    LegendConfiguration legendConfiguration = plotInstance.getCurrentPlotConfigurationClone().getLegendConfiguration();

    LegendTitle legendTitle = new SmartLegendTitle(this,new ColumnArrangement(HorizontalAlignment.LEFT,3);
    legendTitle.setWrapper(wrapper);

    legendTitles.add(legendTitle);
    return legendTitles;
}
项目:parabuild-ci    文件:CompositeTitleTests.java   
/**
 * Check that the equals() method distinguishes all fields.
 */
public void testEquals() {
    CompositeTitle t1 = new CompositeTitle(new BlockContainer());
    CompositeTitle t2 = new CompositeTitle(new BlockContainer());
    assertEquals(t1,t2);
    assertEquals(t2,t1);

    // margin
    t1.setMargin(new RectangleInsets(1.0,2.0,3.0,4.0));
    assertFalse(t1.equals(t2));
    t2.setMargin(new RectangleInsets(1.0,4.0));
    assertTrue(t1.equals(t2));

    // border
    t1.setBorder(new BlockBorder(Color.red));
    assertFalse(t1.equals(t2));
    t2.setBorder(new BlockBorder(Color.red));
    assertTrue(t1.equals(t2));

    // padding
    t1.setPadding(new RectangleInsets(1.0,4.0));
    assertFalse(t1.equals(t2));
    t2.setPadding(new RectangleInsets(1.0,4.0));
    assertTrue(t1.equals(t2));

    // contained titles
    t1.getContainer().add(new TextTitle("T1"));
    assertFalse(t1.equals(t2));
    t2.getContainer().add(new TextTitle("T1"));
    assertTrue(t1.equals(t2));

}
项目:ccu-historian    文件:CompositeTitleTest.java   
/**
 * Check that the equals() method distinguishes all fields.
 */
@Test
public void testEquals() {
    CompositeTitle t1 = new CompositeTitle(new BlockContainer());
    CompositeTitle t2 = new CompositeTitle(new BlockContainer());
    assertEquals(t1,4.0));
    assertTrue(t1.equals(t2));

    // contained titles
    t1.getContainer().add(new TextTitle("T1"));
    assertFalse(t1.equals(t2));
    t2.getContainer().add(new TextTitle("T1"));
    assertTrue(t1.equals(t2));

    t1.setBackgroundPaint(new GradientPaint(1.0f,2.0f,Color.red,3.0f,4.0f,Color.yellow));
    assertFalse(t1.equals(t2));
    t2.setBackgroundPaint(new GradientPaint(1.0f,Color.yellow));
    assertTrue(t1.equals(t2));

}
项目:jfreechart    文件:CompositeTitleTest.java   
/**
 * Check that the equals() method distinguishes all fields.
 */
@Test
public void testEquals() {
    CompositeTitle t1 = new CompositeTitle(new BlockContainer());
    CompositeTitle t2 = new CompositeTitle(new BlockContainer());
    assertEquals(t1,4.0));
    assertTrue(t1.equals(t2));

    // frame
    t1.setFrame(new BlockBorder(Color.RED));
    assertFalse(t1.equals(t2));
    t2.setFrame(new BlockBorder(Color.RED));
    assertTrue(t1.equals(t2));

    // padding
    t1.setPadding(new RectangleInsets(1.0,Color.RED,Color.YELLOW));
    assertFalse(t1.equals(t2));
    t2.setBackgroundPaint(new GradientPaint(1.0f,Color.YELLOW));
    assertTrue(t1.equals(t2));

}
项目:aya-lang    文件:CompositeTitleTest.java   
/**
 * Check that the equals() method distinguishes all fields.
 */
@Test
public void testEquals() {
    CompositeTitle t1 = new CompositeTitle(new BlockContainer());
    CompositeTitle t2 = new CompositeTitle(new BlockContainer());
    assertEquals(t1,Color.yellow));
    assertTrue(t1.equals(t2));

}
项目:rapidminer-studio    文件:JFreeChartPlotEngine.java   
/**
 * Creates {@link LegendTitle}s for all dimensions from the PlotConfiguration of this Plotter2D.
 * Expects that all {@link ValueSource} s in the provided PlotConfiguration use the same
 * {@link DimensionConfig} s.
 */
private List<LegendTitle> createLegendTitles() {
    List<LegendTitle> legendTitles = new LinkedList<LegendTitle>();
    LegendConfiguration legendConfiguration = plotInstance.getCurrentPlotConfigurationClone().getLegendConfiguration();

    LegendTitle legendTitle = new SmartLegendTitle(this,3);
    legendTitle.setWrapper(wrapper);

    legendTitles.add(legendTitle);
    return legendTitles;
}
项目:JGrafix    文件:Eixo.java   
private void incluirLegenda(final XYPlot plot) {
    if (isLegenda()) {
        LegendTitle lt = new LegendTitle(plot);
        lt.setItemFont(new Font("Dialog",Font.PLAIN,11));
        lt.setBackgroundPaint(new Color(255,255,100));
        lt.setBorder(new BlockBorder(new Color(180,180,180)));
        lt.setPosition(RectangleEdge.TOP);
        XYTitleAnnotation ta = new XYTitleAnnotation(0.01,0.98,lt,RectangleAnchor.TOP_LEFT);
        ta.setMaxWidth(0.48);
        plot.addAnnotation(ta);
    }
}
项目:nabs    文件:CompositeTitleTests.java   
/**
 * Check that the equals() method distinguishes all fields.
 */
public void testEquals() {
    CompositeTitle t1 = new CompositeTitle(new BlockContainer());
    CompositeTitle t2 = new CompositeTitle(new BlockContainer());
    assertEquals(t1,4.0));
    assertTrue(t1.equals(t2));

    // contained titles
    t1.getContainer().add(new TextTitle("T1"));
    assertFalse(t1.equals(t2));
    t2.getContainer().add(new TextTitle("T1"));
    assertTrue(t1.equals(t2));

}
项目:ECG-Viewer    文件:CompositeTitleTest.java   
/**
 * Check that the equals() method distinguishes all fields.
 */
@Test
public void testEquals() {
    CompositeTitle t1 = new CompositeTitle(new BlockContainer());
    CompositeTitle t2 = new CompositeTitle(new BlockContainer());
    assertEquals(t1,Color.yellow));
    assertTrue(t1.equals(t2));

}
项目:astor    文件:CompositeTitleTests.java   
/**
 * Check that the equals() method distinguishes all fields.
 */
public void testEquals() {
    CompositeTitle t1 = new CompositeTitle(new BlockContainer());
    CompositeTitle t2 = new CompositeTitle(new BlockContainer());
    assertEquals(t1,4.0));
    assertTrue(t1.equals(t2));

    // frame
    t1.setFrame(new BlockBorder(Color.red));
    assertFalse(t1.equals(t2));
    t2.setFrame(new BlockBorder(Color.red));
    assertTrue(t1.equals(t2));

    // padding
    t1.setPadding(new RectangleInsets(1.0,Color.yellow));
    assertTrue(t1.equals(t2));

}
项目:group-five    文件:CompositeTitleTest.java   
/**
 * Check that the equals() method distinguishes all fields.
 */
@Test
public void testEquals() {
    CompositeTitle t1 = new CompositeTitle(new BlockContainer());
    CompositeTitle t2 = new CompositeTitle(new BlockContainer());
    assertEquals(t1,Color.yellow));
    assertTrue(t1.equals(t2));

}
项目:snap-desktop    文件:SpectrumTopComponent.java   
private void setPlotMessage(String messageText) {
    chart.getXYPlot().clearannotations();
    TextTitle tt = new TextTitle(messageText);
    tt.setTextAlignment(HorizontalAlignment.RIGHT);
    tt.setFont(chart.getLegend().getItemFont());
    tt.setBackgroundPaint(new Color(200,200,50));
    tt.setFrame(new BlockBorder(Color.white));
    tt.setPosition(RectangleEdge.BottOM);
    XYTitleAnnotation message = new XYTitleAnnotation(0.5,0.5,tt,RectangleAnchor.CENTER);
    chart.getXYPlot().addAnnotation(message);
}
项目:Moduro-ToolBox    文件:JCellCountDiagram.java   
protected JFreeChart createChart(XYDataset dataset,String name) {
    String title = name;

    JFreeChart xyLineChart = ChartFactory.createXYLineChart(
            title,// title
            "t",// x-axis label
            "n",// y-axis label
            dataset);

    String fontName = "Palatino";
    xyLineChart.getTitle().setFont(new Font(fontName,Font.BOLD,18));

    XYPlot plot = (XYPlot) xyLineChart.getPlot();
    plot.setDomainPannable(true);
    plot.setRangePannable(true);
    plot.setDomainCrosshairVisible(true);
    plot.setRangeCrosshairVisible(true);
    plot.getDomainAxis().setLowerMargin(0.0);
    plot.getDomainAxis().setLabelFont(new Font(fontName,14));
    plot.getDomainAxis().setTickLabelFont(new Font(fontName,12));
    plot.getRangeAxis().setLowerMargin(0.0);
    // plot.getRangeAxis().setRange(0.0,1.01);
    plot.getRangeAxis().setLabelFont(new Font(fontName,14));
    plot.getRangeAxis().setTickLabelFont(new Font(fontName,12));
    plot.setBackgroundPaint(Color.white);
    plot.setRangeGridlinePaint(Color.gray);
    xyLineChart.getLegend().setItemFont(new Font(fontName,14));
    xyLineChart.getLegend().setFrame(BlockBorder.NONE);
    xyLineChart.getLegend().setHorizontalAlignment(HorizontalAlignment.CENTER);
    XYItemRenderer r = plot.getRenderer();
    // set the default stroke for all series
    int i = 0;
    for (String celltype : getTimeSeries().getDataSeriesNames()) {
        r.setSeriesPaint(i,CellTypeColor.getColor(celltype));
        i++;
    }
    r.setSeriesPaint(i,Color.BLACK);
    return xyLineChart;
}
项目:Moduro-ToolBox    文件:JCellcycletimeDiagram.java   
protected JFreeChart createChart(XYDataset dataset,List<String> celltypes) {
    String title = "Cell cycle times";

    JFreeChart xyLineChart = ChartFactory.createXYLineChart(
            title,// x-axis label
            "T",12));
    xyLineChart.getLegend().setItemFont(new Font(fontName,14));
    xyLineChart.getLegend().setFrame(BlockBorder.NONE);
    xyLineChart.getLegend().setHorizontalAlignment(HorizontalAlignment.CENTER);
    XYItemRenderer r = plot.getRenderer();

    // set the default stroke for all series
    int i = 0;
    for (String celltype : celltypes) {
        r.setSeriesPaint(i,CellTypeColor.getColor(celltype));
        i++;
    }
    return xyLineChart;
}
项目:buffer_bci    文件:CompositeTitleTest.java   
/**
 * Check that the equals() method distinguishes all fields.
 */
@Test
public void testEquals() {
    CompositeTitle t1 = new CompositeTitle(new BlockContainer());
    CompositeTitle t2 = new CompositeTitle(new BlockContainer());
    assertEquals(t1,Color.yellow));
    assertTrue(t1.equals(t2));

}
项目:proyecto-teoria-control-utn-frro    文件:CompositeTitleTest.java   
/**
 * Check that the equals() method distinguishes all fields.
 */
@Test
public void testEquals() {
    CompositeTitle t1 = new CompositeTitle(new BlockContainer());
    CompositeTitle t2 = new CompositeTitle(new BlockContainer());
    assertEquals(t1,Color.yellow));
    assertTrue(t1.equals(t2));

}

org.jfree.chart.block.BlockContainer的实例源码

org.jfree.chart.block.BlockContainer的实例源码

项目:parabuild-ci    文件:LegendTitle.java   
/**
 * Creates a new legend title with the specified arrangement.
 * 
 * @param source  the source.
 * @param hLayout  the horizontal item arrangement (<code>null</code> not
 *                 permitted).
 * @param vLayout  the vertical item arrangement (<code>null</code> not
 *                 permitted).
 */
public LegendTitle(LegendItemSource source,Arrangement hLayout,Arrangement vLayout) {
    this.sources = new LegendItemSource[] {source};
    this.items = new BlockContainer(hLayout);
    this.hLayout = hLayout;
    this.vLayout = vLayout;
    this.backgroundPaint = null;  
    this.legendItemGraphicEdge = RectangleEdge.LEFT;
    this.legendItemGraphicAnchor = RectangleAnchor.CENTER;
    this.legendItemGraphicLocation = RectangleAnchor.CENTER;
    this.legendItemGraphicPadding = new RectangleInsets(2.0,2.0,2.0);
    this.itemFont = DEFAULT_ITEM_FONT;
    this.itemPaint = DEFAULT_ITEM_PAINT;
    this.itemLabelPadding = new RectangleInsets(2.0,2.0);
}
项目:parabuild-ci    文件:BlockContainerTests.java   
/**
 * Confirm that the equals() method can distinguish all the required fields.
 */
public void testEquals() {
    BlockContainer c1 = new BlockContainer(new FlowArrangement());
    BlockContainer c2 = new BlockContainer(new FlowArrangement());
    assertTrue(c1.equals(c2));
    assertTrue(c2.equals(c2));

    c1.setArrangement(new ColumnArrangement());
    assertFalse(c1.equals(c2));
    c2.setArrangement(new ColumnArrangement());
    assertTrue(c1.equals(c2));

    c1.add(new EmptyBlock(1.2,3.4));
    assertFalse(c1.equals(c2));
    c2.add(new EmptyBlock(1.2,3.4));
    assertTrue(c1.equals(c2));
}
项目:parabuild-ci    文件:LegendTitle.java   
/**
 * Arranges the contents of the block,within the given constraints,and 
 * returns the block size.
 * 
 * @param g2  the graphics device.
 * @param constraint  the constraint (<code>null</code> not permitted).
 * 
 * @return The block size (in Java2D units,never <code>null</code>).
 */
public Size2D arrange(Graphics2D g2,RectangleConstraint constraint) {
    Size2D result = new Size2D();
    fetchLegendItems();
    if (this.items.isEmpty()) {
        return result;   
    }
    BlockContainer container = this.wrapper;
    if (container == null) {
        container = this.items;
    }
    RectangleConstraint c = toContentConstraint(constraint);
    Size2D size = container.arrange(g2,c);
    result.height = calculatetotalHeight(size.height);
    result.width = calculatetotalWidth(size.width);
    return result;
}
项目:parabuild-ci    文件:LegendTitle.java   
/**
 * Draws the block within the specified area.
 * 
 * @param g2  the graphics device.
 * @param area  the area.
 * @param params  ignored (<code>null</code> permitted).
 * 
 * @return An {@link org.jfree.chart.block.EntityBlockResult} or 
 *         <code>null</code>.
 */
public Object draw(Graphics2D g2,Rectangle2D area,Object params) {
    Rectangle2D target = (Rectangle2D) area.clone();
    target = trimMargin(target);
    if (this.backgroundPaint != null) {
        g2.setPaint(this.backgroundPaint);
        g2.fill(target);
    }
    BlockFrame border = getFrame();
    border.draw(g2,target);
    border.getInsets().trim(target);
    BlockContainer container = this.wrapper;
    if (container == null) {
        container = this.items; 
    }
    target = trimPadding(target);
    return container.draw(g2,target,params);   
}
项目:ccu-historian    文件:CompositeTitleTest.java   
/**
 * Confirm that cloning works.
 */
@Test
public void testcloning() {
    CompositeTitle t1 = new CompositeTitle(new BlockContainer());
    t1.getContainer().add(new TextTitle("T1"));
    t1.setBackgroundPaint(new GradientPaint(1.0f,2.0f,Color.red,3.0f,4.0f,Color.yellow));
    CompositeTitle t2 = null;
    try {
        t2 = (CompositeTitle) t1.clone();
    }
    catch (CloneNotSupportedException e) {
        fail(e.toString());
    }
    assertTrue(t1 != t2);
    assertTrue(t1.getClass() == t2.getClass());
    assertTrue(t1.equals(t2));
}
项目:ccu-historian    文件:LegendTitle.java   
/**
 * Creates a new legend title with the specified arrangement.
 *
 * @param source  the source.
 * @param hLayout  the horizontal item arrangement (<code>null</code> not
 *                 permitted).
 * @param vLayout  the vertical item arrangement (<code>null</code> not
 *                 permitted).
 */
public LegendTitle(LegendItemSource source,Arrangement vLayout) {
    this.sources = new LegendItemSource[] {source};
    this.items = new BlockContainer(hLayout);
    this.hLayout = hLayout;
    this.vLayout = vLayout;
    this.backgroundPaint = null;
    this.legendItemGraphicEdge = RectangleEdge.LEFT;
    this.legendItemGraphicAnchor = RectangleAnchor.CENTER;
    this.legendItemGraphicLocation = RectangleAnchor.CENTER;
    this.legendItemGraphicPadding = new RectangleInsets(2.0,2.0);
    this.sortOrder = SortOrder.ASCENDING;
}
项目:ccu-historian    文件:LegendTitle.java   
/**
 * Arranges the contents of the block,and
 * returns the block size.
 *
 * @param g2  the graphics device.
 * @param constraint  the constraint (<code>null</code> not permitted).
 *
 * @return The block size (in Java2D units,never <code>null</code>).
 */
@Override
public Size2D arrange(Graphics2D g2,RectangleConstraint constraint) {
    Size2D result = new Size2D();
    fetchLegendItems();
    if (this.items.isEmpty()) {
        return result;
    }
    BlockContainer container = this.wrapper;
    if (container == null) {
        container = this.items;
    }
    RectangleConstraint c = toContentConstraint(constraint);
    Size2D size = container.arrange(g2,c);
    result.height = calculatetotalHeight(size.height);
    result.width = calculatetotalWidth(size.width);
    return result;
}
项目:jfreechart    文件:LegendTitle.java   
/**
 * Creates a new legend title with the specified arrangement.
 *
 * @param source  the source.
 * @param hLayout  the horizontal item arrangement ({@code null} not
 *                 permitted).
 * @param vLayout  the vertical item arrangement ({@code null} not
 *                 permitted).
 */
public LegendTitle(LegendItemSource source,2.0);
    this.sortOrder = SortOrder.ASCENDING;
}
项目:jfreechart    文件:LegendTitle.java   
/**
 * Arranges the contents of the block,and
 * returns the block size.
 *
 * @param g2  the graphics device.
 * @param constraint  the constraint ({@code null} not permitted).
 *
 * @return The block size (in Java2D units,never {@code null}).
 */
@Override
public Size2D arrange(Graphics2D g2,c);
    result.height = calculatetotalHeight(size.height);
    result.width = calculatetotalWidth(size.width);
    return result;
}
项目:jfreechart    文件:CompositeTitleTest.java   
/**
 * Confirm that cloning works.
 */
@Test
public void testcloning() {
    CompositeTitle t1 = new CompositeTitle(new BlockContainer());
    t1.getContainer().add(new TextTitle("T1"));
    t1.setBackgroundPaint(new GradientPaint(1.0f,Color.RED,Color.YELLOW));
    CompositeTitle t2 = null;
    try {
        t2 = (CompositeTitle) t1.clone();
    }
    catch (CloneNotSupportedException e) {
        fail(e.toString());
    }
    assertTrue(t1 != t2);
    assertTrue(t1.getClass() == t2.getClass());
    assertTrue(t1.equals(t2));
}
项目:aya-lang    文件:CompositeTitleTest.java   
/**
 * Confirm that cloning works.
 */
@Test
public void testcloning() {
    CompositeTitle t1 = new CompositeTitle(new BlockContainer());
    t1.getContainer().add(new TextTitle("T1"));
    t1.setBackgroundPaint(new GradientPaint(1.0f,Color.yellow));
    CompositeTitle t2 = null;
    try {
        t2 = (CompositeTitle) t1.clone();
    }
    catch (CloneNotSupportedException e) {
        fail(e.toString());
    }
    assertTrue(t1 != t2);
    assertTrue(t1.getClass() == t2.getClass());
    assertTrue(t1.equals(t2));
}
项目:aya-lang    文件:LegendTitle.java   
/**
 * Creates a new legend title with the specified arrangement.
 *
 * @param source  the source.
 * @param hLayout  the horizontal item arrangement (<code>null</code> not
 *                 permitted).
 * @param vLayout  the vertical item arrangement (<code>null</code> not
 *                 permitted).
 */
public LegendTitle(LegendItemSource source,2.0);
    this.sortOrder = SortOrder.ASCENDING;
}
项目:aya-lang    文件:LegendTitle.java   
/**
 * Arranges the contents of the block,c);
    result.height = calculatetotalHeight(size.height);
    result.width = calculatetotalWidth(size.width);
    return result;
}
项目:HTML5_WebSite    文件:LegendTitle.java   
/**
 * Creates a new legend title with the specified arrangement.
 *
 * @param source  the source.
 * @param hLayout  the horizontal item arrangement (<code>null</code> not
 *                 permitted).
 * @param vLayout  the vertical item arrangement (<code>null</code> not
 *                 permitted).
 */
public LegendTitle(LegendItemSource source,2.0);
}
项目:HTML5_WebSite    文件:LegendTitle.java   
/**
 * Arranges the contents of the block,c);
    result.height = calculatetotalHeight(size.height);
    result.width = calculatetotalWidth(size.width);
    return result;
}
项目:HTML5_WebSite    文件:LegendTitle.java   
/**
 * Draws the block within the specified area.
 *
 * @param g2  the graphics device.
 * @param area  the area.
 * @param params  ignored (<code>null</code> permitted).
 *
 * @return An {@link org.jfree.chart.block.EntityBlockResult} or
 *         <code>null</code>.
 */
public Object draw(Graphics2D g2,target);
    border.getInsets().trim(target);
    BlockContainer container = this.wrapper;
    if (container == null) {
        container = this.items;
    }
    target = trimPadding(target);
    return container.draw(g2,params);
}
项目:populus    文件:LegendTitle.java   
/**
 * Creates a new legend title with the specified arrangement.
 *
 * @param source  the source.
 * @param hLayout  the horizontal item arrangement (<code>null</code> not
 *                 permitted).
 * @param vLayout  the vertical item arrangement (<code>null</code> not
 *                 permitted).
 */
public LegendTitle(LegendItemSource source,2.0);
    this.sortOrder = SortOrder.ASCENDING;
}
项目:populus    文件:LegendTitle.java   
/**
 * Arranges the contents of the block,c);
    result.height = calculatetotalHeight(size.height);
    result.width = calculatetotalWidth(size.width);
    return result;
}
项目:PI    文件:LegendTitle.java   
/**
 * Creates a new legend title with the specified arrangement.
 *
 * @param source  the source.
 * @param hLayout  the horizontal item arrangement (<code>null</code> not
 *                 permitted).
 * @param vLayout  the vertical item arrangement (<code>null</code> not
 *                 permitted).
 */
public LegendTitle(LegendItemSource source,2.0);
}
项目:PI    文件:LegendTitle.java   
/**
 * Arranges the contents of the block,c);
    result.height = calculatetotalHeight(size.height);
    result.width = calculatetotalWidth(size.width);
    return result;
}
项目:nabs    文件:BlockContainerTests.java   
/**
 * Confirm that the equals() method can distinguish all the required fields.
 */
public void testEquals() {
    BlockContainer c1 = new BlockContainer(new FlowArrangement());
    BlockContainer c2 = new BlockContainer(new FlowArrangement());
    assertTrue(c1.equals(c2));
    assertTrue(c2.equals(c2));

    c1.setArrangement(new ColumnArrangement());
    assertFalse(c1.equals(c2));
    c2.setArrangement(new ColumnArrangement());
    assertTrue(c1.equals(c2));

    c1.add(new EmptyBlock(1.2,3.4));
    assertTrue(c1.equals(c2));
}
项目:nabs    文件:LegendTitle.java   
/**
 * Creates a new legend title with the specified arrangement.
 * 
 * @param source  the source.
 * @param hLayout  the horizontal item arrangement (<code>null</code> not
 *                 permitted).
 * @param vLayout  the vertical item arrangement (<code>null</code> not
 *                 permitted).
 */
public LegendTitle(LegendItemSource source,2.0);
}
项目:nabs    文件:LegendTitle.java   
/**
 * Arranges the contents of the block,c);
    result.height = calculatetotalHeight(size.height);
    result.width = calculatetotalWidth(size.width);
    return result;
}
项目:nabs    文件:LegendTitle.java   
/**
 * Draws the block within the specified area.
 * 
 * @param g2  the graphics device.
 * @param area  the area.
 * @param params  ignored (<code>null</code> permitted).
 * 
 * @return An {@link org.jfree.chart.block.EntityBlockResult} or 
 *         <code>null</code>.
 */
public Object draw(Graphics2D g2,params);   
}
项目:ECG-Viewer    文件:CompositeTitleTest.java   
/**
 * Confirm that cloning works.
 */
@Test
public void testcloning() {
    CompositeTitle t1 = new CompositeTitle(new BlockContainer());
    t1.getContainer().add(new TextTitle("T1"));
    t1.setBackgroundPaint(new GradientPaint(1.0f,Color.yellow));
    CompositeTitle t2 = null;
    try {
        t2 = (CompositeTitle) t1.clone();
    }
    catch (CloneNotSupportedException e) {
        fail(e.toString());
    }
    assertTrue(t1 != t2);
    assertTrue(t1.getClass() == t2.getClass());
    assertTrue(t1.equals(t2));
}
项目:ECG-Viewer    文件:LegendTitle.java   
/**
 * Creates a new legend title with the specified arrangement.
 *
 * @param source  the source.
 * @param hLayout  the horizontal item arrangement (<code>null</code> not
 *                 permitted).
 * @param vLayout  the vertical item arrangement (<code>null</code> not
 *                 permitted).
 */
public LegendTitle(LegendItemSource source,2.0);
    this.sortOrder = SortOrder.ASCENDING;
}
项目:ECG-Viewer    文件:LegendTitle.java   
/**
 * Arranges the contents of the block,c);
    result.height = calculatetotalHeight(size.height);
    result.width = calculatetotalWidth(size.width);
    return result;
}
项目:astor    文件:BorderArrangementTests.java   
/**
 * This test is for a particular bug that arose just prior to the release
 * of JFreeChart 1.0.10.  A BorderArrangement with LEFT,CENTRE and RIGHT
 * blocks that is too wide,by default,for the available space,wasn't
 * shrinking the centre block as expected.
 */
public void testBugX() {
    RectangleConstraint constraint = new RectangleConstraint(
            new Range(0.0,200.0),new Range(0.0,100.0));
    BlockContainer container = new BlockContainer(new BorderArrangement());
    BufferedImage image = new BufferedImage(200,100,BufferedImage.TYPE_INT_RGB);
    Graphics2D g2 = image.createGraphics();

    container.add(new EmptyBlock(10.0,6.0),RectangleEdge.LEFT);
    container.add(new EmptyBlock(20.0,RectangleEdge.RIGHT);
    container.add(new EmptyBlock(30.0,6.0));
    Size2D size = container.arrange(g2,constraint);
    assertEquals(60.0,size.width,EPSILON);
    assertEquals(6.0,size.height,EPSILON);

    container.clear();
    container.add(new EmptyBlock(10.0,RectangleEdge.RIGHT);
    container.add(new EmptyBlock(300.0,6.0));
    size = container.arrange(g2,constraint);
    assertEquals(200.0,EPSILON);


}
项目:astor    文件:BlockContainerTests.java   
/**
 * Confirm that the equals() method can distinguish all the required fields.
 */
public void testEquals() {
    BlockContainer c1 = new BlockContainer(new FlowArrangement());
    BlockContainer c2 = new BlockContainer(new FlowArrangement());
    assertTrue(c1.equals(c2));
    assertTrue(c2.equals(c2));

    c1.setArrangement(new ColumnArrangement());
    assertFalse(c1.equals(c2));
    c2.setArrangement(new ColumnArrangement());
    assertTrue(c1.equals(c2));

    c1.add(new EmptyBlock(1.2,3.4));
    assertTrue(c1.equals(c2));
}
项目:astor    文件:LegendTitle.java   
/**
 * Creates a new legend title with the specified arrangement.
 *
 * @param source  the source.
 * @param hLayout  the horizontal item arrangement (<code>null</code> not
 *                 permitted).
 * @param vLayout  the vertical item arrangement (<code>null</code> not
 *                 permitted).
 */
public LegendTitle(LegendItemSource source,2.0);
}
项目:astor    文件:LegendTitle.java   
/**
 * Arranges the contents of the block,c);
    result.height = calculatetotalHeight(size.height);
    result.width = calculatetotalWidth(size.width);
    return result;
}
项目:opensim-gui    文件:LegendTitle.java   
/**
 * Creates a new legend title with the specified arrangement.
 * 
 * @param source  the source.
 * @param hLayout  the horizontal item arrangement (<code>null</code> not
 *                 permitted).
 * @param vLayout  the vertical item arrangement (<code>null</code> not
 *                 permitted).
 */
public LegendTitle(LegendItemSource source,2.0);
}
项目:opensim-gui    文件:LegendTitle.java   
/**
 * Arranges the contents of the block,c);
    result.height = calculatetotalHeight(size.height);
    result.width = calculatetotalWidth(size.width);
    return result;
}
项目:opensim-gui    文件:LegendTitle.java   
/**
 * Draws the block within the specified area.
 * 
 * @param g2  the graphics device.
 * @param area  the area.
 * @param params  ignored (<code>null</code> permitted).
 * 
 * @return An {@link org.jfree.chart.block.EntityBlockResult} or 
 *         <code>null</code>.
 */
public Object draw(Graphics2D g2,Object params) {
    Rectangle2D target = (Rectangle2D) area.clone();
    target = trimMargin(target);
    if (this.backgroundPaint != null) {
        g2.setPaint(this.backgroundPaint);
        g2.fill(target);
    }
    getBorder().draw(g2,target);
    getBorder().getInsets().trim(target);
    BlockContainer container = this.wrapper;
    if (container == null) {
        container = this.items; 
    }
    target = trimPadding(target);
    return container.draw(g2,params);   
}
项目:group-five    文件:CompositeTitleTest.java   
/**
 * Confirm that cloning works.
 */
@Test
public void testcloning() {
    CompositeTitle t1 = new CompositeTitle(new BlockContainer());
    t1.getContainer().add(new TextTitle("T1"));
    t1.setBackgroundPaint(new GradientPaint(1.0f,Color.yellow));
    CompositeTitle t2 = null;
    try {
        t2 = (CompositeTitle) t1.clone();
    }
    catch (CloneNotSupportedException e) {
        fail(e.toString());
    }
    assertTrue(t1 != t2);
    assertTrue(t1.getClass() == t2.getClass());
    assertTrue(t1.equals(t2));
}
项目:group-five    文件:LegendTitle.java   
/**
 * Creates a new legend title with the specified arrangement.
 *
 * @param source  the source.
 * @param hLayout  the horizontal item arrangement (<code>null</code> not
 *                 permitted).
 * @param vLayout  the vertical item arrangement (<code>null</code> not
 *                 permitted).
 */
public LegendTitle(LegendItemSource source,2.0);
    this.sortOrder = SortOrder.ASCENDING;
}
项目:group-five    文件:LegendTitle.java   
/**
 * Arranges the contents of the block,c);
    result.height = calculatetotalHeight(size.height);
    result.width = calculatetotalWidth(size.width);
    return result;
}
项目:manydesigns.cn    文件:LegendTitle.java   
/**
 * Creates a new legend title with the specified arrangement.
 *
 * @param source  the source.
 * @param hLayout  the horizontal item arrangement (<code>null</code> not
 *                 permitted).
 * @param vLayout  the vertical item arrangement (<code>null</code> not
 *                 permitted).
 */
public LegendTitle(LegendItemSource source,2.0);
    this.sortOrder = SortOrder.ASCENDING;
}
项目:manydesigns.cn    文件:LegendTitle.java   
/**
 * Arranges the contents of the block,c);
    result.height = calculatetotalHeight(size.height);
    result.width = calculatetotalWidth(size.width);
    return result;
}
项目:aorra    文件:TwoColumnArrangement.java   
@SuppressWarnings("unchecked")
@Override
public Size2D arrange(BlockContainer container,Graphics2D g2,RectangleConstraint constraint) {
  List<Block> blocks = container.getBlocks();
  double cellHeight = maxHeight(blocks,g2);
  double cellWidth = maxWidth(blocks,g2);
  int rows = Math.round(blocks.size() / 2.0f);
  for (int i = 0; i < blocks.size(); i++) {
    Block block = blocks.get(i);
    int col = (i<rows?0:1);
    int row = i-col*rows;
    block.setBounds(new Rectangle2D.Double(
        col*cellWidth,row*cellHeight,cellWidth,cellHeight));
  }
  return new Size2D(blocks.size()==1?cellWidth:cellWidth*2,cellHeight*rows);
}

今天关于org.jfree.chart.block.LineBorder的实例源码abstractroutingdatasource源码的介绍到此结束,谢谢您的阅读,有关org.jfree.chart.axis.ColorBar的实例源码、org.jfree.chart.block.Arrangement的实例源码、org.jfree.chart.block.BlockBorder的实例源码、org.jfree.chart.block.BlockContainer的实例源码等更多相关知识的信息可以在本站进行查询。

本文标签: