| Modifier and Type | Class and Description |
|---|---|
| public static interface | Display.
Native PointerIcon handle. |
| Modifier and Type | Field and Description |
|---|---|
| public static final boolean | |
| protected static final boolean | |
| protected static final ArrayList | |
| protected static int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected static void | |
| public abstract int | Returns: number of references post operationThe 1st call will initiate native creation, since we follow the lazy creation pattern. |
| public abstract void | |
| public abstract Display. | createPointerIcon(final IOUtil.
single PNG resource for the pngResource,PointerIcon. Only the first entry of IOUtil. is used.pointer hotspot x-coord, origin is upper-left corner hotX, final int pointer hotspot y-coord, origin is upper-left corner hotY)Returns the newly created |
| public abstract Display. | createPointerIcon(final PixelRectangle
PixelRectangle source for the PointerIconpointer hotspot x-coord, origin is upper-left corner hotX, final int pointer hotspot y-coord, origin is upper-left corner hotY)Returns the newly created |
| public abstract void | |
| public abstract void | |
| public static void | |
| public boolean | equals(final Object
the reference object with which to compare. obj)Overrides java. getFQName() equals
|
| public static int | |
| public static Collection | |
| private static Display | getDisplayOfImpl(final String type, final String name, final int fromIndex, final int incr, final boolean shared)
|
| public abstract EDTUtil | |
| public static Display | getFirstDisplayOf(final String type, final String name, final int
start index, then increasing until found or end of list fromIndex, final boolean if true, only shared instances are found, otherwise also exclusive shared)
|
| public abstract String | |
| public abstract AbstractGraphicsDevice | getGraphicsDevice()
Return the |
| public abstract long | |
| public abstract int | |
| public static Display | getLastDisplayOf(final String type, final String name, final int
start index, then decreasing until found or end of list. -1 is interpreted as size - 1. fromIndex, final boolean if true, only shared instances are found, otherwise also exclusive shared)
|
| public abstract String | Returns: This display connection name as defined at creation time. The display connection name is a technical platform specific detail, seeAbstractGraphicsDevice#getConnection().
|
| public abstract boolean | getNativePointerIconForceDirectNIO()
Returns the native platform's direct NIO buffer requirement pointer-icon pixel data. |
| public abstract PixelFormat | getNativePointerIconPixelFormat()
Returns the native platform's |
| public abstract int | |
| public static String | |
| public abstract String | Returns: the native display type, iecom.
|
| public abstract int | |
| public static int | |
| public abstract boolean | |
| public abstract boolean | |
| public abstract boolean | Returns: true if the native display handle is valid and ready to operate, otherwise false.
|
| public abstract int | Returns: number of references post operationThe last call may destroy this instance,
if |
| public abstract EDTUtil | |
| public static String | |
| public static String | |
| public abstract boolean | Returns: true if EDT has been stopped (destroyed but running), otherwise false.Validate EDT running state. |
| DEBUG | back to summary |
|---|---|
| public static final boolean DEBUG | |
| DEBUG_POINTER_ICON | back to summary |
|---|---|
| protected static final boolean DEBUG_POINTER_ICON | |
| displayList | back to summary |
|---|---|
| protected static final ArrayList<WeakReference<Display>> displayList | |
| displaysActive | back to summary |
|---|---|
| protected static int displaysActive | |
| Display | back to summary |
|---|---|
| public Display() | |
| addDisplay2List | back to summary |
|---|---|
| protected static void addDisplay2List(final Display display) | |
| addReference | back to summary |
|---|---|
| public abstract int addReference() throws NativeWindowException The 1st call will initiate native creation, since we follow the lazy creation pattern.
| |
| createNative | back to summary |
|---|---|
| public abstract void createNative() throws NativeWindowException Manual trigger the native creation, if it is not done yet.
This method is usually invoke by
| |
| createPointerIcon | back to summary |
|---|---|
| public abstract Display. Returns the newly created
See
| |
| createPointerIcon | back to summary |
|---|---|
| public abstract Display. Returns the newly created
See
In case
| |
| destroy | back to summary |
|---|---|
| public abstract void destroy() Manually trigger the destruction, incl. native destruction.
This method is usually invoke by | |
| dispatchMessages | back to summary |
|---|---|
| public abstract void dispatchMessages() | |
| dumpDisplayList | back to summary |
|---|---|
| public static void dumpDisplayList(final String prefix) | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. return true if obj is of type Display and both FQN
| |
| getActiveDisplayNumber | back to summary |
|---|---|
| public static int getActiveDisplayNumber() | |
| getAllDisplays | back to summary |
|---|---|
| public static Collection Returns the global display collection | |
| getDisplayOfImpl | back to summary |
|---|---|
| private static Display getDisplayOfImpl(final String type, final String name, final int fromIndex, final int incr, final boolean shared) | |
| getEDTUtil | back to summary |
|---|---|
| public abstract EDTUtil getEDTUtil() | |
| getFirstDisplayOf | back to summary |
|---|---|
public static Display getFirstDisplayOf(final String type, final String name, final int fromIndex, final boolean shared)
| |
| getFQName | back to summary |
|---|---|
| public abstract String getFQName() | |
| getGraphicsDevice | back to summary |
|---|---|
| public abstract AbstractGraphicsDevice getGraphicsDevice() Return the | |
| getHandle | back to summary |
|---|---|
| public abstract long getHandle() Return the handle of the | |
| getId | back to summary |
|---|---|
public abstract int getId()
| |
| getLastDisplayOf | back to summary |
|---|---|
public static Display getLastDisplayOf(final String type, final String name, final int fromIndex, final boolean shared)
| |
| getName | back to summary |
|---|---|
public abstract String getName()
| |
| getNativePointerIconForceDirectNIO | back to summary |
|---|---|
| public abstract boolean getNativePointerIconForceDirectNIO() Returns the native platform's direct NIO buffer requirement pointer-icon pixel data.
Using this value will avoid conversion within | |
| getNativePointerIconPixelFormat | back to summary |
|---|---|
| public abstract PixelFormat getNativePointerIconPixelFormat() Returns the native platform's
Using this value will avoid conversion within Known native pixel formats are:
| |
| getReferenceCount | back to summary |
|---|---|
public abstract int getReferenceCount()
| |
| getThreadName | back to summary |
|---|---|
| public static String getThreadName() | |
| getType | back to summary |
|---|---|
public abstract String getType()
| |
| hashCode | back to summary |
|---|---|
| public abstract int hashCode() Overrides java. return precomputed hashCode from FQN
| |
| hashCodeNullSafe | back to summary |
|---|---|
| public static int hashCodeNullSafe(final Object o) | |
| isEDTRunning | back to summary |
|---|---|
public abstract boolean isEDTRunning()
| |
| isExclusive | back to summary |
|---|---|
| public abstract boolean isExclusive() Return true if this instance is exclusive, i.e. will not be shared. | |
| isNativeValid | back to summary |
|---|---|
public abstract boolean isNativeValid()
| |
| removeReference | back to summary |
|---|---|
| public abstract int removeReference() The last call may destroy this instance,
if
| |
| setEDTUtil | back to summary |
|---|---|
| public abstract EDTUtil setEDTUtil(EDTUtil usrEDTUtil) Sets a new
If
If a previous one exists and it differs from
If | |
| toHexString | back to summary |
|---|---|
| public static String toHexString(final int hex) | |
| toHexString | back to summary |
|---|---|
| public static String toHexString(final long hex) | |
| validateEDTStopped | back to summary |
|---|---|
| public abstract boolean validateEDTStopped() Validate EDT running state.
| |
Instances can be created via Display's
createPointerIcon(pngResource, .
or createPointerIcon(pixelrect, ..
Instance is destroy()'ed automatically if it's associated Display is destroyed.
Instance can be re-validated after destruction via validate().
PointerIcon must not be destroyed while in use!
PointerIcon may be destroyed manually after use,
i.e. when no Window uses them anymore.
However, this is not required.
PointerIcons can be used via Window#setPointerIcon(PointerIcon).
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Display | |
| public PointImmutable | |
| public int | getStride()
Redeclares com. |
| public int | hashCode()
Redeclares com.
|
| public boolean | isGLOriented()
Redeclares com. |
| public boolean | |
| public boolean |
| destroy | back to summary |
|---|---|
| public void destroy() Destroys this instance.
Will be called automatically if it's | |
| getDisplay | back to summary |
|---|---|
public Display getDisplay()
| |
| getHotspot | back to summary |
|---|---|
| public PointImmutable getHotspot() Returns the hotspot. | |
| getStride | back to summary |
|---|---|
| public int getStride() Redeclares com. Doc from com. Always neatly packed, i.e. width * bytes_per_pixel. Returns stride in byte-size, i.e. byte count from one line to the next.
Must be >=
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Redeclares com. Doc from com. Computes a hash code over:
The hashCode shall be computed only once with first call and stored for later retrieval to enhance performance.
Computes a hash code over:
The hashCode shall be computed only once with first call and stored for later retrieval to enhance performance.
| |
| isGLOriented | back to summary |
|---|---|
| public boolean isGLOriented() Redeclares com. Doc from com. Always false, i.e. origin is TOP-LEFT.
Returns | |
| isValid | back to summary |
|---|---|
| public boolean isValid() Returns true if valid, otherwise false.
A PointerIcon instance becomes invalid if it's | |
| validate | back to summary |
|---|---|
| public boolean validate() Returns true if instance
Validation, i.e. recreation, is required if instance became invalid, see | |