Modifier and Type | Interface and Description |
---|---|
interface |
ImageGenerator<P extends ParameterProvider<?>>
The entry point for generating images.
|
Modifier and Type | Method and Description |
---|---|
ParameterProvider<PT> |
ParameterProviderFactory.newParameterProviderFor(E environment)
Instantiates a new ParameterProvider for the given environment.
|
Modifier and Type | Method and Description |
---|---|
OutputFormat |
DefaultImageGenerator.getOutputFormat(ParameterProvider<javax.jcr.Node> params) |
void |
ImageStreamer.serveImage(ImageGenerator<ParameterProvider<P>> generator,
ParameterProvider<P> params,
OutputStream out)
Generates an image (if deemed necessary) with the given ImageGenerator and Parameters, streams it to
the given OutputStream.
|
void |
DefaultImageStreamer.serveImage(ImageGenerator<ParameterProvider<P>> generator,
ParameterProvider<P> params,
OutputStream out) |
Modifier and Type | Method and Description |
---|---|
void |
ImageStreamer.serveImage(ImageGenerator<ParameterProvider<P>> generator,
ParameterProvider<P> params,
OutputStream out)
Generates an image (if deemed necessary) with the given ImageGenerator and Parameters, streams it to
the given OutputStream.
|
void |
DefaultImageStreamer.serveImage(ImageGenerator<ParameterProvider<P>> generator,
ParameterProvider<P> params,
OutputStream out) |
Modifier and Type | Method and Description |
---|---|
protected info.magnolia.cms.core.NodeData |
CachingImageStreamer.fetchFromCache(ImageGenerator<ParameterProvider<P>> generator,
ParameterProvider<P> parameterProvider)
Gets the binary property (NodeData) for the appropriate image, ready to be served,
or null if the image should be regenerated.
|
protected info.magnolia.cms.core.NodeData |
CachingImageStreamer.generateAndStore(ImageGenerator<ParameterProvider<P>> generator,
ParameterProvider<P> parameterProvider) |
String |
NullCachingStrategy.getCachePath(ImageGenerator<ParameterProvider<P>> parameterProviderImageGenerator,
ParameterProvider<P> parameterProvider) |
String |
CachingStrategy.getCachePath(ImageGenerator<ParameterProvider<P>> generator,
ParameterProvider<P> parameterProvider)
Returns a unique path pertinent to the given generator and parameter to use for storing
the generated image.
|
String |
AbstractNodeBasedCachingStrategy.getCachePath(ImageGenerator<ParameterProvider<P>> generator,
ParameterProvider<P> parameterProvider) |
String |
AbstractContentBasedCachingStrategy.getCachePath(ImageGenerator<ParameterProvider<P>> generator,
ParameterProvider<P> parameterProvider)
Deprecated.
|
void |
CachingImageStreamer.serveImage(ImageGenerator<ParameterProvider<P>> generator,
ParameterProvider<P> params,
OutputStream out) |
boolean |
NullCachingStrategy.shouldRegenerate(info.magnolia.cms.core.NodeData cachedBinary,
ParameterProvider<P> parameterProvider) |
boolean |
CachingStrategy.shouldRegenerate(info.magnolia.cms.core.NodeData cachedBinary,
ParameterProvider<P> parameterProvider)
Given the currently cached generated image, determine if CachingImageStreamer should
regenerate the image.
|
boolean |
AbstractNodeBasedCachingStrategy.shouldRegenerate(info.magnolia.cms.core.NodeData cachedBinary,
ParameterProvider<P> parameterProvider)
The default implementation simply delegates this decision to ParameterProvider.
|
boolean |
AbstractContentBasedCachingStrategy.shouldRegenerate(info.magnolia.cms.core.NodeData cachedBinary,
ParameterProvider<P> parameterProvider)
Deprecated.
The default implementation simply delegates this decision to ParameterProvider.
|
Modifier and Type | Method and Description |
---|---|
protected info.magnolia.cms.core.NodeData |
CachingImageStreamer.fetchFromCache(ImageGenerator<ParameterProvider<P>> generator,
ParameterProvider<P> parameterProvider)
Gets the binary property (NodeData) for the appropriate image, ready to be served,
or null if the image should be regenerated.
|
protected info.magnolia.cms.core.NodeData |
CachingImageStreamer.generateAndStore(ImageGenerator<ParameterProvider<P>> generator,
ParameterProvider<P> parameterProvider) |
String |
NullCachingStrategy.getCachePath(ImageGenerator<ParameterProvider<P>> parameterProviderImageGenerator,
ParameterProvider<P> parameterProvider) |
String |
CachingStrategy.getCachePath(ImageGenerator<ParameterProvider<P>> generator,
ParameterProvider<P> parameterProvider)
Returns a unique path pertinent to the given generator and parameter to use for storing
the generated image.
|
String |
AbstractNodeBasedCachingStrategy.getCachePath(ImageGenerator<ParameterProvider<P>> generator,
ParameterProvider<P> parameterProvider) |
String |
AbstractContentBasedCachingStrategy.getCachePath(ImageGenerator<ParameterProvider<P>> generator,
ParameterProvider<P> parameterProvider)
Deprecated.
|
void |
CachingImageStreamer.serveImage(ImageGenerator<ParameterProvider<P>> generator,
ParameterProvider<P> params,
OutputStream out) |
Modifier and Type | Class and Description |
---|---|
class |
BufferedImageOpDelegate<P extends ParameterProvider<?>>
An implementation of ImageFilter which delegates to a java.awt.image.BufferedImageOp.
|
interface |
ImageOperation<P extends ParameterProvider<?>>
Applies any kind of filtering to an Image.
|
class |
ImageOperationChain<P extends ParameterProvider<?>>
An implementation of ImageOperation and ImageGenerator which delegates
to a list of other ImageOperation instances.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractCropAndResize<P extends ParameterProvider<?>>
Subclasses of this determine which portion of the source image is taken into account,
and what final dimensions the image needs to be resized to.
|
Modifier and Type | Method and Description |
---|---|
protected Coords |
BoundedResize.getCroopCoords(BufferedImage source,
ParameterProvider params) |
protected Coords |
AutoCropAndResize.getCroopCoords(BufferedImage source,
ParameterProvider params) |
protected Coords |
SelectedCropAndResize.getCroopCoords(BufferedImage source,
ParameterProvider<info.magnolia.cms.core.Content> params) |
protected Size |
BoundedResize.getEffectiveTargetSize(BufferedImage source,
Coords cropCoords,
ParameterProvider params) |
protected Size |
AutoCropAndResize.getEffectiveTargetSize(BufferedImage source,
Coords cropCoords,
ParameterProvider params) |
protected Size |
SelectedCropAndResize.getEffectiveTargetSize(BufferedImage source,
Coords cropCoords,
ParameterProvider<info.magnolia.cms.core.Content> params) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractLoader<P extends ParameterProvider<?>>
An abstract ImageOperation used to load images.
|
class |
AbstractURLImageLoader<P extends ParameterProvider<?>>
Loads images from a URL.
|
class |
Blank<P extends ParameterProvider<?>>
Just generates an empty BufferedImage canvas, fills it with the specified color if any.
|
class |
ClasspathImageLoader<P extends ParameterProvider<?>>
An ImageFilter which loads an image from the classpath.
|
class |
URLImageLoader<P extends ParameterProvider<?>>
Loads an image off an arbitrary URL.
|
Modifier and Type | Method and Description |
---|---|
protected javax.jcr.Binary |
FromBinaryNode.getBinaryFromNode(ParameterProvider<javax.jcr.Node> param) |
protected abstract javax.jcr.Binary |
AbstractFromNode.getBinaryFromNode(ParameterProvider<PT> param) |
protected info.magnolia.cms.core.NodeData |
FromContent.getNodeData(ParameterProvider<info.magnolia.cms.core.Content> param)
Deprecated.
|
protected info.magnolia.cms.core.NodeData |
FromNodeData.getNodeData(ParameterProvider<info.magnolia.cms.core.NodeData> param)
Deprecated.
|
protected abstract info.magnolia.cms.core.NodeData |
AbstractFromContent.getNodeData(ParameterProvider<PT> param)
Deprecated.
Gets the appropriate NodeData instance based on the given ParameterProvider.
|
protected BufferedImage |
AbstractFromNode.loadSource(ParameterProvider<PT> param) |
protected BufferedImage |
AbstractFromContent.loadSource(ParameterProvider<PT> param)
Deprecated.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractTextOverlay<P extends ParameterProvider<?>>
Superclass for ImageOperations based on Text Overlays.
|
class |
FixedText<P extends ParameterProvider<?>>
Overlay based on fixed text.
|
Modifier and Type | Class and Description |
---|---|
class |
AggregationStateParameterProvider
A ParameterProvider which provides the AggregationState as a parameter.
|
class |
BinaryNodeParameterProvider
ParameterProvider providing binary Node . |
class |
ContentParameterProvider
Deprecated.
since 3.2 use
BinaryNodeParameterProvider |
class |
NodeDataParameterProvider
Deprecated.
since 3.2 use
BinaryNodeParameterProvider |
Modifier and Type | Method and Description |
---|---|
ParameterProvider<PT> |
AbstractWorkspaceAndUuidParameterProviderFactory.newParameterProviderFor(javax.servlet.http.HttpServletRequest request)
Deprecated.
|
ParameterProvider<PT> |
AbstractWorkspaceAndPathParameterProviderFactory.newParameterProviderFor(javax.servlet.http.HttpServletRequest req) |
ParameterProvider<PT> |
AbstractWorkspaceAndIdentifierParameterProviderFactory.newParameterProviderFor(javax.servlet.http.HttpServletRequest request) |
protected ParameterProvider<javax.jcr.Node> |
BinaryNodeIdentifierParameterProviderFactory.newParameterProviderForIdentifier(javax.jcr.Session session,
String identifier) |
protected abstract ParameterProvider<PT> |
AbstractWorkspaceAndIdentifierParameterProviderFactory.newParameterProviderForIdentifier(javax.jcr.Session session,
String identifier) |
protected ParameterProvider<info.magnolia.cms.core.NodeData> |
NodeDataParameterProviderFactory.newParameterProviderForPath(info.magnolia.cms.core.HierarchyManager hm,
String path)
Deprecated.
|
protected ParameterProvider<info.magnolia.cms.core.Content> |
ContentParameterProviderFactory.newParameterProviderForPath(info.magnolia.cms.core.HierarchyManager hm,
String path)
Deprecated.
|
protected ParameterProvider<javax.jcr.Node> |
BinaryNodePathParameterProviderFactory.newParameterProviderForPath(info.magnolia.cms.core.HierarchyManager hm,
String path) |
protected abstract ParameterProvider<PT> |
AbstractWorkspaceAndPathParameterProviderFactory.newParameterProviderForPath(info.magnolia.cms.core.HierarchyManager hm,
String path) |
protected ParameterProvider<javax.jcr.Node> |
BinaryNodeParameterProviderFactory.newParameterProviderForUuid(javax.jcr.Session session,
String identifier)
Deprecated.
|
protected abstract ParameterProvider<PT> |
AbstractWorkspaceAndUuidParameterProviderFactory.newParameterProviderForUuid(javax.jcr.Session session,
String uuid)
Deprecated.
|
Copyright © 2016 Magnolia International Ltd.. All rights reserved.