Java 类org.jfree.chart.plot.RainbowPalette 实例源码

项目:parabuild-ci    文件:ColorBar.java   
/**
 * Constructs a horizontal colorbar axis, using default values where 
 * necessary.
 *
 * @param label  the axis label.
 */
public ColorBar(String label) {

    NumberAxis a = new NumberAxis(label);
    a.setAutoRangeIncludesZero(false);
    this.axis = a;
    this.axis.setLowerMargin(0.0);
    this.axis.setUpperMargin(0.0);

    this.colorPalette = new RainbowPalette();
    this.colorBarThickness = DEFAULT_COLORBAR_THICKNESS;
    this.colorBarThicknessPercent = DEFAULT_COLORBAR_THICKNESS_PERCENT;
    this.outerGap = DEFAULT_OUTERGAP;
    this.colorPalette.setMinZ(this.axis.getRange().getLowerBound());
    this.colorPalette.setMaxZ(this.axis.getRange().getUpperBound());

}
项目:ccu-historian    文件:ColorBar.java   
/**
 * Constructs a horizontal colorbar axis, using default values where
 * necessary.
 *
 * @param label  the axis label.
 */
public ColorBar(String label) {

    NumberAxis a = new NumberAxis(label);
    a.setAutoRangeIncludesZero(false);
    this.axis = a;
    this.axis.setLowerMargin(0.0);
    this.axis.setUpperMargin(0.0);

    this.colorPalette = new RainbowPalette();
    this.colorBarThickness = DEFAULT_COLORBAR_THICKNESS;
    this.colorBarThicknessPercent = DEFAULT_COLORBAR_THICKNESS_PERCENT;
    this.outerGap = DEFAULT_OUTERGAP;
    this.colorPalette.setMinZ(this.axis.getRange().getLowerBound());
    this.colorPalette.setMaxZ(this.axis.getRange().getUpperBound());

}
项目:aya-lang    文件:ColorBar.java   
/**
 * Constructs a horizontal colorbar axis, using default values where
 * necessary.
 *
 * @param label  the axis label.
 */
public ColorBar(String label) {

    NumberAxis a = new NumberAxis(label);
    a.setAutoRangeIncludesZero(false);
    this.axis = a;
    this.axis.setLowerMargin(0.0);
    this.axis.setUpperMargin(0.0);

    this.colorPalette = new RainbowPalette();
    this.colorBarThickness = DEFAULT_COLORBAR_THICKNESS;
    this.colorBarThicknessPercent = DEFAULT_COLORBAR_THICKNESS_PERCENT;
    this.outerGap = DEFAULT_OUTERGAP;
    this.colorPalette.setMinZ(this.axis.getRange().getLowerBound());
    this.colorPalette.setMaxZ(this.axis.getRange().getUpperBound());

}
项目:HTML5_WebSite    文件:ColorBar.java   
/**
 * Constructs a horizontal colorbar axis, using default values where
 * necessary.
 *
 * @param label  the axis label.
 */
public ColorBar(String label) {

    NumberAxis a = new NumberAxis(label);
    a.setAutoRangeIncludesZero(false);
    this.axis = a;
    this.axis.setLowerMargin(0.0);
    this.axis.setUpperMargin(0.0);

    this.colorPalette = new RainbowPalette();
    this.colorBarThickness = DEFAULT_COLORBAR_THICKNESS;
    this.colorBarThicknessPercent = DEFAULT_COLORBAR_THICKNESS_PERCENT;
    this.outerGap = DEFAULT_OUTERGAP;
    this.colorPalette.setMinZ(this.axis.getRange().getLowerBound());
    this.colorPalette.setMaxZ(this.axis.getRange().getUpperBound());

}
项目:populus    文件:ColorBar.java   
/**
 * Constructs a horizontal colorbar axis, using default values where
 * necessary.
 *
 * @param label  the axis label.
 */
public ColorBar(String label) {

    NumberAxis a = new NumberAxis(label);
    a.setAutoRangeIncludesZero(false);
    this.axis = a;
    this.axis.setLowerMargin(0.0);
    this.axis.setUpperMargin(0.0);

    this.colorPalette = new RainbowPalette();
    this.colorBarThickness = DEFAULT_COLORBAR_THICKNESS;
    this.colorBarThicknessPercent = DEFAULT_COLORBAR_THICKNESS_PERCENT;
    this.outerGap = DEFAULT_OUTERGAP;
    this.colorPalette.setMinZ(this.axis.getRange().getLowerBound());
    this.colorPalette.setMaxZ(this.axis.getRange().getUpperBound());

}
项目:PI    文件:ColorBar.java   
/**
 * Constructs a horizontal colorbar axis, using default values where
 * necessary.
 *
 * @param label  the axis label.
 */
public ColorBar(String label) {

    NumberAxis a = new NumberAxis(label);
    a.setAutoRangeIncludesZero(false);
    this.axis = a;
    this.axis.setLowerMargin(0.0);
    this.axis.setUpperMargin(0.0);

    this.colorPalette = new RainbowPalette();
    this.colorBarThickness = DEFAULT_COLORBAR_THICKNESS;
    this.colorBarThicknessPercent = DEFAULT_COLORBAR_THICKNESS_PERCENT;
    this.outerGap = DEFAULT_OUTERGAP;
    this.colorPalette.setMinZ(this.axis.getRange().getLowerBound());
    this.colorPalette.setMaxZ(this.axis.getRange().getUpperBound());

}
项目:nabs    文件:ColorBar.java   
/**
 * Constructs a horizontal colorbar axis, using default values where 
 * necessary.
 *
 * @param label  the axis label.
 */
