org.jfree.chart.LegendItemSource Java Examples

The following examples show how to use org.jfree.chart.LegendItemSource. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LegendTitle.java    From openstock with GNU General Public License v3.0 6 votes vote down vote up
/**
 * 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, 2.0);
    this.itemFont = DEFAULT_ITEM_FONT;
    this.itemPaint = DEFAULT_ITEM_PAINT;
    this.itemLabelPadding = new RectangleInsets(2.0, 2.0, 2.0, 2.0);
    this.sortOrder = SortOrder.ASCENDING;
}
 
Example #2
Source File: LegendTitle.java    From buffer_bci with GNU General Public License v3.0 6 votes vote down vote up
/**
 * 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, 2.0);
    this.itemFont = DEFAULT_ITEM_FONT;
    this.itemPaint = DEFAULT_ITEM_PAINT;
    this.itemLabelPadding = new RectangleInsets(2.0, 2.0, 2.0, 2.0);
    this.sortOrder = SortOrder.ASCENDING;
}
 
Example #3
Source File: LegendTitle.java    From buffer_bci with GNU General Public License v3.0 6 votes vote down vote up
/**
 * 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, 2.0);
    this.itemFont = DEFAULT_ITEM_FONT;
    this.itemPaint = DEFAULT_ITEM_PAINT;
    this.itemLabelPadding = new RectangleInsets(2.0, 2.0, 2.0, 2.0);
    this.sortOrder = SortOrder.ASCENDING;
}
 
Example #4
Source File: LegendTitle.java    From opensim-gui with Apache License 2.0 6 votes vote down vote up
/**
 * 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, 2.0);
    this.itemFont = DEFAULT_ITEM_FONT;
    this.itemPaint = DEFAULT_ITEM_PAINT;
    this.itemLabelPadding = new RectangleInsets(2.0, 2.0, 2.0, 2.0);
}
 
Example #5
Source File: LegendTitle.java    From astor with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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, 2.0);
    this.itemFont = DEFAULT_ITEM_FONT;
    this.itemPaint = DEFAULT_ITEM_PAINT;
    this.itemLabelPadding = new RectangleInsets(2.0, 2.0, 2.0, 2.0);
}
 
Example #6
Source File: LegendTitle.java    From astor with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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, 2.0);
    this.itemFont = DEFAULT_ITEM_FONT;
    this.itemPaint = DEFAULT_ITEM_PAINT;
    this.itemLabelPadding = new RectangleInsets(2.0, 2.0, 2.0, 2.0);
}
 
Example #7
Source File: LegendTitle.java    From ECG-Viewer with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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, 2.0);
    this.itemFont = DEFAULT_ITEM_FONT;
    this.itemPaint = DEFAULT_ITEM_PAINT;
    this.itemLabelPadding = new RectangleInsets(2.0, 2.0, 2.0, 2.0);
    this.sortOrder = SortOrder.ASCENDING;
}
 
Example #8
Source File: LegendTitle.java    From SIMVA-SoS with Apache License 2.0 6 votes vote down vote up
/**
 * 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, 2.0);
    this.itemFont = DEFAULT_ITEM_FONT;
    this.itemPaint = DEFAULT_ITEM_PAINT;
    this.itemLabelPadding = new RectangleInsets(2.0, 2.0, 2.0, 2.0);
    this.sortOrder = SortOrder.ASCENDING;
}
 
Example #9
Source File: LegendTitle.java    From ccu-historian with GNU General Public License v3.0 6 votes vote down vote up
/**
 * 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, 2.0);
    this.itemFont = DEFAULT_ITEM_FONT;
    this.itemPaint = DEFAULT_ITEM_PAINT;
    this.itemLabelPadding = new RectangleInsets(2.0, 2.0, 2.0, 2.0);
    this.sortOrder = SortOrder.ASCENDING;
}
 
Example #10
Source File: LegendTitle.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Sets the legend item sources and sends a {@link TitleChangeEvent} to
 * all registered listeners.
 * 
 * @param sources  the sources (<code>null</code> not permitted).
 */
public void setSources(LegendItemSource[] sources) {
    if (sources == null) {
        throw new IllegalArgumentException("Null 'sources' argument.");   
    }
    this.sources = sources;
    notifyListeners(new TitleChangeEvent(this));
}
 
Example #11
Source File: LegendTitle.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Sets the legend item sources and sends a {@link TitleChangeEvent} to
 * all registered listeners.
 *
 * @param sources  the sources (<code>null</code> not permitted).
 */
public void setSources(LegendItemSource[] sources) {
    if (sources == null) {
        throw new IllegalArgumentException("Null 'sources' argument.");
    }
    this.sources = sources;
    notifyListeners(new TitleChangeEvent(this));
}
 
Example #12
Source File: LegendTitle.java    From opensim-gui with Apache License 2.0 5 votes vote down vote up
/**
 * Sets the legend item sources and sends a {@link TitleChangeEvent} to
 * all registered listeners.
 * 
 * @param sources  the sources (<code>null</code> not permitted).
 */
