/*
 * #%L
 * fujion
 * %%
 * Copyright (C) 2008 - 2017 Regenstrief Institute, Inc.
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * #L%
 */
package org.fujion.event;

import org.fujion.annotation.EventType;
import org.fujion.annotation.EventType.EventParameter;
import org.fujion.component.BaseComponent;

/**
 * A resize event.
 */
@EventType(ResizeEvent.TYPE)
public class ResizeEvent extends Event {

    /**
     * The event type.
     */
    public static final String TYPE = "resize";

    @EventParameter
    private double height;

    @EventParameter
    private double width;

    @EventParameter
    private double top;

    @EventParameter
    private double bottom;

    public ResizeEvent() {
        super(TYPE);
    }

    public ResizeEvent(BaseComponent target, Object data) {
        super(TYPE, target, data);
    }

    /**
     * Returns the new height in pixels.
     *
     * @return The new height in pixels.
     */
    public double getHeight() {
        return height;
    }

    /**
     * Returns the new width in pixels.
     *
     * @return The new width in pixels.
     */
    public double getWidth() {
        return width;
    }

    /**
     * Returns the new top position in pixels.
     *
     * @return The new top position in pixels.
     */
    public double getTop() {
        return top;
    }

    /**
     * Returns the new bottom position in pixels.
     *
     * @return The new bottom position in pixels.
     */
    public double getBottom() {
        return bottom;
    }

}

@@ -915,16 +915,20 @@
 Event %7B%0A
+    
 %0A    /**
@@ -1007,16 +1007,20 @@
 esize%22;%0A
+    
 %0A    @Ev
@@ -1059,16 +1059,20 @@
 height;%0A
+    
 %0A    @Ev
@@ -1110,16 +1110,20 @@
  width;%0A
+    
 %0A    @Ev
@@ -1159,16 +1159,20 @@
 le top;%0A
+    
 %0A    @Ev
@@ -1203,24 +1203,26 @@
  double 
-bottom;%0A
+left;%0A    
 %0A    pub
@@ -1264,24 +1264,28 @@
 YPE);%0A    %7D%0A
+    
 %0A    public 
@@ -1366,32 +1366,36 @@
 t, data);%0A    %7D%0A
+    
 %0A    /**%0A     * 
@@ -1537,32 +1537,36 @@
 n height;%0A    %7D%0A
+    
 %0A    /**%0A     * 
@@ -1704,32 +1704,36 @@
 rn width;%0A    %7D%0A
+    
 %0A    /**%0A     * 
@@ -1889,16 +1889,20 @@
 ;%0A    %7D%0A
+    
 %0A    /**
@@ -1921,30 +1921,28 @@
 rns the new 
-bottom
+left
  position in
@@ -1980,22 +1980,20 @@
 The new 
-bottom
+left
  positio
@@ -2038,14 +2038,12 @@
  get
-Bottom
+Left
 () %7B
@@ -2062,21 +2062,19 @@
 urn 
-bottom
+left
 ;%0A    %7D%0A
 %0A%7D%0A
@@ -2070,11 +2070,15 @@
 ;%0A    %7D%0A
+    
 %0A%7D%0A

Fix incorrect property for ResizeEvent.