public ColorBar(String label) {

    NumberAxis a = new NumberAxis(label);
    a.setAutoRangeIncludesZero(false);
    this.axis = a;
    this.axis.setLowerMargin(0.0);
    this.axis.setUpperMargin(0.0);

    this.colorPalette = new RainbowPalette();
    this.colorBarThickness = DEFAULT_COLORBAR_THICKNESS;
    this.colorBarThicknessPercent = DEFAULT_COLORBAR_THICKNESS_PERCENT;
    this.outerGap = DEFAULT_OUTERGAP;
    this.colorPalette.setMinZ(this.axis.getRange().getLowerBound());
    this.colorPalette.setMaxZ(this.axis.getRange().getUpperBound());

}
项目:ECG-Viewer    文件:ColorBar.java   
/**
 * Constructs a horizontal colorbar axis, using default values where
 * necessary.
 *
 * @param label  the axis label.
 */
public ColorBar(String label) {

    NumberAxis a = new NumberAxis(label);
    a.setAutoRangeIncludesZero(false);
    this.axis = a;
    this.axis.setLowerMargin(0.0);
    this.axis.setUpperMargin(0.0);

    this.colorPalette = new RainbowPalette();
    this.colorBarThickness = DEFAULT_COLORBAR_THICKNESS;
    this.colorBarThicknessPercent = DEFAULT_COLORBAR_THICKNESS_PERCENT;
    this.outerGap = DEFAULT_OUTERGAP;
    this.colorPalette.setMinZ(this.axis.getRange().getLowerBound());
    this.colorPalette.setMaxZ(this.axis.getRange().getUpperBound());

}
项目:opensim-gui    文件:ColorBar.java   
/**
 * Constructs a horizontal colorbar axis, using default values where 
 * necessary.
 *
 * @param label  the axis label.
 */
public ColorBar(String label) {

    NumberAxis a = new NumberAxis(label);
    a.setAutoRangeIncludesZero(false);
    this.axis = a;
    this.axis.setLowerMargin(0.0);
    this.axis.setUpperMargin(0.0);

    this.colorPalette = new RainbowPalette();
    this.colorBarThickness = DEFAULT_COLORBAR_THICKNESS;
    this.colorBarThicknessPercent = DEFAULT_COLORBAR_THICKNESS_PERCENT;
    this.outerGap = DEFAULT_OUTERGAP;
    this.colorPalette.setMinZ(this.axis.getRange().getLowerBound());
    this.colorPalette.setMaxZ(this.axis.getRange().getUpperBound());

}
项目:group-five    文件:ColorBar.java   
/**
 * Constructs a horizontal colorbar axis, using default values where
 * necessary.
 *
 * @param label  the axis label.
 */
public ColorBar(String label) {

    NumberAxis a = new NumberAxis(label);
    a.setAutoRangeIncludesZero(false);
    this.axis = a;
    this.axis.setLowerMargin(0.0);
    this.axis.setUpperMargin(0.0);

    this.colorPalette = new RainbowPalette();
    this.colorBarThickness = DEFAULT_COLORBAR_THICKNESS;
    this.colorBarThicknessPercent = DEFAULT_COLORBAR_THICKNESS_PERCENT;
    this.outerGap = DEFAULT_OUTERGAP;
    this.colorPalette.setMinZ(this.axis.getRange().getLowerBound());
    this.colorPalette.setMaxZ(this.axis.getRange().getUpperBound());

}
项目:manydesigns.cn    文件:ColorBar.java   
/**
 * Constructs a horizontal colorbar axis, using default values where
 * necessary.
 *
 * @param label  the axis label.
 */
public ColorBar(String label) {

    NumberAxis a = new NumberAxis(label);
    a.setAutoRangeIncludesZero(false);
    this.axis = a;
    this.axis.setLowerMargin(0.0);
    this.axis.setUpperMargin(0.0);

    this.colorPalette = new RainbowPalette();
    this.colorBarThickness = DEFAULT_COLORBAR_THICKNESS;
    this.colorBarThicknessPercent = DEFAULT_COLORBAR_THICKNESS_PERCENT;
    this.outerGap = DEFAULT_OUTERGAP;
    this.colorPalette.setMinZ(this.axis.getRange().getLowerBound());
    this.colorPalette.setMaxZ(this.axis.getRange().getUpperBound());

}
项目:buffer_bci    文件:ColorBar.java   
/**
 * Constructs a horizontal colorbar axis, using default values where
 * necessary.
 *
 * @param label  the axis label.
 */
