Uses of Interface javax.swing.text.Element

Uses in package javax.swing.text.html

Constructors with parameter type javax.swing.text.Element

Creates a new hypertext link event.
Creates a new hypertext link event.

Uses in package javax.swing.text

Classes implementing javax.swing.text.Element

class
An abstract base implementation of the Element interface.
class
An implementation of Element to represent composite Elements that contain other Elements.
class
An implementation of Element that represents a leaf in the document structure.

Constructors with parameter type javax.swing.text.Element

Creates a new instance of AbstractElement with a specified parent Element and AttributeSet.
Create a new AbstractWriter with the indicated Writer and Element.
AbstractWriter.AbstractWriter(Writer writer, Element elt, int pos, int len)
Create a new AbstractWriter with the indicated Writer and Element.
BoxView.BoxView(Element element, int axis)
Creates a new BoxView for the given Element and axis.
Creates a new BranchElement with the specified parent and attributes.
Creates a new View instance.
Creates a new CompositeView for the given Element.
Creates a new ElementBuffer for the specified root element.
AbstractDocument.ElementEdit.ElementEdit(Element elem, int index, Element removed, Element added)
Creates a new ElementEdit.
Create a new ElementIterator to iterate over the given document.
Creates a new View instance.
FlowView.FlowView(Element element, int axis)
Creates a new FlowView for the given Element and axis.
Creates a new GlyphView for the given Element.
Creates a new IconView for the given Element.
Creates a new GlyphView for the given Element.
AbstractDocument.LeafElement.LeafElement(Element parent, AttributeSet attributes, int start, int end)
Creates a new LeafElement.
Creates a new ParagraphView for the given Element.
Creates a new View instance.
Creates a new View instance.
Creates a new View instance.

Methods with parameter type javax.swing.text.Element

View
Creates a view for a given element.
Element
Creates and returns a branch element with the specified parent and attributes.
void
Copies the text attributes from element to set.
Element
AbstractDocument.createLeafElement(Element parent, AttributeSet attributes, int start, int end)
Creates and returns a leaf element with the specified parent and attributes.
DocumentEvent.ElementChange
Returns the changes for an element.
String
Return the text of the Document that is associated with the given Element.
boolean
Return true if the Element's range overlaps our desired output range; false otherwise.
void
AbstractDocument.BranchElement.replace(int offset, int length, Element elements)
Replaces a set of child elements with a new set of child elemens.
void
Output the text of the indicated Element, properly clipping it to the range of the Document specified when the AbstractWriter was created.

Methods with return type javax.swing.text.Element

Element
Creates and returns a branch element with the specified parent and attributes.
Element
AbstractDocument.createLeafElement(Element parent, AttributeSet attributes, int start, int end)
Creates and returns a leaf element with the specified parent and attributes.
Element
Returns the current element.
Element
Returns the first element in the tree.
Element
Returns the root element for bidirectional content.
Element
Returns the Element that represents the character run at the current caret position.
Element
Returns the Element that corresponds to the character at the specified position.
Element
getCharacterElement
Element[]
Returns the added elements.
Element[]
Returns the removed elements.
Element
Returns the default root Element of this Document.
Element
Returns the default root element.
Element
Returns the default root element.
Element
Returns the default root Element of this Document.
Element
Returns the changed element.
Element
Element
Returns the child element at the specified index.
Element
Returns the child element at the specified index.
Element
Returns null since LeafElements cannot have children.
Element
Element.getElement(int index)
Element
Returns the paragraph Element that holds the specified position.
Element
Returns the paragraph element for the specified position.
Element
Returns the paragraph Element that holds the specified position.
Element
getParagraphElement
Element
Returns the parent element of this element.
Element
Element
Returns the root element of this ElementBuffer.
Element[]
Returns all root elements of this Document.
Element[]
Returns the root elements of the document content.
Element
Advance the iterator and return the next element of the tree, performing an "in-order" traversal.
Element
Returns the Element at the specified Document offset.
Element
Returns the previous item.

Uses in package javax.swing.plaf.basic

Methods with parameter type javax.swing.text.Element

View
Creates a View for the specified Element.
View
Creates a View for the specified Element.
View
Creates a View for the specified Element.
View
Creates a View for the specified Element.
View
View
Creates a View for the specified Element.
View
BasicTextUI.create(Element elem, int p0, int p1)
Creates a View for the specified Element.

Uses in package javax.swing.event

Constructors with parameter type javax.swing.text.Element

HyperlinkEvent.HyperlinkEvent(Object source, HyperlinkEvent.EventType type, URL url, String description, Element element)
Creates a new HyperlinkEvent with the given arguments.

Methods with parameter type javax.swing.text.Element

DocumentEvent.ElementChange
getChange

Methods with return type javax.swing.text.Element

Element[]
getChildrenAdded
Element[]
getChildrenRemoved
Element
getElement
Element
Returns the element of the document repesenting this anchor.