KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > krysalis > jcharts > designer > tabs > allChart > items > AntiAliasing


1
2
3 package org.krysalis.jcharts.designer.tabs.allChart.items;
4
5
6 import java.awt.FlowLayout JavaDoc;
7
8 import javax.swing.BorderFactory JavaDoc;
9 import javax.swing.JPanel JavaDoc;
10
11 import org.krysalis.jcharts.designer.common.LabelledCheckbox;
12
13
14 public class AntiAliasing extends JPanel JavaDoc
15 {
16     private LabelledCheckbox checkbox;
17
18
19     /***********************************************************************************
20      *
21      **********************************************************************************/

22     public AntiAliasing()
23     {
24         super();
25
26         super.setBorder( BorderFactory.createCompoundBorder( BorderFactory.createTitledBorder( "Anti Aliasing" ),
27                                                                               BorderFactory.createEmptyBorder( 5, 5, 5, 5 ) ) );
28
29         this.setLayout( new FlowLayout JavaDoc() );
30
31         this.checkbox = new LabelledCheckbox( "Use:" );
32         this.checkbox.setSelected( true );
33         this.add( this.checkbox );
34     }
35
36
37     /*********************************************************************************
38      *
39      * @return boolean
40      ********************************************************************************/

41     public boolean useAntiAliasing()
42     {
43         return this.checkbox.isSelected();
44     }
45 }
46
Popular Tags