public ColorBar(String label) {

    NumberAxis a = new NumberAxis(label);
    a.setAutoRangeIncludesZero(false);
    this.axis = a;
    this.axis.setLowerMargin(0.0);
    this.axis.setUpperMargin(0.0);

    this.colorPalette = new RainbowPalette();
    this.colorBarThickness = DEFAULT_COLORBAR_THICKNESS;
    this.colorBarThicknessPercent = DEFAULT_COLORBAR_THICKNESS_PERCENT;
    this.outerGap = DEFAULT_OUTERGAP;
    this.colorPalette.setMinZ(this.axis.getRange().getLowerBound());
    this.colorPalette.setMaxZ(this.axis.getRange().getUpperBound());

}
项目:buffer_bci    文件:ColorBar.java   
/**
 * Constructs a horizontal colorbar axis, using default values where
 * necessary.
 *
 * @param label  the axis label.
 */
public ColorBar(String label) {

    NumberAxis a = new NumberAxis(label);
    a.setAutoRangeIncludesZero(false);
    this.axis = a;
    this.axis.setLowerMargin(0.0);
    this.axis.setUpperMargin(0.0);

    this.colorPalette = new RainbowPalette();
    this.colorBarThickness = DEFAULT_COLORBAR_THICKNESS;
    this.colorBarThicknessPercent = DEFAULT_COLORBAR_THICKNESS_PERCENT;
    this.outerGap = DEFAULT_OUTERGAP;
    this.colorPalette.setMinZ(this.axis.getRange().getLowerBound());
    this.colorPalette.setMaxZ(this.axis.getRange().getUpperBound());

}
项目:proyecto-teoria-control-utn-frro    文件:ColorBar.java   
/**
 * Constructs a horizontal colorbar axis, using default values where
 * necessary.
 *
 * @param label  the axis label.
 */
public ColorBar(String label) {

    NumberAxis a = new NumberAxis(label);
    a.setAutoRangeIncludesZero(false);
    this.axis = a;
    this.axis.setLowerMargin(0.0);
    this.axis.setUpperMargin(0.0);

    this.colorPalette = new RainbowPalette();
    this.colorBarThickness = DEFAULT_COLORBAR_THICKNESS;
    this.colorBarThicknessPercent = DEFAULT_COLORBAR_THICKNESS_PERCENT;
    this.outerGap = DEFAULT_OUTERGAP;
    this.colorPalette.setMinZ(this.axis.getRange().getLowerBound());
    this.colorPalette.setMaxZ(this.axis.getRange().getUpperBound());

}
项目:Memetic-Algorithm-for-TSP    文件:ColorBar.java   
/**
 * Constructs a horizontal colorbar axis, using default values where
 * necessary.
 *
 * @param label  the axis label.
 */
public ColorBar(String label) {

    NumberAxis a = new NumberAxis(label);
    a.setAutoRangeIncludesZero(false);
    this.axis = a;
    this.axis.setLowerMargin(0.0);
    this.axis.setUpperMargin(0.0);

    this.colorPalette = new RainbowPalette();
    this.colorBarThickness = DEFAULT_COLORBAR_THICKNESS;
    this.colorBarThicknessPercent = DEFAULT_COLORBAR_THICKNESS_PERCENT;
    this.outerGap = DEFAULT_OUTERGAP;
    this.colorPalette.setMinZ(this.axis.getRange().getLowerBound());
    this.colorPalette.setMaxZ(this.axis.getRange().getUpperBound());

}
项目:parabuild-ci    文件:PaletteChooserPanel.java   
/**
 * Constructor.
 *
 * @param current  the current palette sample.
 * @param available  an array of 'available' palette samples.
 */
public PaletteChooserPanel(PaletteSample current, 
                           PaletteSample[] available) {
    setLayout(new BorderLayout());
    this.selector = new JComboBox(available);
    this.selector.setSelectedItem(current);
    this.selector.setRenderer(new PaletteSample(new RainbowPalette()));
    add(this.selector);
}
项目:ccu-historian    文件:PaletteChooserPanel.java   
/**
 * Constructor.
 *
 * @param current  the current palette sample.
 * @param available  an array of 'available' palette samples.
 */
public PaletteChooserPanel(PaletteSample current,
                           PaletteSample[] available) {
    setLayout(new BorderLayout());
    this.selector = new JComboBox(available);
    this.selector.setSelectedItem(current);
    this.selector.setRenderer(new PaletteSample(new RainbowPalette()));
    add(this.selector);
}
项目:aya-lang    文件:PaletteChooserPanel.java   
/**
 * Constructor.
 *
 * @param current  the current palette sample.
 * @param available  an array of 'available' palette samples.
 */
public PaletteChooserPanel(PaletteSample current,
                           PaletteSample[] available) {
    setLayout(new BorderLayout());
    this.selector = new JComboBox(available);
    this.selector.setSelectedItem(current);
    this.selector.setRenderer(new PaletteSample(new RainbowPalette()));
    add(this.selector);
}
项目:HTML5_WebSite    文件:PaletteChooserPanel.java   
/**
 * Constructor.
 *
 * @param current  the current palette sample.
 * @param available  an array of 'available' palette samples.
 */
public PaletteChooserPanel(PaletteSample current,
                           PaletteSample[] available) {
    setLayout(new BorderLayout());
    this.selector = new JComboBox(available);
    this.selector.setSelectedItem(current);
    this.selector.setRenderer(new PaletteSample(new RainbowPalette()));
    add(this.selector);
}
项目:populus    文件:PaletteChooserPanel.java   
/**
 * Constructor.
 *
 * @param current  the current palette sample.
 * @param available  an array of 'available' palette samples.
 */
