org.jfree.util.BooleanUtilities Java Examples

The following examples show how to use org.jfree.util.BooleanUtilities. 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: AbstractRenderer.java    From opensim-gui with Apache License 2.0 5 votes vote down vote up
/**
 * Sets the visibility of the item labels for ALL series.
 * 
 * @param visible  the flag.
 */
public void setItemLabelsVisible(boolean visible) {        
    setItemLabelsVisible(BooleanUtilities.valueOf(visible));
    // The following alternative is only supported in JDK 1.4 - we support 
    // JDK 1.2.2
    // setItemLabelsVisible(Boolean.valueOf(visible));
}
 
Example #2
Source File: DefaultPlotEditor.java    From buffer_bci with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Allow the user to modify whether or not shapes are drawn at data points
 * by <tt>LineAndShapeRenderer</tt>s and <tt>StandardXYItemRenderer</tt>s.
 */
private void attemptDrawShapesSelection() {
    this.drawShapes = BooleanUtilities.valueOf(
            this.drawShapesCheckBox.isSelected());
}
 
Example #3
Source File: DefaultPlotEditor.java    From ECG-Viewer with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Allow the user to modify whether or not shapes are drawn at data points
 * by <tt>LineAndShapeRenderer</tt>s and <tt>StandardXYItemRenderer</tt>s.
 */
private void attemptDrawShapesSelection() {
    this.drawShapes = BooleanUtilities.valueOf(
            this.drawShapesCheckBox.isSelected());
}
 
Example #4
Source File: DefaultPlotEditor.java    From openstock with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Allow the user to modify whether or not shapes are drawn at data points
 * by <tt>LineAndShapeRenderer</tt>s and <tt>StandardXYItemRenderer</tt>s.
 */
private void attemptDrawShapesSelection() {
    this.drawShapes = BooleanUtilities.valueOf(
            this.drawShapesCheckBox.isSelected());
}
 
Example #5
Source File: DefaultPlotEditor.java    From ccu-historian with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Allow the user to modify whether or not shapes are drawn at data points
 * by <tt>LineAndShapeRenderer</tt>s and <tt>StandardXYItemRenderer</tt>s.
 */
private void attemptDrawShapesSelection() {
    this.drawShapes = BooleanUtilities.valueOf(
            this.drawShapesCheckBox.isSelected());
}
 
Example #6
Source File: DefaultPlotEditor.java    From SIMVA-SoS with Apache License 2.0 4 votes vote down vote up
/**
 * Allow the user to modify whether or not shapes are drawn at data points
 * by <tt>LineAndShapeRenderer</tt>s and <tt>StandardXYItemRenderer</tt>s.
 */
private void attemptDrawShapesSelection() {
    this.drawShapes = BooleanUtilities.valueOf(
            this.drawShapesCheckBox.isSelected());
}
 
Example #7
Source File: DefaultPlotEditor.java    From opensim-gui with Apache License 2.0 4 votes vote down vote up
/**
 * Allow the user to modify whether or not lines are drawn between data 
 * points by <tt>LineAndShapeRenderer</tt>s and 
 * <tt>StandardXYItemRenderer</tt>s.
 */
private void attemptDrawLinesSelection() {
    this.drawLines = BooleanUtilities.valueOf(
        this.drawLinesCheckBox.isSelected()
    );
}
 
Example #8
Source File: DefaultPlotEditor.java    From opensim-gui with Apache License 2.0 4 votes vote down vote up
/**
 * Allow the user to modify whether or not shapes are drawn at data points
 * by <tt>LineAndShapeRenderer</tt>s and <tt>StandardXYItemRenderer</tt>s.
 */
private void attemptDrawShapesSelection() {
    this.drawShapes = BooleanUtilities.valueOf(
        this.drawShapesCheckBox.isSelected()
    );
}
 
Example #9
Source File: DefaultPlotEditor.java    From buffer_bci with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Allow the user to modify whether or not shapes are drawn at data points
 * by <tt>LineAndShapeRenderer</tt>s and <tt>StandardXYItemRenderer</tt>s.
 */
private void attemptDrawShapesSelection() {
    this.drawShapes = BooleanUtilities.valueOf(
            this.drawShapesCheckBox.isSelected());
}
 
Example #10
Source File: LineAndShapeRenderer.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Sets the 'shapes visible' for ALL series and sends a
 * {@link RendererChangeEvent} to all registered listeners.
 *
 * @param visible  the flag.
 *
 * @see #getShapesVisible()
 *
 * @deprecated As of 1.0.7 (the override facility is unnecessary, just
 *     use the per-series and base (default) settings).
 */
