Package org.pushingpixels.lafwidget.ant
Class IconGhostingAugmenter
java.lang.Object
org.pushingpixels.lafwidget.ant.IconGhostingAugmenter
Augments the button UI classes with icon ghosting painting. Is based on
sample adapter from ASM distribution.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
Adapter for augmenting a single class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
augmentClass
(String dir, String name, String paintIconMethodName) Augments a single class with additional UI behaviour.static void
Test method.void
process
(String toStrip, File file, List<IconGhostingType> ids) Processes a single file or a directory, augmenting all relevant classes.void
setVerbose
(boolean isVerbose) Sets the verbosity.
-
Constructor Details
-
IconGhostingAugmenter
public IconGhostingAugmenter()
-
-
Method Details
-
augmentClass
Augments a single class with additional UI behaviour.- Parameters:
dir
- Root directory for the library that contains the class.name
- Fully-qualified class name.paintIconMethodName
- Method name.- Throws:
AugmentException
- If the augmentation process failed.
-
process
Processes a single file or a directory, augmenting all relevant classes.- Parameters:
toStrip
- The leading prefix to strip from the file names. Is used to create fully-qualified class name.file
- File resource (can point to a single file or to a directory).ids
- List of class-method pairs to augment.- Throws:
AugmentException
- If the augmentation process failed.
-
setVerbose
public void setVerbose(boolean isVerbose) Sets the verbosity.- Parameters:
isVerbose
- New value for augmentation process verbosity.
-
main
Test method.- Parameters:
args
-- Throws:
AugmentException
-