public PaletteChooserPanel(PaletteSample current,
                           PaletteSample[] available) {
    setLayout(new BorderLayout());
    this.selector = new JComboBox(available);
    this.selector.setSelectedItem(current);
    this.selector.setRenderer(new PaletteSample(new RainbowPalette()));
    add(this.selector);
}
项目:PI    文件:PaletteChooserPanel.java   
/**
 * Constructor.
 *
 * @param current  the current palette sample.
 * @param available  an array of 'available' palette samples.
 */
public PaletteChooserPanel(PaletteSample current,
                           PaletteSample[] available) {
    setLayout(new BorderLayout());
    this.selector = new JComboBox(available);
    this.selector.setSelectedItem(current);
    this.selector.setRenderer(new PaletteSample(new RainbowPalette()));
    add(this.selector);
}
项目:nabs    文件:PaletteChooserPanel.java   
/**
 * Constructor.
 *
 * @param current  the current palette sample.
 * @param available  an array of 'available' palette samples.
 */
public PaletteChooserPanel(PaletteSample current, 
                           PaletteSample[] available) {
    setLayout(new BorderLayout());
    this.selector = new JComboBox(available);
    this.selector.setSelectedItem(current);
    this.selector.setRenderer(new PaletteSample(new RainbowPalette()));
    add(this.selector);
}
项目:ECG-Viewer    文件:PaletteChooserPanel.java   
/**
 * Constructor.
 *
 * @param current  the current palette sample.
 * @param available  an array of 'available' palette samples.
 */
public PaletteChooserPanel(PaletteSample current,
                           PaletteSample[] available) {
    setLayout(new BorderLayout());
    this.selector = new JComboBox(available);
    this.selector.setSelectedItem(current);
    this.selector.setRenderer(new PaletteSample(new RainbowPalette()));
    add(this.selector);
}
项目:opensim-gui    文件:PaletteChooserPanel.java   
/**
 * Constructor.
 *
 * @param current  the current palette sample.
 * @param available  an array of 'available' palette samples.
 */
public PaletteChooserPanel(PaletteSample current, 
                           PaletteSample[] available) {
    setLayout(new BorderLayout());
    this.selector = new JComboBox(available);
    this.selector.setSelectedItem(current);
    this.selector.setRenderer(new PaletteSample(new RainbowPalette()));
    add(this.selector);
}
项目:group-five    文件:PaletteChooserPanel.java   
/**
 * Constructor.
 *
 * @param current  the current palette sample.
 * @param available  an array of 'available' palette samples.
 */
public PaletteChooserPanel(PaletteSample current,
                           PaletteSample[] available) {
    setLayout(new BorderLayout());
    this.selector = new JComboBox(available);
    this.selector.setSelectedItem(current);
    this.selector.setRenderer(new PaletteSample(new RainbowPalette()));
    add(this.selector);
}
项目:manydesigns.cn    文件:PaletteChooserPanel.java   
/**
 * Constructor.
 *
 * @param current  the current palette sample.
 * @param available  an array of 'available' palette samples.
 */
public PaletteChooserPanel(PaletteSample current,
                           PaletteSample[] available) {
    setLayout(new BorderLayout());
    this.selector = new JComboBox(available);
    this.selector.setSelectedItem(current);
    this.selector.setRenderer(new PaletteSample(new RainbowPalette()));
    add(this.selector);
}
项目:buffer_bci    文件:PaletteChooserPanel.java   
/**
 * Constructor.
 *
 * @param current  the current palette sample.
 * @param available  an array of 'available' palette samples.
 */
public PaletteChooserPanel(PaletteSample current,
                           PaletteSample[] available) {
    setLayout(new BorderLayout());
    this.selector = new JComboBox(available);
    this.selector.setSelectedItem(current);
    this.selector.setRenderer(new PaletteSample(new RainbowPalette()));
    add(this.selector);
}
项目:buffer_bci    文件:PaletteChooserPanel.java   
/**
 * Constructor.
 *
 * @param current  the current palette sample.
 * @param available  an array of 'available' palette samples.
 */
public PaletteChooserPanel(PaletteSample current,
                           PaletteSample[] available) {
    setLayout(new BorderLayout());
    this.selector = new JComboBox(available);
    this.selector.setSelectedItem(current);
    this.selector.setRenderer(new PaletteSample(new RainbowPalette()));
    add(this.selector);
}
项目:proyecto-teoria-control-utn-frro    文件:PaletteChooserPanel.java   
/**
 * Constructor.
 *
 * @param current  the current palette sample.
 * @param available  an array of 'available' palette samples.
 */
public PaletteChooserPanel(PaletteSample current,
                           PaletteSample[] available) {
    setLayout(new BorderLayout());
    this.selector = new JComboBox(available);
    this.selector.setSelectedItem(current);
    this.selector.setRenderer(new PaletteSample(new RainbowPalette()));
    add(this.selector);
}
项目:Memetic-Algorithm-for-TSP    文件:PaletteChooserPanel.java   
/**
 * Constructor.
 *
 * @param current  the current palette sample.
 * @param available  an array of 'available' palette samples.
 */
