89 * origin of the coordinate system used to calculate the position of the
90 * security warning. The values must be in the range [0.0f...1.0f]. The
91 * {@code 0.0f} value represents the left (top) edge of the rectangular
92 * bounds of the window. The {@code 1.0f} value represents the right
93 * (bottom) edge of the bounds. Whenever the size of the window changes,
94 * the origin of the coordinate system gets relocated accordingly. For
95 * convenience a developer may use the {@code Component.*_ALIGNMENT}
96 * constants to pass predefined values for these arguments.
97 * <p>
98 * The {@code point} argument specifies the location of the security
99 * warning in the coordinate system described above. If both {@code x} and
100 * {@code y} coordinates of the point are equal to zero, the warning will
101 * be located right in the origin of the coordinate system. On the other
102 * hand, if both {@code alignmentX} and {@code alignmentY} are equal to
103 * zero (i.e. the origin of the coordinate system is placed at the top-left
104 * corner of the window), then the {@code point} argument represents the
105 * absolute location of the security warning relative to the location of
106 * the window. The "absolute" in this case means that the position of the
107 * security warning is not effected by resizing of the window.
108 * <p>
109 * Note that the security warning managment code guarantees that:
110 * <ul>
111 * <li>The security warning cannot be located farther than two pixels from
112 * the rectangular bounds of the window (see {@link Window#getBounds}), and
113 * <li>The security warning is always visible on the screen.
114 * </ul>
115 * If either of the conditions is violated, the calculated position of the
116 * security warning is adjusted by the system to meet both these
117 * conditions.
118 * <p>
119 * The default position of the security warning is in the upper-right
120 * corner of the window, two pixels to the right from the right edge. This
121 * corresponds to the following arguments passed to this method:
122 * <ul>
123 * <li>{@code alignmentX = Component.RIGHT_ALIGNMENT}
124 * <li>{@code alignmentY = Component.TOP_ALIGNMENT}
125 * <li>{@code point = (2, 0)}
126 * </ul>
127 *
128 * @param window the window to set the position of the security warning for
129 * @param alignmentX the horizontal origin of the coordinate system
|
89 * origin of the coordinate system used to calculate the position of the
90 * security warning. The values must be in the range [0.0f...1.0f]. The
91 * {@code 0.0f} value represents the left (top) edge of the rectangular
92 * bounds of the window. The {@code 1.0f} value represents the right
93 * (bottom) edge of the bounds. Whenever the size of the window changes,
94 * the origin of the coordinate system gets relocated accordingly. For
95 * convenience a developer may use the {@code Component.*_ALIGNMENT}
96 * constants to pass predefined values for these arguments.
97 * <p>
98 * The {@code point} argument specifies the location of the security
99 * warning in the coordinate system described above. If both {@code x} and
100 * {@code y} coordinates of the point are equal to zero, the warning will
101 * be located right in the origin of the coordinate system. On the other
102 * hand, if both {@code alignmentX} and {@code alignmentY} are equal to
103 * zero (i.e. the origin of the coordinate system is placed at the top-left
104 * corner of the window), then the {@code point} argument represents the
105 * absolute location of the security warning relative to the location of
106 * the window. The "absolute" in this case means that the position of the
107 * security warning is not effected by resizing of the window.
108 * <p>
109 * Note that the security warning management code guarantees that:
110 * <ul>
111 * <li>The security warning cannot be located farther than two pixels from
112 * the rectangular bounds of the window (see {@link Window#getBounds}), and
113 * <li>The security warning is always visible on the screen.
114 * </ul>
115 * If either of the conditions is violated, the calculated position of the
116 * security warning is adjusted by the system to meet both these
117 * conditions.
118 * <p>
119 * The default position of the security warning is in the upper-right
120 * corner of the window, two pixels to the right from the right edge. This
121 * corresponds to the following arguments passed to this method:
122 * <ul>
123 * <li>{@code alignmentX = Component.RIGHT_ALIGNMENT}
124 * <li>{@code alignmentY = Component.TOP_ALIGNMENT}
125 * <li>{@code point = (2, 0)}
126 * </ul>
127 *
128 * @param window the window to set the position of the security warning for
129 * @param alignmentX the horizontal origin of the coordinate system
|