| Package | Description |
|---|---|
| org.carrot2.labs.smartsprites |
Data model classes and CSS sprite building.
|
| org.carrot2.labs.smartsprites.css |
SmartSprites Ant task.
|
| org.carrot2.labs.smartsprites.resource |
Resource abstraction utilities.
|
| Modifier and Type | Method and Description |
|---|---|
static SpriteReferenceDirective |
SpriteReferenceDirective.parse(String directiveString,
Map<String,SpriteImageDirective> spriteImages,
MessageLog messageCollector)
Parses a
SpriteReferenceDirective from the provided String, logging
messages to the provided MessageLog. |
static SpriteImageDirective |
SpriteImageDirective.parse(String directiveString,
MessageLog messageCollector)
Parses a string into a
SpriteImageDirective, logging messages to the
provided MessageLogs. |
static SpriteLayoutProperties |
SpriteLayoutProperties.parse(String directiveString,
SpriteImageDirective.SpriteImageLayout spriteImageLayout,
MessageLog messageCollector)
Parses a
SpriteLayoutProperties from the provided String logging
messages to the provided MessageLog. |
static SpriteLayoutProperties |
SpriteLayoutProperties.parse(String directiveString,
SpriteImageDirective.SpriteImageLayout spriteImageLayout,
SpriteLayoutProperties defaults,
MessageLog messageCollector)
Parses a
SpriteLayoutProperties from the provided String, using the
provided defaults and logging messages to the provided MessageLog. |
boolean |
SmartSpritesParameters.validate(MessageLog log)
Validates the provided parameters.
|
| Constructor and Description |
|---|
SpriteBuilder(SmartSpritesParameters parameters,
MessageLog messageLog)
Creates a
SpriteBuilder with the provided parameters and log. |
SpriteBuilder(SmartSpritesParameters parameters,
MessageLog messageLog,
ResourceHandler resourceHandler)
Creates a
SpriteBuilder with the provided parameters and log. |
| Modifier and Type | Method and Description |
|---|---|
static List<CssProperty> |
CssSyntaxUtils.extractRules(String text,
MessageLog messageLog)
Extracts CSS properties from the provided
String and logs warnings to the
provided MessageLog. |
static Color |
CssSyntaxUtils.parseColor(String colorValue,
MessageLog messageLog,
Color defaultColor)
Parses a hexadecimal format (#fff or #ffffff) of CSS color into a
Color
object. |
static String |
CssSyntaxUtils.unpackUrl(String urlValue,
MessageLog messageLog)
Extracts the actual url from the CSS url expression like
url('actua_url') and logs
warnings to the provided MessageLog. |
| Constructor and Description |
|---|
FileSystemResourceHandler(String documentRootDirPath,
String charset,
MessageLog messageLog)
Creates a new
FileSystemResourceHandler. |
Copyright © 2013 Carrot Search s.c.. All Rights Reserved.