public PaletteChooserPanel(PaletteSample current,
                           PaletteSample[] available) {
    setLayout(new BorderLayout());
    this.selector = new JComboBox(available);
    this.selector.setSelectedItem(current);
    this.selector.setRenderer(new PaletteSample(new RainbowPalette()));
    add(this.selector);
}
项目:parabuild-ci    文件:DefaultColorBarEditor.java   
/**
 * Creates a new edit panel for a color bar.
 * 
 * @param colorBar  the color bar.
 */
public DefaultColorBarEditor(ColorBar colorBar) {
    super((NumberAxis) colorBar.getAxis());
    this.invertPalette = colorBar.getColorPalette().isInverse(); 
    this.stepPalette = colorBar.getColorPalette().isStepped(); 
    this.currentPalette = new PaletteSample(colorBar.getColorPalette());
    this.availablePaletteSamples = new PaletteSample[2];
    this.availablePaletteSamples[0] 
        = new PaletteSample(new RainbowPalette());
    this.availablePaletteSamples[1] 
        = new PaletteSample(new GreyPalette());

    JTabbedPane other = getOtherTabs();

    JPanel palettePanel = new JPanel(new LCBLayout(4));
    palettePanel.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));

    palettePanel.add(new JPanel());
    this.invertPaletteCheckBox = new JCheckBox(
        localizationResources.getString("Invert_Palette"), 
        this.invertPalette
    );
    this.invertPaletteCheckBox.setActionCommand("invertPalette");
    this.invertPaletteCheckBox.addActionListener(this);
    palettePanel.add(this.invertPaletteCheckBox);
    palettePanel.add(new JPanel());

    palettePanel.add(new JPanel());
    this.stepPaletteCheckBox = new JCheckBox(
        localizationResources.getString("Step_Palette"),
        this.stepPalette
    );
    this.stepPaletteCheckBox.setActionCommand("stepPalette");
    this.stepPaletteCheckBox.addActionListener(this);
    palettePanel.add(this.stepPaletteCheckBox);
    palettePanel.add(new JPanel());

    palettePanel.add(
        new JLabel(localizationResources.getString("Palette"))
    );
    JButton button 
        = new JButton(localizationResources.getString("Set_palette..."));
    button.setActionCommand("PaletteChoice");
    button.addActionListener(this);
    palettePanel.add(this.currentPalette);
    palettePanel.add(button);

    other.add(localizationResources.getString("Palette"), palettePanel);

}
项目:ccu-historian    文件:DefaultColorBarEditor.java   
/**
 * Creates a new edit panel for a color bar.
 *
 * @param colorBar  the color bar.
 */
public DefaultColorBarEditor(ColorBar colorBar) {
    super((NumberAxis) colorBar.getAxis());
    this.invertPalette = colorBar.getColorPalette().isInverse();
    this.stepPalette = colorBar.getColorPalette().isStepped();
    this.currentPalette = new PaletteSample(colorBar.getColorPalette());
    this.availablePaletteSamples = new PaletteSample[2];
    this.availablePaletteSamples[0]
        = new PaletteSample(new RainbowPalette());
    this.availablePaletteSamples[1]
        = new PaletteSample(new GreyPalette());

    JTabbedPane other = getOtherTabs();

    JPanel palettePanel = new JPanel(new LCBLayout(4));
    palettePanel.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));

    palettePanel.add(new JPanel());
    this.invertPaletteCheckBox = new JCheckBox(
        localizationResources.getString("Invert_Palette"),
        this.invertPalette
    );
    this.invertPaletteCheckBox.setActionCommand("invertPalette");
    this.invertPaletteCheckBox.addActionListener(this);
    palettePanel.add(this.invertPaletteCheckBox);
    palettePanel.add(new JPanel());

    palettePanel.add(new JPanel());
    this.stepPaletteCheckBox = new JCheckBox(
        localizationResources.getString("Step_Palette"),
        this.stepPalette
    );
    this.stepPaletteCheckBox.setActionCommand("stepPalette");
    this.stepPaletteCheckBox.addActionListener(this);
    palettePanel.add(this.stepPaletteCheckBox);
    palettePanel.add(new JPanel());

    palettePanel.add(
        new JLabel(localizationResources.getString("Palette"))
    );
    JButton button
        = new JButton(localizationResources.getString("Set_palette..."));
    button.setActionCommand("PaletteChoice");
    button.addActionListener(this);
    palettePanel.add(this.currentPalette);
    palettePanel.add(button);

    other.add(localizationResources.getString("Palette"), palettePanel);

}
项目:aya-lang    文件:DefaultColorBarEditor.java   
/**
 * Creates a new edit panel for a color bar.
 *
 * @param colorBar  the color bar.
 */
