01: package org.krysalis.jcharts.designer.tabs.allChart.items;
02:
03: import java.awt.FlowLayout;
04:
05: import javax.swing.BorderFactory;
06: import javax.swing.JPanel;
07:
08: import org.krysalis.jcharts.designer.common.LabelledCheckbox;
09:
10: public class AntiAliasing extends JPanel {
11: private LabelledCheckbox checkbox;
12:
13: /***********************************************************************************
14: *
15: **********************************************************************************/
16: public AntiAliasing() {
17: super ();
18:
19: super .setBorder(BorderFactory.createCompoundBorder(
20: BorderFactory.createTitledBorder("Anti Aliasing"),
21: BorderFactory.createEmptyBorder(5, 5, 5, 5)));
22:
23: this .setLayout(new FlowLayout());
24:
25: this .checkbox = new LabelledCheckbox("Use:");
26: this .checkbox.setSelected(true);
27: this .add(this .checkbox);
28: }
29:
30: /*********************************************************************************
31: *
32: * @return boolean
33: ********************************************************************************/
34: public boolean useAntiAliasing() {
35: return this.checkbox.isSelected();
36: }
37: }
|