Class DefaultImageContext
- java.lang.Object
-
- org.apache.xmlgraphics.image.loader.impl.DefaultImageContext
-
- All Implemented Interfaces:
ImageContext
public class DefaultImageContext extends java.lang.Object implements ImageContext
Very simple ImageContext implementation that uses theToolkit
's screen resolution.
-
-
Field Summary
Fields Modifier and Type Field Description private float
sourceResolution
-
Constructor Summary
Constructors Constructor Description DefaultImageContext()
Main constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getSourceResolution()
Returns the resolution (in dpi) that is to be used when interpreting pixel sizes where no resolution information is available.
-
-
-
Method Detail
-
getSourceResolution
public float getSourceResolution()
Returns the resolution (in dpi) that is to be used when interpreting pixel sizes where no resolution information is available.- Specified by:
getSourceResolution
in interfaceImageContext
- Returns:
- the source resolution (in dpi)
-
-