Package org.apache.batik.extension.svg
Class BatikDomExtension
- java.lang.Object
-
- org.apache.batik.extension.svg.BatikDomExtension
-
- All Implemented Interfaces:
DomExtension,BatikExtConstants
public class BatikDomExtension extends java.lang.Object implements DomExtension, BatikExtConstants
This is a Service interface for classes that want to extend the functionality of the Dom, to support new tags in the rendering tree.- Version:
- $Id: BatikDomExtension.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classBatikDomExtension.BatikHistogramNormalizationElementFactoryTo create a 'histogramNormalization' element.protected static classBatikDomExtension.BatikRegularPolygonElementFactoryTo create a 'regularPolygon' element.protected static classBatikDomExtension.BatikStarElementFactoryTo create a 'star' element.protected static classBatikDomExtension.ColorSwitchElementFactoryTo create a 'colorSwitch' element.protected static classBatikDomExtension.FlowDivElementFactoryTo create a 'flowDiv' element.protected static classBatikDomExtension.FlowLineElementFactoryTo create a 'flowLine' element.protected static classBatikDomExtension.FlowParaElementFactoryTo create a 'flowPara' element.protected static classBatikDomExtension.FlowRegionBreakElementFactoryTo create a 'flowRegionBreak' element.protected static classBatikDomExtension.FlowRegionElementFactoryTo create a 'flowRegion' element.protected static classBatikDomExtension.FlowSpanElementFactoryTo create a 'flowSpan' element.protected static classBatikDomExtension.FlowTextElementFactoryTo create a 'flowText' element.
-
Field Summary
-
Fields inherited from interface org.apache.batik.extension.svg.BatikExtConstants
BATIK_12_ATTR_NAMESPACE_URI, BATIK_12_NAMESPACE_URI, BATIK_EXT_ALIGN_BOTTOM_VALUE, BATIK_EXT_ALIGN_MIDDLE_VALUE, BATIK_EXT_ALIGN_TOP_VALUE, BATIK_EXT_BOTTOM_MARGIN_ATTRIBUTE, BATIK_EXT_COLOR_SWITCH_TAG, BATIK_EXT_FLOW_DIV_TAG, BATIK_EXT_FLOW_LINE_TAG, BATIK_EXT_FLOW_PARA_TAG, BATIK_EXT_FLOW_REGION_BREAK_TAG, BATIK_EXT_FLOW_REGION_EXCLUDE_TAG, BATIK_EXT_FLOW_REGION_TAG, BATIK_EXT_FLOW_SPAN_TAG, BATIK_EXT_FLOW_TEXT_TAG, BATIK_EXT_HEIGHT_ATTRIBUTE, BATIK_EXT_HISTOGRAM_NORMALIZATION_TAG, BATIK_EXT_INDENT_ATTRIBUTE, BATIK_EXT_IR_ATTRIBUTE, BATIK_EXT_JUSTIFICATION_ATTRIBUTE, BATIK_EXT_JUSTIFICATION_END_VALUE, BATIK_EXT_JUSTIFICATION_FULL_VALUE, BATIK_EXT_JUSTIFICATION_MIDDLE_VALUE, BATIK_EXT_JUSTIFICATION_START_VALUE, BATIK_EXT_LEFT_MARGIN_ATTRIBUTE, BATIK_EXT_MARGIN_ATTRIBUTE, BATIK_EXT_NAMESPACE_URI, BATIK_EXT_PREFORMATTED_ATTRIBUTE, BATIK_EXT_REGULAR_POLYGON_TAG, BATIK_EXT_RIGHT_MARGIN_ATTRIBUTE, BATIK_EXT_SIDES_ATTRIBUTE, BATIK_EXT_STAR_TAG, BATIK_EXT_TOP_MARGIN_ATTRIBUTE, BATIK_EXT_TRIM_ATTRIBUTE, BATIK_EXT_VERTICAL_ALIGN_ATTRIBUTE, BATIK_EXT_WIDTH_ATTRIBUTE, BATIK_EXT_X_ATTRIBUTE, BATIK_EXT_Y_ATTRIBUTE
-
-
Constructor Summary
Constructors Constructor Description BatikDomExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAuthor()This should return the individual or company name responsible for the this implementation of the extension.java.lang.StringgetContactAddress()This should contain a contact address (usually an e-mail address).java.lang.StringgetDescription()Human readable description of the extension.floatgetPriority()Return the priority of this Extension.java.lang.StringgetURL()This should return a URL where information can be obtained on this extension.voidregisterTags(ExtensibleDOMImplementation di)This method should update the DomContext with support for the tags in this extension.
-
-
-
Method Detail
-
getPriority
public float getPriority()
Return the priority of this Extension. Extensions are registered from lowest to highest priority. So if for some reason you need to come before/after another existing extension make sure your priority is lower/higher than theirs.- Specified by:
getPriorityin interfaceDomExtension
-
getAuthor
public java.lang.String getAuthor()
This should return the individual or company name responsible for the this implementation of the extension.- Specified by:
getAuthorin interfaceDomExtension
-
getContactAddress
public java.lang.String getContactAddress()
This should contain a contact address (usually an e-mail address).- Specified by:
getContactAddressin interfaceDomExtension
-
getURL
public java.lang.String getURL()
This should return a URL where information can be obtained on this extension.- Specified by:
getURLin interfaceDomExtension
-
getDescription
public java.lang.String getDescription()
Human readable description of the extension. Perhaps that should be a resource for internationalization? (although I suppose it could be done internally)- Specified by:
getDescriptionin interfaceDomExtension
-
registerTags
public void registerTags(ExtensibleDOMImplementation di)
This method should update the DomContext with support for the tags in this extension. In some rare cases it may be necessary to replace existing tag handlers, although this is discouraged.- Specified by:
registerTagsin interfaceDomExtension- Parameters:
di- The ExtensibleDOMImplementation to register the extension elements with.
-
-