Package org.pushingpixels.lafwidget.ant
Class ContainerGhostingAugmenter
- java.lang.Object
-
- org.pushingpixels.lafwidget.ant.ContainerGhostingAugmenter
-
public class ContainerGhostingAugmenter extends Object
Augments the UI classes with ghosting painting. Is based on sample adapter from ASM distribution.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
ContainerGhostingAugmenter.AugmentClassAdapter
Adapter for augmenting a single class.
-
Constructor Summary
Constructors Constructor Description ContainerGhostingAugmenter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
augmentClass(String dir, String name, boolean toInjectAfterOriginal)
Augments a single class with image ghosting UI behaviour.static void
main(String[] args)
Test method.void
process(String toStrip, File file, List<ContainerGhostingType> ids)
Processes a single file or a directory, augmenting all relevant classes.void
setVerbose(boolean isVerbose)
Sets the verbosity.
-
-
-
Method Detail
-
augmentClass
protected void augmentClass(String dir, String name, boolean toInjectAfterOriginal)
Augments a single class with image ghosting UI behaviour.- Parameters:
dir
- Root directory for the library that contains the class.name
- Fully-qualified class name.toInjectAfterOriginal
-true
if the code needs to be injected after the call to the original implementation.- Throws:
AugmentException
- If the augmentation process failed.
-
process
public void process(String toStrip, File file, List<ContainerGhostingType> ids) throws AugmentException
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
public static void main(String[] args) throws AugmentException
Test method.- Parameters:
args
-- Throws:
AugmentException
-
-