public void setShapesVisible(boolean visible) {
    setShapesVisible(BooleanUtilities.valueOf(visible));
}
 
Example #11
Source File: LineAndShapeRenderer.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Sets the 'shapes visible' flag for a series and sends a
 * {@link RendererChangeEvent} to all registered listeners.
 *
 * @param series  the series index (zero-based).
 * @param visible  the flag.
 *
 * @see #getSeriesShapesVisible(int)
 */
public void setSeriesShapesVisible(int series, boolean visible) {
    setSeriesShapesVisible(series, BooleanUtilities.valueOf(visible));
}
 
Example #12
Source File: LineAndShapeRenderer.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Sets the 'lines visible' flag for a series and sends a
 * {@link RendererChangeEvent} to all registered listeners.
 *
 * @param series  the series index (zero-based).
 * @param visible  the flag.
 *
 * @see #getSeriesLinesVisible(int)
 */
public void setSeriesLinesVisible(int series, boolean visible) {
    setSeriesLinesVisible(series, BooleanUtilities.valueOf(visible));
}
 
Example #13
Source File: LineAndShapeRenderer.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Sets a flag that controls whether or not lines are drawn between the
 * items in ALL series, and sends a {@link RendererChangeEvent} to all
 * registered listeners.
 *
 * @param visible  the flag.
 *
 * @see #getLinesVisible()
 *
 * @deprecated As of 1.0.7 (the override facility is unnecessary, just
 *     use the per-series and base (default) settings).
 */
public void setLinesVisible(boolean visible) {
    setLinesVisible(BooleanUtilities.valueOf(visible));
}
 
Example #14
Source File: DefaultPolarItemRenderer.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Sets a flag that controls whether or not a series is filled.
 *
 * @param series  the series index.
 * @param filled  the flag.
 */
public void setSeriesFilled(int series, boolean filled) {
    this.seriesFilled.setBoolean(series, BooleanUtilities.valueOf(filled));
}
 
Example #15
Source File: StandardXYItemRenderer.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Sets the override flag that controls whether or not shapes are filled
 * for ALL series and sends a {@link RendererChangeEvent} to all registered
 * listeners.
 *
 * @param filled  the flag.
 *
 * @see #setShapesFilled(Boolean)
 *
 * @deprecated As of 1.0.8, you should avoid using this method and rely
 *             on just the per-series ({@link #setSeriesShapesFilled(int,
 *             Boolean)}) and base-level ({@link #setBaseShapesVisible(
 *             boolean)}) settings.
 */
public void setShapesFilled(boolean filled) {
    // here we use BooleanUtilities to remain compatible with JDKs < 1.4
    setShapesFilled(BooleanUtilities.valueOf(filled));
}
 
Example #16
Source File: StandardXYItemRenderer.java    From nmonvisualizer with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the override flag that controls whether or not shapes are filled
 * for ALL series and sends a {@link RendererChangeEvent} to all registered
 * listeners.
 *
 * @param filled  the flag.
 *
 * @see #setShapesFilled(Boolean)
 *
 * @deprecated As of 1.0.8, you should avoid using this method and rely
 *             on just the per-series ({@link #setSeriesShapesFilled(int,
 *             Boolean)}) and base-level ({@link #setBaseShapesVisible(
 *             boolean)}) settings.
 */
public void setShapesFilled(boolean filled) {
    // here we use BooleanUtilities to remain compatible with JDKs < 1.4
    setShapesFilled(BooleanUtilities.valueOf(filled));
}
 
Example #17
Source File: LineAndShapeRenderer.java    From openstock with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Sets the 'lines visible' flag for a series and sends a
 * {@link RendererChangeEvent} to all registered listeners.
 *
 * @param series  the series index (zero-based).
 * @param visible  the flag.
 *
 * @see #getSeriesLinesVisible(int)
 */
public void setSeriesLinesVisible(int series, boolean visible) {
    setSeriesLinesVisible(series, BooleanUtilities.valueOf(visible));
}
 
Example #18
Source File: LineAndShapeRenderer.java    From openstock with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Sets the 'shapes visible' for ALL series and sends a
 * {@link RendererChangeEvent} to all registered listeners.
 *
 * @param visible  the flag.
 *
 * @see #getShapesVisible()
 *
 * @deprecated As of 1.0.7 (the override facility is unnecessary, just
 *     use the per-series and base (default) settings).
 */
public void setShapesVisible(boolean visible) {
    setShapesVisible(BooleanUtilities.valueOf(visible));
}
 
Example #19
Source File: LineAndShapeRenderer.java    From opensim-gui with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the 'shapes filled' flag for a series.
 *
 * @param series  the series index (zero-based).
 * @param filled  the flag.
 */
