public final class SmartSpritesParameters extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SmartSpritesParameters.PngDepth |
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CSS_FILE_ENCODING
By default, we'll assume CSS files are UTF-8 encoded
|
static String |
DEFAULT_CSS_FILE_SUFFIX
The default suffix to be added to the generated CSS files.
|
static Message.MessageLevel |
DEFAULT_LOGGING_LEVEL
The default logging level.
|
static SmartSpritesParameters.PngDepth |
DEFAULT_SPRITE_PNG_DEPTH
By default, we use full color only when necessary
|
static boolean |
DEFAULT_SPRITE_PNG_IE6
By default, we don't generate separate sprites for IE6
|
| Constructor and Description |
|---|
SmartSpritesParameters()
Creates the parameters with default options and null root dir, before root dir is
set, the parameters are invalid.
|
SmartSpritesParameters(String rootDir)
Creates the parameters with most default values.
|
SmartSpritesParameters(String rootDir,
List<String> cssFiles,
String outputDir,
String documentRootDir,
Message.MessageLevel logLevel,
String cssFileSuffix,
SmartSpritesParameters.PngDepth spritePngDepth,
boolean spritePngIe6,
String cssEncoding)
Creates the parameters.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCssFileEncoding() |
List<String> |
getCssFiles() |
String |
getCssFileSuffix() |
String |
getDocumentRootDir() |
Message.MessageLevel |
getLogLevel() |
String |
getOutputDir() |
String |
getRootDir() |
File |
getRootDirFile() |
SmartSpritesParameters.PngDepth |
getSpritePngDepth() |
boolean |
hasCssFiles() |
boolean |
hasDocumentRootDir() |
boolean |
hasOutputDir() |
boolean |
hasRootDir() |
boolean |
isSpritePngIe6() |
boolean |
validate(MessageLog log)
Validates the provided parameters.
|
public static final String DEFAULT_CSS_FILE_SUFFIX
public static final SmartSpritesParameters.PngDepth DEFAULT_SPRITE_PNG_DEPTH
public static final boolean DEFAULT_SPRITE_PNG_IE6
public static final String DEFAULT_CSS_FILE_ENCODING
public static final Message.MessageLevel DEFAULT_LOGGING_LEVEL
public SmartSpritesParameters()
public SmartSpritesParameters(String rootDir)
public SmartSpritesParameters(String rootDir, List<String> cssFiles, String outputDir, String documentRootDir, Message.MessageLevel logLevel, String cssFileSuffix, SmartSpritesParameters.PngDepth spritePngDepth, boolean spritePngIe6, String cssEncoding)
public boolean validate(MessageLog log)
true if the parameters are validpublic String getRootDir()
public File getRootDirFile() throws IOException
IOExceptionpublic boolean hasRootDir()
public boolean hasCssFiles()
public String getOutputDir()
public boolean hasOutputDir()
public String getDocumentRootDir()
public boolean hasDocumentRootDir()
public Message.MessageLevel getLogLevel()
public String getCssFileSuffix()
public SmartSpritesParameters.PngDepth getSpritePngDepth()
public boolean isSpritePngIe6()
public String getCssFileEncoding()
Copyright © 2013 Carrot Search s.c.. All Rights Reserved.