public class Figure extends TextContainer implements StructuralElement
| Modifier and Type | Field and Description |
|---|---|
static String |
A_SOURCE
The name of the source attribute
|
static String |
A_TARGET
The name of the target attribute
|
static String |
A_TITLE
The name of the title attribute
|
static String |
E_FIGURE
The name of the figure element
|
contextA_ID, A_NAME, A_RENDER| Modifier | Constructor and Description |
|---|---|
protected |
Figure(WingContext context,
String source,
String target,
String rend)
Construct a new figure.
|
protected |
Figure(WingContext context,
String source,
String target,
String title,
String rend) |
| Modifier and Type | Method and Description |
|---|---|
void |
toSAX(ContentHandler contentHandler,
LexicalHandler lexicalHandler,
org.xml.sax.helpers.NamespaceSupport namespaces)
Translate this element and all contained elements into SAX events.
|
addContent, addContent, addContentendElement, endElement, getWingContext, greater, lesser, require, require, requireFalse, requireTrue, restrict, sendCharacters, setWingContext, startElement, startElementpublic static final String E_FIGURE
public static final String A_SOURCE
public static final String A_TARGET
public static final String A_TITLE
protected Figure(WingContext context, String source, String target, String rend) throws WingException
context - (Required) The context this element is contained insource - (Required) The figure's image source.target - (May be null) The figure's external reference, if present then
the figure is also a link.rend - (May be null) a rendering hint used to override the default
display of the element.WingException - passed through.protected Figure(WingContext context, String source, String target, String title, String rend) throws WingException
WingExceptionpublic void toSAX(ContentHandler contentHandler, LexicalHandler lexicalHandler, org.xml.sax.helpers.NamespaceSupport namespaces) throws SAXException
toSAX in interface WingElementtoSAX in class ContainercontentHandler - (Required) The registered contentHandler where SAX events
should be routed too.lexicalHandler - (Required) The registered lexicalHandler where lexical
events (such as CDATA, DTD, etc) should be routed too.namespaces - (Required) SAX Helper class to keep track of namespaces able
to determine the correct prefix for a given namespace URI.SAXException - passed through.Copyright © 2016 DuraSpace. All rights reserved.