| Package | Description |
|---|---|
| org.carrot2.labs.smartsprites |
Data model classes and CSS sprite building.
|
| Modifier and Type | Field and Description |
|---|---|
SpriteImageDirective.SpriteImageLayout |
SpriteImageDirective.layout
Layout of this sprite image.
|
| Modifier and Type | Method and Description |
|---|---|
static SpriteImageDirective.SpriteImageLayout |
SpriteImageDirective.SpriteImageLayout.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SpriteImageDirective.SpriteImageLayout[] |
SpriteImageDirective.SpriteImageLayout.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
SpriteReferenceReplacement |
SpriteReferenceOccurrence.buildReplacement(SpriteImageDirective.SpriteImageLayout layout,
int offset)
Returns the
SpriteReferenceReplacement corresponding to the occurrence,
taking into account the layout the the enclosing sprite and the offset at which the
individual image was rendered. |
int |
SpriteReferenceOccurrence.getRequiredHeight(BufferedImage image,
SpriteImageDirective.SpriteImageLayout layout)
Computes the minimum height the individual image will need when rendering.
|
int |
SpriteReferenceOccurrence.getRequiredWidth(BufferedImage image,
SpriteImageDirective.SpriteImageLayout layout)
Computes the minimum width the individual image will need when rendering.
|
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. |
BufferedImage |
SpriteReferenceOccurrence.render(BufferedImage image,
SpriteImageDirective.SpriteImageLayout layout,
int dimension)
Renders the individual image, including margins and repeats if any.
|
| Constructor and Description |
|---|
SpriteImageDirective(String id,
String imageUrl,
SpriteImageDirective.SpriteImageLayout layout,
SpriteImageDirective.SpriteImageFormat format,
SpriteImageDirective.Ie6Mode ie6Mode,
Color matteColor,
SpriteImageDirective.SpriteUidType uidType,
float scale) |
SpriteImageDirective(String id,
String imageUrl,
SpriteImageDirective.SpriteImageLayout layout,
SpriteImageDirective.SpriteImageFormat format,
SpriteImageDirective.Ie6Mode ie6Mode,
Color matteColor,
SpriteImageDirective.SpriteUidType uidType,
float scale,
SpriteLayoutProperties spriteLayoutProperties) |
Copyright © 2013 Carrot Search s.c.. All Rights Reserved.