Updated property docs. Removed 'final' modifier from property
This commit is contained in:
parent
6dd51c0ef7
commit
2a6a95e052
|
@ -15,22 +15,19 @@
|
||||||
*/
|
*/
|
||||||
package dorkbox.notify;
|
package dorkbox.notify;
|
||||||
|
|
||||||
import dorkbox.util.ActionHandlerLong;
|
import java.awt.BasicStroke;
|
||||||
import dorkbox.util.OS;
|
import java.awt.Color;
|
||||||
import dorkbox.util.Property;
|
import java.awt.Font;
|
||||||
import dorkbox.util.ScreenUtil;
|
import java.awt.Graphics;
|
||||||
import dorkbox.util.SwingUtil;
|
import java.awt.Graphics2D;
|
||||||
import dorkbox.util.swing.SwingActiveRender;
|
import java.awt.GraphicsDevice;
|
||||||
import dorkbox.tweenengine.BaseTween;
|
import java.awt.GraphicsEnvironment;
|
||||||
import dorkbox.tweenengine.Tween;
|
import java.awt.Image;
|
||||||
import dorkbox.tweenengine.TweenCallback;
|
import java.awt.MouseInfo;
|
||||||
import dorkbox.tweenengine.TweenEquations;
|
import java.awt.Point;
|
||||||
import dorkbox.tweenengine.TweenManager;
|
import java.awt.Rectangle;
|
||||||
|
import java.awt.Stroke;
|
||||||
import javax.swing.ImageIcon;
|
import java.awt.Toolkit;
|
||||||
import javax.swing.JFrame;
|
|
||||||
import javax.swing.JLabel;
|
|
||||||
import java.awt.*;
|
|
||||||
import java.awt.event.MouseAdapter;
|
import java.awt.event.MouseAdapter;
|
||||||
import java.awt.event.WindowAdapter;
|
import java.awt.event.WindowAdapter;
|
||||||
import java.awt.event.WindowEvent;
|
import java.awt.event.WindowEvent;
|
||||||
|
@ -40,6 +37,22 @@ import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
|
import javax.swing.ImageIcon;
|
||||||
|
import javax.swing.JFrame;
|
||||||
|
import javax.swing.JLabel;
|
||||||
|
|
||||||
|
import dorkbox.tweenengine.BaseTween;
|
||||||
|
import dorkbox.tweenengine.Tween;
|
||||||
|
import dorkbox.tweenengine.TweenCallback;
|
||||||
|
import dorkbox.tweenengine.TweenEquations;
|
||||||
|
import dorkbox.tweenengine.TweenManager;
|
||||||
|
import dorkbox.util.ActionHandlerLong;
|
||||||
|
import dorkbox.util.OS;
|
||||||
|
import dorkbox.util.Property;
|
||||||
|
import dorkbox.util.ScreenUtil;
|
||||||
|
import dorkbox.util.SwingUtil;
|
||||||
|
import dorkbox.util.swing.SwingActiveRender;
|
||||||
|
|
||||||
// we can't use regular popup, because if we have no owner, it won't work!
|
// we can't use regular popup, because if we have no owner, it won't work!
|
||||||
// instead, we just create a JFrame and use it to hold our content
|
// instead, we just create a JFrame and use it to hold our content
|
||||||
@SuppressWarnings({"Duplicates", "FieldCanBeLocal"})
|
@SuppressWarnings({"Duplicates", "FieldCanBeLocal"})
|
||||||
|
@ -48,16 +61,16 @@ class NotifyPopup extends JFrame {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@Property
|
@Property
|
||||||
/** title font used by Notify */
|
/** This is the title font used by a notification. */
|
||||||
public static String TITLE_TEXT_FONT = "Source Code Pro BOLD 16";
|
public static String TITLE_TEXT_FONT = "Source Code Pro BOLD 16";
|
||||||
|
|
||||||
@Property
|
@Property
|
||||||
/** main text font used by Notify */
|
/** This is the main text font used by a notification. */
|
||||||
public static String MAIN_TEXT_FONT = "Source Code Pro BOLD 12";
|
public static String MAIN_TEXT_FONT = "Source Code Pro BOLD 12";
|
||||||
|
|
||||||
@Property
|
@Property
|
||||||
/** How long we want it to take for the popups to relocate when one is closed */
|
/** How long we want it to take for the popups to relocate when one is closed */
|
||||||
public static final float MOVE_DURATION = 1.0F;
|
public static float MOVE_DURATION = 1.0F;
|
||||||
|
|
||||||
private static final int padding = 40;
|
private static final int padding = 40;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user