public void setSources(LegendItemSource[] sources) {
    if (sources == null) {
        throw new IllegalArgumentException("Null 'sources' argument.");   
    }
    this.sources = sources;
    notifyListeners(new TitleChangeEvent(this));
}
 
Example #13
Source File: SmartLegendTitle.java    From rapidminer-studio with GNU Affero General Public License v3.0 4 votes vote down vote up
public SmartLegendTitle(LegendItemSource source, Arrangement hLayout, Arrangement vLayout) {
	super(source, hLayout, vLayout);
}
 
Example #14
Source File: SmartLegendTitle.java    From rapidminer-studio with GNU Affero General Public License v3.0 4 votes vote down vote up
public SmartLegendTitle(LegendItemSource source) {
	super(source);
}
 
Example #15
Source File: LegendTitle.java    From openstock with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Returns the legend item sources.
 *
 * @return The sources.
 */
public LegendItemSource[] getSources() {
    return this.sources;
}
 
Example #16
Source File: LegendTitle.java    From opensim-gui with Apache License 2.0 2 votes vote down vote up
/**
 * Constructs a new (empty) legend for the specified source.
 * 
 * @param source  the source.
 */
public LegendTitle(LegendItemSource source) {
    this(source, new FlowArrangement(), new ColumnArrangement());
}
 
Example #17
Source File: LegendTitle.java    From openstock with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Sets the legend item sources and sends a {@link TitleChangeEvent} to
 * all registered listeners.
 *
 * @param sources  the sources (<code>null</code> not permitted).
 */
public void setSources(LegendItemSource[] sources) {
    ParamChecks.nullNotPermitted(sources, "sources");
    this.sources = sources;
    notifyListeners(new TitleChangeEvent(this));
}
 
Example #18
Source File: LegendTitle.java    From opensim-gui with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the legend item sources.
 * 
 * @return The sources.
 */
public LegendItemSource[] getSources() {
    return this.sources;   
}
 
Example #19
Source File: LegendTitle.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Constructs a new (empty) legend for the specified source.
 *
 * @param source  the source.
 */
public LegendTitle(LegendItemSource source) {
    this(source, new FlowArrangement(), new ColumnArrangement());
}
 
Example #20
Source File: LegendTitle.java    From ccu-historian with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Constructs a new (empty) legend for the specified source.
 *
 * @param source  the source.
 */
public LegendTitle(LegendItemSource source) {
    this(source, new FlowArrangement(), new ColumnArrangement());
}
 
Example #21
Source File: LegendTitle.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Returns the legend item sources.
 *
 * @return The sources.
 */
public LegendItemSource[] getSources() {
    return this.sources;
}
 
Example #22
Source File: LegendTitle.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Sets the legend item sources and sends a {@link TitleChangeEvent} to
 * all registered listeners.
 *
 * @param sources  the sources (<code>null</code> not permitted).
 */
public void setSources(LegendItemSource[] sources) {
    ParamChecks.nullNotPermitted(sources, "sources");
    this.sources = sources;
    notifyListeners(new TitleChangeEvent(this));
}
 
Example #23
Source File: LegendTitle.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Constructs a new (empty) legend for the specified source.
 *
 * @param source  the source.
 */
public LegendTitle(LegendItemSource source) {
    this(source, new FlowArrangement(), new ColumnArrangement());
}
 
Example #24
Source File: LegendTitle.java    From openstock with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Constructs a new (empty) legend for the specified source.
 *
 * @param source  the source.
 */
public LegendTitle(LegendItemSource source) {
    this(source, new FlowArrangement(), new ColumnArrangement());
}
 
Example #25
Source File: LegendTitle.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Returns the legend item sources.
 *
 * @return The sources.
 */
public LegendItemSource[] getSources() {
    return this.sources;
}
 
Example #26
Source File: LegendTitle.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Sets the legend item sources and sends a {@link TitleChangeEvent} to
 * all registered listeners.
 *
 * @param sources  the sources (<code>null</code> not permitted).
 */
public void setSources(LegendItemSource[] sources) {
    ParamChecks.nullNotPermitted(sources, "sources");
    this.sources = sources;
    notifyListeners(new TitleChangeEvent(this));
}
 
Example #27
Source File: LegendTitle.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns the legend item sources.
 * 
 * @return The sources.
 */
public LegendItemSource[] getSources() {
    return this.sources;   
}
 
Example #28
Source File: LegendTitle.java    From SIMVA-SoS with Apache License 2.0 2 votes vote down vote up
/**
 * Constructs a new (empty) legend for the specified source.
 *
 * @param source  the source.
 */
public LegendTitle(LegendItemSource source) {
    this(source, new FlowArrangement(), new ColumnArrangement());
}
 
Example #29
Source File: LegendTitle.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Constructs a new (empty) legend for the specified source.
 * 
 * @param source  the source.
 */
public LegendTitle(LegendItemSource source) {
    this(source, new FlowArrangement(), new ColumnArrangement());
}
 
Example #30
Source File: LegendTitle.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns the legend item sources.
 *
 * @return The sources.
 */
public LegendItemSource[] getSources() {
    return this.sources;
}