1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 package org.primefaces.extensions.event;
23
24 import javax.faces.component.UIComponent;
25 import javax.faces.component.behavior.Behavior;
26
27 import org.primefaces.event.AbstractAjaxBehaviorEvent;
28
29
30
31
32
33
34
35
36 public class ImageAreaSelectEvent extends AbstractAjaxBehaviorEvent {
37
38 private static final long serialVersionUID = 1L;
39
40 private final int height;
41 private final int width;
42 private final int x1;
43 private final int x2;
44 private final int y1;
45 private final int y2;
46 private final int imgHeight;
47 private final int imgWidth;
48 private final String imgSrc;
49
50 public ImageAreaSelectEvent(final UIComponent component, final Behavior behavior, final int height, final int width,
51 final int x1, final int x2, final int y1, final int y2, final int imgHeight, final int imgWidth,
52 final String imgSrc) {
53 super(component, behavior);
54 this.x1 = x1;
55 this.x2 = x2;
56 this.y1 = y1;
57 this.y2 = y2;
58 this.height = height;
59 this.width = width;
60 this.imgHeight = imgHeight;
61 this.imgWidth = imgWidth;
62 this.imgSrc = imgSrc;
63 }
64
65 public final int getHeight() {
66 return height;
67 }
68
69 public final int getWidth() {
70 return width;
71 }
72
73 public final int getX1() {
74 return x1;
75 }
76
77 public final int getX2() {
78 return x2;
79 }
80
81 public final int getY1() {
82 return y1;
83 }
84
85 public final int getY2() {
86 return y2;
87 }
88
89 public final int getImgHeight() {
90 return imgHeight;
91 }
92
93 public final int getImgWidth() {
94 return imgWidth;
95 }
96
97 public final String getImgSrc() {
98 return imgSrc;
99 }
100 }