org.jfree.layouting.renderer.model

Class RenderableReplacedContent

public class RenderableReplacedContent extends RenderNode

This handles all kinds of renderable rectangular content, mostly images and drawables. It is assumed, that the image can be split on any position, although this is avoided as far as possible. Flame me, but 'crop', 'fit' and 'fit-position' will be implemented later. Yes, they are powerfull, but nothing I want to deal with for the initial throw.

Author: Thomas Morgner

See Also: http://www.w3.org/TR/css3-box/#the-fit

Constructor Summary
RenderableReplacedContent(Object rawObject, ResourceKey source, StrictDimension contentSize, RenderLength width, RenderLength height, CSSValue verticalAlign)
Method Summary
voidappyStyle(LayoutContext context, OutputProcessorMetaData metaData)
StrictDimensiongetContentSize()
ObjectgetRawObject()
RenderLengthgetRequestedHeight()
RenderLengthgetRequestedWidth()
ResourceKeygetSource()
CSSValuegetVerticalAlign()

Constructor Detail

RenderableReplacedContent

public RenderableReplacedContent(Object rawObject, ResourceKey source, StrictDimension contentSize, RenderLength width, RenderLength height, CSSValue verticalAlign)

Method Detail

appyStyle

public void appyStyle(LayoutContext context, OutputProcessorMetaData metaData)

getContentSize

public StrictDimension getContentSize()

getRawObject

public Object getRawObject()

getRequestedHeight

public RenderLength getRequestedHeight()

getRequestedWidth

public RenderLength getRequestedWidth()

getSource

public ResourceKey getSource()

getVerticalAlign

public CSSValue getVerticalAlign()