| 1 2 3 package org.krysalis.jcharts.designer.tabs.allChart.items; 4 5 6 import java.awt.FlowLayout ; 7 8 import javax.swing.BorderFactory ; 9 import javax.swing.JPanel ; 10 11 import org.krysalis.jcharts.designer.common.LabelledCheckbox; 12 13 14 public class AntiAliasing extends JPanel  15 { 16 private LabelledCheckbox checkbox; 17 18 19 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 () ); 30 31 this.checkbox = new LabelledCheckbox( "Use:" ); 32 this.checkbox.setSelected( true ); 33 this.add( this.checkbox ); 34 } 35 36 37 41 public boolean useAntiAliasing() 42 { 43 return this.checkbox.isSelected(); 44 } 45 } 46 | Popular Tags |