|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jniwrapper.Parameter
com.jniwrapper.Pointer.Void
com.jniwrapper.win32.Handle
com.jniwrapper.win32.gdi.GdiObject
com.jniwrapper.win32.gdi.Icon
com.jniwrapper.win32.shell.ShellIcon
This class provides functionality for extracting icons for file associations.
Nested Class Summary |
Nested classes inherited from class com.jniwrapper.win32.gdi.Icon |
Icon.IconType, Icon.SystemIcon |
Nested classes inherited from class com.jniwrapper.win32.gdi.GdiObject |
GdiObject.ImageLoadParameters, GdiObject.ImageType, GdiObject.Type |
Field Summary |
Fields inherited from class com.jniwrapper.win32.gdi.GdiObject |
GDI_ERROR, HGDI_ERROR |
Fields inherited from class com.jniwrapper.win32.Handle |
INFINITE_TIMEOUT, INVALID_HANDLE_VALUE, STATUS_ABANDONED_WAIT_0, STATUS_TIMEOUT, STATUS_WAIT_0 |
Fields inherited from class com.jniwrapper.Parameter |
LICENSE_TYPE, V |
Constructor Summary | |
ShellIcon(java.io.File iconPath)
Extracts an associated icon found in a file or an icon found in an associated executable file. |
|
ShellIcon(java.io.File file,
int iconIndex)
Retrieves an icon from the specified executable file. |
|
ShellIcon(java.io.File file,
int iconIndex,
Icon.IconType iconType)
|
|
ShellIcon(java.lang.String iconPath)
Extracts a small associated icon. |
Method Summary | |
int |
getIndex()
Returns the index of the extracted icon. |
Methods inherited from class com.jniwrapper.win32.gdi.Icon |
getBitCount, getIconInfo, getSize, load, load, load, load, load, loadFromStream, toImage, update |
Methods inherited from class com.jniwrapper.win32.gdi.GdiObject |
deleteObject, getObject, getObjectType |
Methods inherited from class com.jniwrapper.win32.Handle |
clone, closeHandle, equals, waitFor, waitFor |
Methods inherited from class com.jniwrapper.Pointer.Void |
asFunction, asFunction, asTypedPointer, castTo, getDebugInfo, getLength, getValue, hashCode, isNull, read, setValue, toString, write |
Methods inherited from class com.jniwrapper.Parameter |
|
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ShellIcon(java.io.File file, int iconIndex)
file
- is a file name to extract the icon from.iconIndex
- a zero-based index of the icon to retrieve.public ShellIcon(java.io.File file, int iconIndex, Icon.IconType iconType)
public ShellIcon(java.io.File iconPath)
iconPath
- a full path that contains the icon.public ShellIcon(java.lang.String iconPath)
iconPath
- a full path that contains the icon.Method Detail |
public int getIndex()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |