public class DefaultCursorService extends AbstractThemeService<CursorTheme> implements CursorService
CursorService. Four image types are
supported. PNG, GIF, XPM and SVG.
Icon locations are also cached in memory, keyed on
[iconName]_[preferredSize]. Use #clearCache() to remove all cached
locations.
bases, basesList| Constructor and Description |
|---|
DefaultCursorService() |
| Modifier and Type | Method and Description |
|---|---|
File |
findIcon(String name)
Find the cursor icon.
|
Collection<CursorTheme> |
getEntities(org.apache.commons.vfs2.FileObject base)
Get a collection of all available entities in the specified base directory.
|
protected Collection<CursorTheme> |
scanBase(org.apache.commons.vfs2.FileObject base) |
getSelectedTheme, setSelectedThemeaddBase, checkAndAddBase, checkAndAddBase, getAllEntities, getBases, getBasesInReverse, getEntity, listDirs, removeBaseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSelectedTheme, setSelectedThemeaddBase, getAllEntities, getBases, getEntity, removeBasepublic File findIcon(String name) throws IOException
CursorServiceCursorService for a complete description of the search
algorithm. null will only be returned if no matching
icon can be found.findIcon in interface CursorServicename - name of iconIOExceptionpublic Collection<CursorTheme> getEntities(org.apache.commons.vfs2.FileObject base)
FreedesktopServicegetEntities in interface FreedesktopService<CursorTheme>getEntities in class AbstractFreedesktopService<CursorTheme>base - base directoryprotected Collection<CursorTheme> scanBase(org.apache.commons.vfs2.FileObject base) throws IOException
scanBase in class AbstractFreedesktopService<CursorTheme>IOExceptionCopyright © 2016. All rights reserved.