org.jfree.chart.plot.ColorPalette Java Examples

The following examples show how to use org.jfree.chart.plot.ColorPalette. 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: PaletteSample.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Creates a new sample.
 *
 * @param palette  the palette.
 */
public PaletteSample(ColorPalette palette) {
    this.palette = palette;
    this.preferredSize = new Dimension(80, 18);
}
 
Example #2
Source File: PaletteSample.java    From ECG-Viewer with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Sets the palette object being displayed.
 *
 * @param palette  the palette.
 */
public void setPalette(ColorPalette palette) {
    this.palette = palette;
    this.repaint();
}
 
Example #3
Source File: PaletteChooserPanel.java    From ECG-Viewer with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns the selected palette.
 *
 * @return The selected palette.
 */
public ColorPalette getSelectedPalette() {
    PaletteSample sample = (PaletteSample) this.selector.getSelectedItem();
    return sample.getPalette();
}
 
Example #4
Source File: ColorBar.java    From opensim-gui with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the color palette.
 *
 * @return The color palette.
 */
public ColorPalette getColorPalette() {
    return this.colorPalette;
}
 
Example #5
Source File: ColorBar.java    From opensim-gui with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the color palette.
 *
 * @param palette  the new palette.
 */
public void setColorPalette(ColorPalette palette) {
    this.colorPalette = palette;
}
 
Example #6
Source File: PaletteSample.java    From opensim-gui with Apache License 2.0 2 votes vote down vote up
/**
 * Creates a new sample.
 *
 * @param palette  the palette.
 */
public PaletteSample(ColorPalette palette) {
    this.palette = palette;
    this.preferredSize = new Dimension(80, 18);
}
 
Example #7
Source File: PaletteSample.java    From opensim-gui with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the current palette object being displayed.
 *
 * @return The palette.
 */
public ColorPalette getPalette() {
    return this.palette;
}
 
Example #8
Source File: PaletteSample.java    From opensim-gui with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the palette object being displayed.
 *
 * @param palette  the palette.
 */
public void setPalette(ColorPalette palette) {
    this.palette = palette;
    this.repaint();
}
 
Example #9
Source File: PaletteChooserPanel.java    From opensim-gui with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the selected palette.
 *
 * @return The selected palette.
 */
public ColorPalette getSelectedPalette() {
    PaletteSample sample = (PaletteSample) this.selector.getSelectedItem();
    return sample.getPalette();
}
 
Example #10
Source File: ColorBar.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Returns the color palette.
 *
 * @return The color palette.
 */
public ColorPalette getColorPalette() {
    return this.colorPalette;
}
 
Example #11
Source File: ColorBar.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Sets the color palette.
 *
 * @param palette  the new palette.
 */
public void setColorPalette(ColorPalette palette) {
    this.colorPalette = palette;
}
 
Example #12
Source File: PaletteSample.java    From ECG-Viewer with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns the current palette object being displayed.
 *
 * @return The palette.
 */
public ColorPalette getPalette() {
    return this.palette;
}
 
Example #13
Source File: PaletteSample.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Returns the current palette object being displayed.
 *
 * @return The palette.
 */
public ColorPalette getPalette() {
    return this.palette;
}
 
Example #14
Source File: PaletteSample.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Sets the palette object being displayed.
 *
 * @param palette  the palette.
 */
public void setPalette(ColorPalette palette) {
    this.palette = palette;
    this.repaint();
}
 
Example #15
Source File: PaletteChooserPanel.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Returns the selected palette.
 *
 * @return The selected palette.
 */
public ColorPalette getSelectedPalette() {
    PaletteSample sample = (PaletteSample) this.selector.getSelectedItem();
    return sample.getPalette();
}
 
Example #16
Source File: ColorBar.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Returns the color palette.
 *
 * @return The color palette.
 */
public ColorPalette getColorPalette() {
    return this.colorPalette;
}
 
Example #17
Source File: ColorBar.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Sets the color palette.
 *
 * @param palette  the new palette.
 */
public void setColorPalette(ColorPalette palette) {
    this.colorPalette = palette;
}
 
Example #18
Source File: PaletteSample.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Creates a new sample.
 *
 * @param palette  the palette.
 */
public PaletteSample(ColorPalette palette) {
    this.palette = palette;
    this.preferredSize = new Dimension(80, 18);
}
 
Example #19
Source File: PaletteSample.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Returns the current palette object being displayed.
 *
 * @return The palette.
 */
public ColorPalette getPalette() {
    return this.palette;
}
 
Example #20
Source File: PaletteSample.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Sets the palette object being displayed.
 *
 * @param palette  the palette.
 */
public void setPalette(ColorPalette palette) {
    this.palette = palette;
    this.repaint();
}
 
Example #21
Source File: PaletteChooserPanel.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Returns the selected palette.
 *
 * @return The selected palette.
 */
public ColorPalette getSelectedPalette() {
    PaletteSample sample = (PaletteSample) this.selector.getSelectedItem();
    return sample.getPalette();
}
 
Example #22
Source File: PaletteChooserPanel.java    From ccu-historian with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Returns the selected palette.
 *
 * @return The selected palette.
 */
public ColorPalette getSelectedPalette() {
    PaletteSample sample = (PaletteSample) this.selector.getSelectedItem();
    return sample.getPalette();
}
 
Example #23
Source File: ColorBar.java    From openstock with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Sets the color palette.
 *
 * @param palette  the new palette.
 */
public void setColorPalette(ColorPalette palette) {
    this.colorPalette = palette;
}
 
Example #24
Source File: PaletteSample.java    From openstock with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Creates a new sample.
 *
 * @param palette  the palette.
 */
public PaletteSample(ColorPalette palette) {
    this.palette = palette;
    this.preferredSize = new Dimension(80, 18);
}
 
Example #25
Source File: PaletteSample.java    From openstock with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Returns the current palette object being displayed.
 *
 * @return The palette.
 */
public ColorPalette getPalette() {
    return this.palette;
}
 
Example #26
Source File: PaletteSample.java    From openstock with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Sets the palette object being displayed.
 *
 * @param palette  the palette.
 */
public void setPalette(ColorPalette palette) {
    this.palette = palette;
    this.repaint();
}
 
Example #27
Source File: PaletteChooserPanel.java    From openstock with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Returns the selected palette.
 *
 * @return The selected palette.
 */
public ColorPalette getSelectedPalette() {
    PaletteSample sample = (PaletteSample) this.selector.getSelectedItem();
    return sample.getPalette();
}
 
Example #28
Source File: ColorBar.java    From ccu-historian with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Returns the color palette.
 *
 * @return The color palette.
 */
public ColorPalette getColorPalette() {
    return this.colorPalette;
}
 
Example #29
Source File: ColorBar.java    From ccu-historian with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Sets the color palette.
 *
 * @param palette  the new palette.
 */
public void setColorPalette(ColorPalette palette) {
    this.colorPalette = palette;
}
 
Example #30
Source File: PaletteSample.java    From ccu-historian with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Creates a new sample.
 *
 * @param palette  the palette.
 */
public PaletteSample(ColorPalette palette) {
    this.palette = palette;
    this.preferredSize = new Dimension(80, 18);
}