org.mmbase.util.images
Class LazyDimension

Package class diagram package LazyDimension
java.lang.Object
  extended by org.mmbase.util.images.Dimension
      extended by 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

Field Summary
protected  Node node
           
protected  String template
           
 
Fields inherited from class org.mmbase.util.images.Dimension
UNDETERMINED, x, y
 
Constructor Summary
LazyDimension(Node n, String t)
           
 
Method Summary
 int getArea()
           
 int getHeight()
           
 int getWidth()
           
 
Methods inherited from class org.mmbase.util.images.Dimension
equals, equalsIgnoreRound, hashCode, toString, valid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

node

protected Node node

template

protected String template
Constructor Detail

LazyDimension

public LazyDimension(Node n,
                     String t)
Method Detail

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 - 2014-09-22T23:09