1 39 40 package org.krysalis.jcharts.types; 41 42 43 47 public class ChartType extends IntType 48 { 49 public static final ChartType BAR=new ChartType( 0, false ); 50 public static final ChartType BAR_CLUSTERED=new ChartType( 1, false ); 51 public static final ChartType BAR_STACKED=new ChartType( 2, true ); 52 public static final ChartType LINE=new ChartType( 3, false ); 53 public static final ChartType POINT=new ChartType( 4, false ); 54 public static final ChartType AREA=new ChartType( 5, false ); 55 public static final ChartType AREA_STACKED=new ChartType( 6, true ); 56 public static final ChartType STOCK=new ChartType( 7, false ); 57 public static final ChartType SCATTER_PLOT=new ChartType( 8, false ); 58 59 60 private boolean stackedData; 61 62 63 68 private ChartType( int typeCode, boolean stackedData ) 69 { 70 super( typeCode ); 71 72 this.stackedData=stackedData; 73 } 74 75 76 81 public boolean isStacked() 82 { 83 return this.stackedData; 84 } 85 86 87 93 public boolean equals( ChartType chartType ) 94 { 95 return ( this.getInt() == chartType.getInt() ); 96 } 97 98 } 99 | Popular Tags |