info.magnolia.imaging.operations.load
Class AbstractFromContent<PT>

java.lang.Object
  extended by info.magnolia.imaging.operations.load.AbstractLoader<ParameterProvider<PT>>
      extended by info.magnolia.imaging.operations.load.AbstractFromContent<PT>
Type Parameters:
PT - type of ParameterProvider's parameter
All Implemented Interfaces:
ImageOperation<ParameterProvider<PT>>
Direct Known Subclasses:
FromContent, FromNodeData

Deprecated. since 5.0, use AbstractFromNode instead.

@Deprecated
public abstract class AbstractFromContent<PT>
extends AbstractLoader<ParameterProvider<PT>>

Superclass for ImageOperations loading from Content.


Constructor Summary
AbstractFromContent()
          Deprecated.  
 
Method Summary
protected abstract  info.magnolia.cms.core.NodeData getNodeData(ParameterProvider<PT> param)
          Deprecated. Gets the appropriate NodeData instance based on the given ParameterProvider.
protected  BufferedImage loadSource(ParameterProvider<PT> param)
          Deprecated.  
 
Methods inherited from class info.magnolia.imaging.operations.load.AbstractLoader
apply, doReadAndClose, getBackgroundColor, getImageDecoder, setBackgroundColor, setImageDecoder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFromContent

public AbstractFromContent()
Deprecated. 
Method Detail

loadSource

protected BufferedImage loadSource(ParameterProvider<PT> param)
                            throws ImagingException
Deprecated. 
Specified by:
loadSource in class AbstractLoader<ParameterProvider<PT>>
Throws:
ImagingException

getNodeData

protected abstract info.magnolia.cms.core.NodeData getNodeData(ParameterProvider<PT> param)
                                                        throws ImagingException
Deprecated. 
Gets the appropriate NodeData instance based on the given ParameterProvider. If possible, the implementation should throw exceptions early, for instance if the NodeData can't be loaded.

Throws:
ImagingException


Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.