org.mmbase.util.images
Class LazyDimension
java.lang.Object
org.mmbase.util.images.Dimension
org.mmbase.util.images.LazyDimension
- All Implemented Interfaces:
- Serializable
public class LazyDimension
- extends Dimension
A 'lazy' dimension is a Dimension object which depends on an image-node and conversion
template. The actual dimension will only be requested from this node, as soon as getWidth() or getHeight() are called for the first time.
- Since:
- MMBase-1.7.4
- Author:
- Michiel Meeuwissen
- See Also:
- Serialized Form
node
protected Node node
template
protected String template
LazyDimension
public LazyDimension(Node n,
String t)
getWidth
public int getWidth()
- Overrides:
getWidth in class Dimension
getHeight
public int getHeight()
- Overrides:
getHeight in class Dimension
getArea
public int getArea()
- Overrides:
getArea in class Dimension
MMBase2 Resources 2.0-SNAPSHOT - 2013-03-30T06:37