public DefaultColorBarEditor(ColorBar colorBar) {
    super((NumberAxis) colorBar.getAxis());
    this.invertPalette = colorBar.getColorPalette().isInverse();
    this.stepPalette = colorBar.getColorPalette().isStepped();
    this.currentPalette = new PaletteSample(colorBar.getColorPalette());
    this.availablePaletteSamples = new PaletteSample[2];
    this.availablePaletteSamples[0]
        = new PaletteSample(new RainbowPalette());
    this.availablePaletteSamples[1]
        = new PaletteSample(new GreyPalette());

    JTabbedPane other = getOtherTabs();

    JPanel palettePanel = new JPanel(new LCBLayout(4));
    palettePanel.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));

    palettePanel.add(new JPanel());
    this.invertPaletteCheckBox = new JCheckBox(
        localizationResources.getString("Invert_Palette"),
        this.invertPalette
    );
    this.invertPaletteCheckBox.setActionCommand("invertPalette");
    this.invertPaletteCheckBox.addActionListener(this);
    palettePanel.add(this.invertPaletteCheckBox);
    palettePanel.add(new JPanel());

    palettePanel.add(new JPanel());
    this.stepPaletteCheckBox = new JCheckBox(
        localizationResources.getString("Step_Palette"),
        this.stepPalette
    );
    this.stepPaletteCheckBox.setActionCommand("stepPalette");
    this.stepPaletteCheckBox.addActionListener(this);
    palettePanel.add(this.stepPaletteCheckBox);
    palettePanel.add(new JPanel());

    palettePanel.add(
        new JLabel(localizationResources.getString("Palette"))
    );
    JButton button
        = new JButton(localizationResources.getString("Set_palette..."));
    button.setActionCommand("PaletteChoice");
    button.addActionListener(this);
    palettePanel.add(this.currentPalette);
    palettePanel.add(button);

    other.add(localizationResources.getString("Palette"), palettePanel);

}
项目:HTML5_WebSite    文件:DefaultColorBarEditor.java   
/**
 * Creates a new edit panel for a color bar.
 *
 * @param colorBar  the color bar.
 */
public DefaultColorBarEditor(ColorBar colorBar) {
    super((NumberAxis) colorBar.getAxis());
    this.invertPalette = colorBar.getColorPalette().isInverse();
    this.stepPalette = colorBar.getColorPalette().isStepped();
    this.currentPalette = new PaletteSample(colorBar.getColorPalette());
    this.availablePaletteSamples = new PaletteSample[2];
    this.availablePaletteSamples[0]
        = new PaletteSample(new RainbowPalette());
    this.availablePaletteSamples[1]
        = new PaletteSample(new GreyPalette());

    JTabbedPane other = getOtherTabs();

    JPanel palettePanel = new JPanel(new LCBLayout(4));
    palettePanel.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));

    palettePanel.add(new JPanel());
    this.invertPaletteCheckBox = new JCheckBox(
        localizationResources.getString("Invert_Palette"),
        this.invertPalette
    );
    this.invertPaletteCheckBox.setActionCommand("invertPalette");
    this.invertPaletteCheckBox.addActionListener(this);
    palettePanel.add(this.invertPaletteCheckBox);
    palettePanel.add(new JPanel());

    palettePanel.add(new JPanel());
    this.stepPaletteCheckBox = new JCheckBox(
        localizationResources.getString("Step_Palette"),
        this.stepPalette
    );
    this.stepPaletteCheckBox.setActionCommand("stepPalette");
    this.stepPaletteCheckBox.addActionListener(this);
    palettePanel.add(this.stepPaletteCheckBox);
    palettePanel.add(new JPanel());

    palettePanel.add(
        new JLabel(localizationResources.getString("Palette"))
    );
    JButton button
        = new JButton(localizationResources.getString("Set_palette..."));
    button.setActionCommand("PaletteChoice");
    button.addActionListener(this);
    palettePanel.add(this.currentPalette);
    palettePanel.add(button);

    other.add(localizationResources.getString("Palette"), palettePanel);

}
项目:populus    文件:DefaultColorBarEditor.java   
/**
 * Creates a new edit panel for a color bar.
 *
 * @param colorBar  the color bar.
 */
public DefaultColorBarEditor(ColorBar colorBar) {
    super((NumberAxis) colorBar.getAxis());
    this.invertPalette = colorBar.getColorPalette().isInverse();
    this.stepPalette = colorBar.getColorPalette().isStepped();
    this.currentPalette = new PaletteSample(colorBar.getColorPalette());
    this.availablePaletteSamples = new PaletteSample[2];
    this.availablePaletteSamples[0]
        = new PaletteSample(new RainbowPalette());
    this.availablePaletteSamples[1]
        = new PaletteSample(new GreyPalette());

    JTabbedPane other = getOtherTabs();

    JPanel palettePanel = new JPanel(new LCBLayout(4));
    palettePanel.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));

    palettePanel.add(new JPanel());
    this.invertPaletteCheckBox = new JCheckBox(
        localizationResources.getString("Invert_Palette"),
        this.invertPalette
    );
    this.invertPaletteCheckBox.setActionCommand("invertPalette");
    this.invertPaletteCheckBox.addActionListener(this);
    palettePanel.add(this.invertPaletteCheckBox);
    palettePanel.add(new JPanel());

    palettePanel.add(new JPanel());
    this.stepPaletteCheckBox = new JCheckBox(
        localizationResources.getString("Step_Palette"),
        this.stepPalette
    );
    this.stepPaletteCheckBox.setActionCommand("stepPalette");
    this.stepPaletteCheckBox.addActionListener(this);
    palettePanel.add(this.stepPaletteCheckBox);
    palettePanel.add(new JPanel());

    palettePanel.add(
        new JLabel(localizationResources.getString("Palette"))
    );
    JButton button
        = new JButton(localizationResources.getString("Set_palette..."));
    button.setActionCommand("PaletteChoice");
    button.addActionListener(this);
    palettePanel.add(this.currentPalette);
    palettePanel.add(button);

    other.add(localizationResources.getString("Palette"), palettePanel);

}
项目:PI    文件:DefaultColorBarEditor.java   
/**
 * Creates a new edit panel for a color bar.
 *
 * @param colorBar  the color bar.
 */
