View Javadoc
1 package edu.psu.geovista.app.spreadsheet.functions; 2 3 import java.awt.*; 4 5 /* 6 * Description: represent selected area for function evaluation 7 * Date: Mar 25, 2003 8 * Time: 11:14:16 PM 9 * @author Jin Chen 10 */ 11 12 public class SelectionRange{ 13 public static final int SINGLE_ROW=1; 14 public static final int SINGLE_COLUMN=2; 15 //public static final int 16 private Point[] range; 17 private int type; 18 /*public SelectionRange() { 19 } */ 20 21 public SelectionRange(Point[] range, int type) { 22 this.range = range; 23 this.type = type; 24 } 25 26 public Point[] getRange() { 27 return range; 28 } 29 30 31 32 public int getType() { 33 return type; 34 } 35 public int getRowCount() { 36 int num=(int)(range[1].getX() -range[0].getX() ); 37 return Math.abs(num)+1; 38 } 39 public int getColumnCount() { 40 int num=(int)(range[1].getY() -range[0].getY() ); 41 return Math.abs(num)+1; 42 } 43 }

This page was automatically generated by Maven