public void setSeriesShapesFilled(int series, boolean filled) {
    this.seriesShapesFilled.setBoolean(
        series, BooleanUtilities.valueOf(filled)
    );
}
 
Example #20
Source File: LineAndShapeRenderer.java    From opensim-gui with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the 'shapes visible' flag for a series and sends a 
 * {@link RendererChangeEvent} to all registered listeners.
 * 
 * @param series  the series index (zero-based).
 * @param visible  the flag.
 */
public void setSeriesShapesVisible(int series, boolean visible) {
    setSeriesShapesVisible(series, BooleanUtilities.valueOf(visible));
}
 
Example #21
Source File: LineAndShapeRenderer.java    From opensim-gui with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the 'shapes visible' for ALL series and sends a 
 * {@link RendererChangeEvent} to all registered listeners.
 * 
 * @param visible  the flag.
 */
public void setShapesVisible(boolean visible) {
    setShapesVisible(BooleanUtilities.valueOf(visible));
}
 
Example #22
Source File: LineAndShapeRenderer.java    From opensim-gui with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the 'lines visible' flag for a series.
 * 
 * @param series  the series index (zero-based).
 * @param visible  the flag.
 */
public void setSeriesLinesVisible(int series, boolean visible) {
    setSeriesLinesVisible(series, BooleanUtilities.valueOf(visible));
}
 
Example #23
Source File: LineAndShapeRenderer.java    From opensim-gui with Apache License 2.0 2 votes vote down vote up
/**
 * Sets a flag that controls whether or not lines are drawn between the 
 * items in ALL series, and sends a {@link RendererChangeEvent} to all 
 * registered listeners.
 *
 * @param visible  the flag.
 */
public void setLinesVisible(boolean visible) {
    setLinesVisible(BooleanUtilities.valueOf(visible));
}
 
Example #24
Source File: DefaultPolarItemRenderer.java    From opensim-gui with Apache License 2.0 2 votes vote down vote up
/**
 * Sets a flag that controls whether or not a series is filled.
 * 
 * @param series  the series index.
 * @param filled  the flag.
 */
public void setSeriesFilled(int series, boolean filled) {
    this.seriesFilled.setBoolean(series, BooleanUtilities.valueOf(filled));
}
 
Example #25
Source File: StandardXYItemRenderer.java    From opensim-gui with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the 'shapes filled' for ALL series.
 *
 * @param filled  the flag.
 */
public void setShapesFilled(boolean filled) {
    // here we use BooleanUtilities to remain compatible with JDKs < 1.4 
    setShapesFilled(BooleanUtilities.valueOf(filled));
}
 
Example #26
Source File: XYLineAndShapeRenderer.java    From opensim-gui with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the 'shapes filled' flag for a series.
 *
 * @param series  the series index (zero-based).
 * @param flag  the flag.
 */
public void setSeriesShapesFilled(int series, boolean flag) {
    setSeriesShapesFilled(series, BooleanUtilities.valueOf(flag));
}
 
Example #27
Source File: XYLineAndShapeRenderer.java    From opensim-gui with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the 'shapes filled' for ALL series and sends a 
 * {@link RendererChangeEvent} to all registered listeners.
 *
 * @param filled  the flag.
 */
public void setShapesFilled(boolean filled) {
    setShapesFilled(BooleanUtilities.valueOf(filled));
}
 
Example #28
Source File: XYLineAndShapeRenderer.java    From opensim-gui with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the 'shapes visible' flag for a series and sends a 
 * {@link RendererChangeEvent} to all registered listeners.
 * 
 * @param series  the series index (zero-based).
 * @param visible  the flag.
 */
public void setSeriesShapesVisible(int series, boolean visible) {
    setSeriesShapesVisible(series, BooleanUtilities.valueOf(visible));
}
 
Example #29
Source File: XYLineAndShapeRenderer.java    From opensim-gui with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the 'shapes visible' for ALL series and sends a 
 * {@link RendererChangeEvent} to all registered listeners.
 * 
 * @param visible  the flag.
 */
public void setShapesVisible(boolean visible) {
    setShapesVisible(BooleanUtilities.valueOf(visible));
}
 
Example #30
Source File: LineAndShapeRenderer.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Sets the 'lines visible' flag for a series and sends a
 * {@link RendererChangeEvent} to all registered listeners.
 *
 * @param series  the series index (zero-based).
 * @param visible  the flag.
 *
 * @see #getSeriesLinesVisible(int)
 */
public void setSeriesLinesVisible(int series, boolean visible) {
    setSeriesLinesVisible(series, BooleanUtilities.valueOf(visible));
}