org.umber.crucible.old.templates.generic
Class ImageOp

java.lang.Object
  extended byorg.umber.crucible.old.templates.generic.GenericOp
      extended byorg.umber.crucible.old.templates.generic.ContentOp
          extended byorg.umber.crucible.old.templates.generic.ImageOp

public class ImageOp
extends ContentOp

A template op wrapper for <image>.

Author:
jsheets

Constructor Summary
ImageOp(Datum op, StyleMap styleMap)
          Creates a new instance of ImageOp.
ImageOp(Datum op, StyleMap styleMap, StyleChain chain)
          Creates a new instance of ImageOp with an optional StyleChain fallback.
 
Method Summary
 java.lang.String getFile()
          Retrieves the file path for the image that this op should render.
 java.util.List resolve(Datum xmlNode)
          Runs a Datum XML node through the op and returns a List of LayoutArea objects.
 
Methods inherited from class org.umber.crucible.old.templates.generic.GenericOp
createOp, createOp, getChain, getDatum, getDatumProperty, getOp, getOpType, getParameter, getStyleMap, resolveParameter, resolvePath, runQuery
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageOp

public ImageOp(Datum op,
               StyleMap styleMap)
Creates a new instance of ImageOp.

Parameters:
op - the XML template op to wrap
styleMap - the StyleMap to lookup named styles in

ImageOp

public ImageOp(Datum op,
               StyleMap styleMap,
               StyleChain chain)
Creates a new instance of ImageOp with an optional StyleChain fallback. The StyleChain can be null.

Parameters:
op - the XML template op to wrap
styleMap - the StyleMap to lookup named styles in
chain - optional fallback StyleChain
Method Detail

getFile

public java.lang.String getFile()
Retrieves the file path for the image that this op should render.

Returns:
the file path to the image

resolve

public java.util.List resolve(Datum xmlNode)
Runs a Datum XML node through the op and returns a List of LayoutArea objects.

Specified by:
resolve in class GenericOp
Parameters:
xmlNode - the input data node to run through the op
Returns:
a List of LayoutArea objects.