Class DefaultBrokenLinkProvider
- java.lang.Object
-
- org.apache.batik.ext.awt.image.spi.BrokenLinkProvider
-
- org.apache.batik.ext.awt.image.spi.DefaultBrokenLinkProvider
-
- Direct Known Subclasses:
SVGBrokenLinkProvider
public class DefaultBrokenLinkProvider extends BrokenLinkProvider
- Version:
- $Id: DefaultBrokenLinkProvider.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.awt.Color
BROKEN_LINK_COLOR
(package private) static Filter
brokenLinkImg
(package private) static java.lang.String
MESSAGE_RSRC
-
Fields inherited from class org.apache.batik.ext.awt.image.spi.BrokenLinkProvider
BROKEN_LINK_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description DefaultBrokenLinkProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.String
formatMessage(java.lang.Object base, java.lang.String code, java.lang.Object[] params)
Filter
getBrokenLinkImage(java.lang.Object base, java.lang.String code, java.lang.Object[] params)
This method is responsbile for constructing an image that will represent the missing image in the document.-
Methods inherited from class org.apache.batik.ext.awt.image.spi.BrokenLinkProvider
hasBrokenLinkProperty
-
-
-
-
Field Detail
-
brokenLinkImg
static Filter brokenLinkImg
-
MESSAGE_RSRC
static final java.lang.String MESSAGE_RSRC
- See Also:
- Constant Field Values
-
BROKEN_LINK_COLOR
static final java.awt.Color BROKEN_LINK_COLOR
-
-
Method Detail
-
formatMessage
public static java.lang.String formatMessage(java.lang.Object base, java.lang.String code, java.lang.Object[] params)
-
getBrokenLinkImage
public Filter getBrokenLinkImage(java.lang.Object base, java.lang.String code, java.lang.Object[] params)
Description copied from class:BrokenLinkProvider
This method is responsbile for constructing an image that will represent the missing image in the document. This method recives information about the reason a broken link image is being requested in thecode
andparams
parameters. These parameters may be used to generate nicely localized messages for insertion into the broken link image, or for selecting the broken link image returned.- Specified by:
getBrokenLinkImage
in classBrokenLinkProvider
- Parameters:
base
- The object to use for Message decoding.code
- This is the reason the image is unavailable should be taken from ErrorConstants.params
- This is more detailed information about the circumstances of the failure.
-
-