Skip to content

Commit

Permalink
Document missing fields and remove unused import.
Browse files Browse the repository at this point in the history
  • Loading branch information
nikkiii committed Sep 30, 2014
1 parent 475fa8e commit f1a7cb8
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/main/java/org/nikkii/alertify4j/ui/AlertifyWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import java.awt.Cursor;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.event.MouseListener;
import java.awt.geom.RoundRectangle2D;
import java.util.concurrent.ScheduledFuture;
Expand All @@ -23,7 +22,14 @@
*/
public class AlertifyWindow extends JWindow {

/**
* The real window width.
*/
private int actualWidth;

/**
* The real window height.
*/
private int actualHeight;

/**
Expand Down Expand Up @@ -107,10 +113,20 @@ public void setCloseFuture(ScheduledFuture<?> closeFuture) {
}


/**
* Get the actual window width (bypass Component.getWidth()).
*
* @return The window width.
*/
public int getActualWidth() {
return actualWidth;
}

/**
* Get the actual window height (bypass Component.getHeight()).
*
* @return The window height.
*/
public int getActualHeight() {
return actualHeight;
}
Expand Down

0 comments on commit f1a7cb8

Please sign in to comment.