com.atlassian.renderer.embedded
Class EmbeddedImageRenderer

java.lang.Object
  extended by com.atlassian.renderer.embedded.EmbeddedImageRenderer
All Implemented Interfaces:
EmbeddedResourceRenderer

public class EmbeddedImageRenderer
extends Object
implements EmbeddedResourceRenderer


Constructor Summary
EmbeddedImageRenderer(RendererAttachmentManager attachmentManager)
           
 
Method Summary
protected  RendererAttachment getAttachment(RenderContext context, EmbeddedResource resource)
           
 RendererAttachmentManager getAttachmentManager()
           
protected  RendererAttachment getThumbnail(RendererAttachment attachment, RenderContext context, EmbeddedImage embeddedImage)
           
 String renderResource(EmbeddedResource resource, RenderContext context)
          Render the embedded resource to a string.
 void setAttachmentManager(RendererAttachmentManager attachmentManager)
           
protected  String writeImage(String imageTag, Map<Object,Object> imageParams, RenderContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbeddedImageRenderer

public EmbeddedImageRenderer(RendererAttachmentManager attachmentManager)
Method Detail

getAttachmentManager

public RendererAttachmentManager getAttachmentManager()

setAttachmentManager

public void setAttachmentManager(RendererAttachmentManager attachmentManager)

renderResource

public String renderResource(EmbeddedResource resource,
                             RenderContext context)
Description copied from interface: EmbeddedResourceRenderer
Render the embedded resource to a string.

Specified by:
renderResource in interface EmbeddedResourceRenderer
Parameters:
resource - to be rendered
context - of render

getAttachment

protected RendererAttachment getAttachment(RenderContext context,
                                           EmbeddedResource resource)

getThumbnail

protected RendererAttachment getThumbnail(RendererAttachment attachment,
                                          RenderContext context,
                                          EmbeddedImage embeddedImage)

writeImage

protected String writeImage(String imageTag,
                            Map<Object,Object> imageParams,
                            RenderContext context)


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.