public DefaultColorBarEditor(ColorBar colorBar) {
    super((NumberAxis) colorBar.getAxis());
    this.invertPalette = colorBar.getColorPalette().isInverse();
    this.stepPalette = colorBar.getColorPalette().isStepped();
    this.currentPalette = new PaletteSample(colorBar.getColorPalette());
    this.availablePaletteSamples = new PaletteSample[2];
    this.availablePaletteSamples[0]
        = new PaletteSample(new RainbowPalette());
    this.availablePaletteSamples[1]
        = new PaletteSample(new GreyPalette());

    JTabbedPane other = getOtherTabs();

    JPanel palettePanel = new JPanel(new LCBLayout(4));
    palettePanel.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));

    palettePanel.add(new JPanel());
    this.invertPaletteCheckBox = new JCheckBox(
        localizationResources.getString("Invert_Palette"),
        this.invertPalette
    );
    this.invertPaletteCheckBox.setActionCommand("invertPalette");
    this.invertPaletteCheckBox.addActionListener(this);
    palettePanel.add(this.invertPaletteCheckBox);
    palettePanel.add(new JPanel());

    palettePanel.add(new JPanel());
    this.stepPaletteCheckBox = new JCheckBox(
        localizationResources.getString("Step_Palette"),
        this.stepPalette
    );
    this.stepPaletteCheckBox.setActionCommand("stepPalette");
    this.stepPaletteCheckBox.addActionListener(this);
    palettePanel.add(this.stepPaletteCheckBox);
    palettePanel.add(new JPanel());

    palettePanel.add(
        new JLabel(localizationResources.getString("Palette"))
    );
    JButton button
        = new JButton(localizationResources.getString("Set_palette..."));
    button.setActionCommand("PaletteChoice");
    button.addActionListener(this);
    palettePanel.add(this.currentPalette);
    palettePanel.add(button);

    other.add(localizationResources.getString("Palette"), palettePanel);

}
项目:nabs    文件:DefaultColorBarEditor.java   
/**
 * Creates a new edit panel for a color bar.
 * 
 * @param colorBar  the color bar.
 */
public DefaultColorBarEditor(ColorBar colorBar) {
    super((NumberAxis) colorBar.getAxis());
    this.invertPalette = colorBar.getColorPalette().isInverse(); 
    this.stepPalette = colorBar.getColorPalette().isStepped(); 
    this.currentPalette = new PaletteSample(colorBar.getColorPalette());
    this.availablePaletteSamples = new PaletteSample[2];
    this.availablePaletteSamples[0] 
        = new PaletteSample(new RainbowPalette());
    this.availablePaletteSamples[1] 
        = new PaletteSample(new GreyPalette());

    JTabbedPane other = getOtherTabs();

    JPanel palettePanel = new JPanel(new LCBLayout(4));
    palettePanel.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));

    palettePanel.add(new JPanel());
    this.invertPaletteCheckBox = new JCheckBox(
        localizationResources.getString("Invert_Palette"), 
        this.invertPalette
    );
    this.invertPaletteCheckBox.setActionCommand("invertPalette");
    this.invertPaletteCheckBox.addActionListener(this);
    palettePanel.add(this.invertPaletteCheckBox);
    palettePanel.add(new JPanel());

    palettePanel.add(new JPanel());
    this.stepPaletteCheckBox = new JCheckBox(
        localizationResources.getString("Step_Palette"),
        this.stepPalette
    );
    this.stepPaletteCheckBox.setActionCommand("stepPalette");
    this.stepPaletteCheckBox.addActionListener(this);
    palettePanel.add(this.stepPaletteCheckBox);
    palettePanel.add(new JPanel());

    palettePanel.add(
        new JLabel(localizationResources.getString("Palette"))
    );
    JButton button 
        = new JButton(localizationResources.getString("Set_palette..."));
    button.setActionCommand("PaletteChoice");
    button.addActionListener(this);
    palettePanel.add(this.currentPalette);
    palettePanel.add(button);

    other.add(localizationResources.getString("Palette"), palettePanel);

}
项目:ECG-Viewer    文件:DefaultColorBarEditor.java   
/**
 * Creates a new edit panel for a color bar.
 *
 * @param colorBar  the color bar.
 */
