org.ujac.print.tag.graphics
Class BaseGraphicsTag

java.lang.Object
  extended by org.ujac.print.BaseDocumentTag
      extended by org.ujac.print.tag.graphics.BaseGraphicsTag
Direct Known Subclasses:
DrawCircleTag, DrawCurveTag, DrawEllipseTag, DrawLineTag, DrawPolygonTag, DrawPolyLineTag, DrawRectangleTag, PointTag, SetFillColorTag, SetLineCapTag, SetLineDashTag, SetLineJoinTag, SetLineWidthTag, SetStrokeColorTag

public abstract class BaseGraphicsTag
extends BaseDocumentTag

Name: BaseGraphicsTag
Description: Base implementation of tags for graphical operations.

Author:
lauerc

Field Summary
protected static AttributeDefinition FILL
          Definition of the 'fill' attribute.
protected  GraphicsTag graphicsTag
          The surrounding <graphics> tag.
protected static AttributeDefinition X
          Definition of the 'x' attribute.
protected static AttributeDefinition X1
          Definition of the 'x1' attribute.
protected static AttributeDefinition X2
          Definition of the 'x2' attribute.
protected static AttributeDefinition X3
          Definition of the 'x3' attribute.
protected static AttributeDefinition X4
          Definition of the 'x4' attribute.
protected static AttributeDefinition Y
          Definition of the 'y' attribute.
protected static AttributeDefinition Y1
          Definition of the 'y1' attribute.
protected static AttributeDefinition Y2
          Definition of the 'y2' attribute.
protected static AttributeDefinition Y3
          Definition of the 'y3' attribute.
protected static AttributeDefinition Y4
          Definition of the 'y4' attribute.
 
Fields inherited from class org.ujac.print.BaseDocumentTag
actualContent, attributes, condition, content, customAttributes, DEFAULT_FONT, DEFAULT_FONT_COLOR, DEFAULT_FONT_ENCODING, DEFAULT_FONT_FAMILY, DEFAULT_FONT_SIZE, DEFAULT_FONT_STYLE, DEFAULT_LEADING, DEFAULT_LINE_SPACING, depth, documentHandler, IMAGE_CHUNK_ATTR, log, NUMBER_OF_PAGES_TEMPLATES, parentItem, previousItem, styleParent, supportedAttributeMap, supportedChildMap, supportedStyleAttributeMap, tagFactory
 
Constructor Summary
BaseGraphicsTag(String name)
          Constructs a BaseGraphicsTag instance with specific attributes.
 
Method Summary
protected  AttributeDefinitionMap buildSupportedAttributes()
          Gets the list of supported attributes.
 void initialize()
          Initializes the item.
 boolean isTextBodyAllowed()
          Tells whether textual content is allowed for the tag or not.
 
Methods inherited from class org.ujac.print.BaseDocumentTag
addAttributeDefinition, addChunk, addChunk, addChunk, addContent, addContent, addStyleAttributeDefinition, addToLatestCellContainer, addToLatestElementContainer, addToLatestPdfCellContainer, buildSupportedChilds, buildSupportedStyleAttributes, checkAttributes, closeItem, colorFromString, createChunk, createFont, ensureNumberOfPagesTemplate, evalAttribute, evalAttribute, extendLeading, extendLeading, extendLeading, extendLeading, filterContents, flushContent, getActualContent, getAttribute, getAttribute, getAttributeDefinition, getAttributeHandler, getAttributes, getBackgroundColor, getBooleanAttribute, getBooleanAttribute, getBorderAttribute, getBorderAttribute, getColorAttribute, getColorAttribute, getCommonAttributesHolder, getContent, getCustomAttributes, getDepth, getDescription, getDimensionAttribute, getDimensionAttribute, getDimensionAttribute, getDocumentHandler, getExamples, getFloatAttribute, getFloatAttribute, getFont, getHorizontalAlignmentAttribute, getHorizontalAlignmentAttribute, getIntegerAttribute, getIntegerAttribute, getLocalAttribute, getLocalFont, getLocalStyleAttribute, getName, getParentItem, getPhraseContent, getPhraseHeight, getPhraseWidth, getPreviousItem, getRawAttribute, getSortedAttributeDefinitions, getSortedStyleAttributeDefinitions, getStringAttribute, getStringAttribute, getStringAttribute, getStyle, getStyleAttribute, getStyleAttribute, getStyleAttributeDefinition, getStyleAttributes, getStyleClass, getSupportedAttributes, getSupportedChilds, getSupportedChildTags, getSupportedStyleAttributes, getTagFactory, getTextAttribute, getTextAttribute, getTrimmedContent, getVerticalAlignmentAttribute, getVerticalAlignmentAttribute, handleContent, handleFontAttributes, hasContent, int2FontStyle, isAttributeDefined, isAttributeDefined, isAttributeDefined, isAttributeDefined, isAttributeSupported, isAttributeSupported, isAttributeSupported, isAttributeSupported, isDocumentRoot, isEmptyContent, isEmptyString, isIgnoreFlush, isItemClosed, isItemOpened, isPhraseEmpty, isRendered, isStructureChecksDisabled, isStyleable, isStyleAttributeDefined, isTrimBody, isTrimNextHead, isValid, isVirtualContainer, locator, openItem, preInitialize, printPhrase, processContents, processContents, resetContent, rotatePhrase, setAttributes, setBackgroundColor, setCustomAttributes, setDepth, setDocumentHandler, setItemClosed, setItemOpened, setLocalFont, setLocalFont, setName, setParentItem, setPreviousItem, setTagFactory, setTrimBody, setTrimNextHead, trimContentHead, trimContentTail, typeCastValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILL

protected static final AttributeDefinition FILL
Definition of the 'fill' attribute.


X

protected static final AttributeDefinition X
Definition of the 'x' attribute.


Y

protected static final AttributeDefinition Y
Definition of the 'y' attribute.


X1

protected static final AttributeDefinition X1
Definition of the 'x1' attribute.


Y1

protected static final AttributeDefinition Y1
Definition of the 'y1' attribute.


X2

protected static final AttributeDefinition X2
Definition of the 'x2' attribute.


Y2

protected static final AttributeDefinition Y2
Definition of the 'y2' attribute.


X3

protected static final AttributeDefinition X3
Definition of the 'x3' attribute.


Y3

protected static final AttributeDefinition Y3
Definition of the 'y3' attribute.


X4

protected static final AttributeDefinition X4
Definition of the 'x4' attribute.


Y4

protected static final AttributeDefinition Y4
Definition of the 'y4' attribute.


graphicsTag

protected GraphicsTag graphicsTag
The surrounding <graphics> tag.

Constructor Detail

BaseGraphicsTag

public BaseGraphicsTag(String name)
Constructs a BaseGraphicsTag instance with specific attributes.

Parameters:
name - The tag name.
Method Detail

buildSupportedAttributes

protected AttributeDefinitionMap buildSupportedAttributes()
Gets the list of supported attributes.

Overrides:
buildSupportedAttributes in class BaseDocumentTag
Returns:
The attribute definitions.

isTextBodyAllowed

public boolean isTextBodyAllowed()
Tells whether textual content is allowed for the tag or not.

Overrides:
isTextBodyAllowed in class BaseDocumentTag
Returns:
true if the item is allowed to contain textual content, else false.

initialize

public void initialize()
                throws DocumentHandlerException
Initializes the item.

Overrides:
initialize in class BaseDocumentTag
Throws:
DocumentHandlerException - If something went badly wrong.


Copyright © 2003-2004 UJAC.org. All Rights Reserved.