1 18 package org.apache.batik.gvt.event; 19 20 import java.awt.Shape ; 21 22 29 public class SelectionEvent { 30 31 35 public static final int SELECTION_CHANGED = 1; 36 37 40 public static final int SELECTION_CLEARED = 3; 41 42 45 public static final int SELECTION_STARTED = 4; 46 47 51 public static final int SELECTION_DONE = 2; 52 53 54 protected Shape highlightShape; 55 56 57 protected Object selection; 58 59 60 protected int id; 61 62 68 public SelectionEvent(Object selection, int id, Shape highlightShape ) { 69 this.id = id; 70 this.selection = selection; 71 this.highlightShape = highlightShape; 72 } 73 74 77 public Shape getHighlightShape() { 78 return highlightShape; 79 } 80 81 85 public Object getSelection() { 86 return selection; 87 } 88 89 95 public int getID() { 96 return id; 97 } 98 } 99 | Popular Tags |