public DefaultColorBarEditor(ColorBar colorBar) {
    super((NumberAxis) colorBar.getAxis());
    this.invertPalette = colorBar.getColorPalette().isInverse();
    this.stepPalette = colorBar.getColorPalette().isStepped();
    this.currentPalette = new PaletteSample(colorBar.getColorPalette());
    this.availablePaletteSamples = new PaletteSample[2];
    this.availablePaletteSamples[0]
        = new PaletteSample(new RainbowPalette());
    this.availablePaletteSamples[1]
        = new PaletteSample(new GreyPalette());

    JTabbedPane other = getOtherTabs();

    JPanel palettePanel = new JPanel(new LCBLayout(4));
    palettePanel.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));

    palettePanel.add(new JPanel());
    this.invertPaletteCheckBox = new JCheckBox(
        localizationResources.getString("Invert_Palette"),
        this.invertPalette
    );
    this.invertPaletteCheckBox.setActionCommand("invertPalette");
    this.invertPaletteCheckBox.addActionListener(this);
    palettePanel.add(this.invertPaletteCheckBox);
    palettePanel.add(new JPanel());

    palettePanel.add(new JPanel());
    this.stepPaletteCheckBox = new JCheckBox(
        localizationResources.getString("Step_Palette"),
        this.stepPalette
    );
    this.stepPaletteCheckBox.setActionCommand("stepPalette");
    this.stepPaletteCheckBox.addActionListener(this);
    palettePanel.add(this.stepPaletteCheckBox);
    palettePanel.add(new JPanel());

    palettePanel.add(
        new JLabel(localizationResources.getString("Palette"))
    );
    JButton button
        = new JButton(localizationResources.getString("Set_palette..."));
    button.setActionCommand("PaletteChoice");
    button.addActionListener(this);
    palettePanel.add(this.currentPalette);
    palettePanel.add(button);

    other.add(localizationResources.getString("Palette"), palettePanel);

}
项目:opensim-gui    文件:DefaultColorBarEditor.java   
/**
 * Creates a new edit panel for a color bar.
 * 
 * @param colorBar  the color bar.
 */
public DefaultColorBarEditor(ColorBar colorBar) {
    super((NumberAxis) colorBar.getAxis());
    this.invertPalette = colorBar.getColorPalette().isInverse(); 
    this.stepPalette = colorBar.getColorPalette().isStepped(); 
    this.currentPalette = new PaletteSample(colorBar.getColorPalette());
    this.availablePaletteSamples = new PaletteSample[2];
    this.availablePaletteSamples[0] 
        = new PaletteSample(new RainbowPalette());
    this.availablePaletteSamples[1] 
        = new PaletteSample(new GreyPalette());

    JTabbedPane other = getOtherTabs();

    JPanel palettePanel = new JPanel(new LCBLayout(4));
    palettePanel.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));

    palettePanel.add(new JPanel());
    this.invertPaletteCheckBox = new JCheckBox(
        localizationResources.getString("Invert_Palette"), 
        this.invertPalette
    );
    this.invertPaletteCheckBox.setActionCommand("invertPalette");
    this.invertPaletteCheckBox.addActionListener(this);
    palettePanel.add(this.invertPaletteCheckBox);
    palettePanel.add(new JPanel());

    palettePanel.add(new JPanel());
    this.stepPaletteCheckBox = new JCheckBox(
        localizationResources.getString("Step_Palette"),
        this.stepPalette
    );
    this.stepPaletteCheckBox.setActionCommand("stepPalette");
    this.stepPaletteCheckBox.addActionListener(this);
    palettePanel.add(this.stepPaletteCheckBox);
    palettePanel.add(new JPanel());

    palettePanel.add(
        new JLabel(localizationResources.getString("Palette"))
    );
    JButton button 
        = new JButton(localizationResources.getString("Set_palette..."));
    button.setActionCommand("PaletteChoice");
    button.addActionListener(this);
    palettePanel.add(this.currentPalette);
    palettePanel.add(button);

    other.add(localizationResources.getString("Palette"), palettePanel);

}
项目:group-five    文件:DefaultColorBarEditor.java   
/**
 * Creates a new edit panel for a color bar.
 *
 * @param colorBar  the color bar.
 */
public DefaultColorBarEditor(ColorBar colorBar) {
    super((NumberAxis) colorBar.getAxis());
    this.invertPalette = colorBar.getColorPalette().isInverse();
    this.stepPalette = colorBar.getColorPalette().isStepped();
    this.currentPalette = new PaletteSample(colorBar.getColorPalette());
    this.availablePaletteSamples = new PaletteSample[2];
    this.availablePaletteSamples[0]
        = new PaletteSample(new RainbowPalette());
    this.availablePaletteSamples[1]
        = new PaletteSample(new GreyPalette());

    JTabbedPane other = getOtherTabs();

    JPanel palettePanel = new JPanel(new LCBLayout(4));
    palettePanel.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));

    palettePanel.add(new JPanel());
    this.invertPaletteCheckBox = new JCheckBox(
        localizationResources.getString("Invert_Palette"),
        this.invertPalette
    );
    this.invertPaletteCheckBox.setActionCommand("invertPalette");
    this.invertPaletteCheckBox.addActionListener(this);
    palettePanel.add(this.invertPaletteCheckBox);
    palettePanel.add(new JPanel());

    palettePanel.add(new JPanel());
    this.stepPaletteCheckBox = new JCheckBox(
        localizationResources.getString("Step_Palette"),
        this.stepPalette
    );
    this.stepPaletteCheckBox.setActionCommand("stepPalette");
    this.stepPaletteCheckBox.addActionListener(this);
    palettePanel.add(this.stepPaletteCheckBox);
    palettePanel.add(new JPanel());

    palettePanel.add(
        new JLabel(localizationResources.getString("Palette"))
    );
    JButton button
        = new JButton(localizationResources.getString("Set_palette..."));
    button.setActionCommand("PaletteChoice");
    button.addActionListener(this);
    palettePanel.add(this.currentPalette);
    palettePanel.add(button);

    other.add(localizationResources.getString("Palette"), palettePanel);

}