package org.sophie2.main.app.commons.element; import java.util.Map; import javax.swing.text.Element; import org.sophie2.base.model.text.HotAttr; /** * Holds style information for a text {@link Element}. */ public class ElementEntry { /** * The length (in chars) of the {@link Element}. */ private int length; /** * The style attributes for this element. */ private Map, Object> attributes; /** * The default constructor * @param length * The length * @param attributes * The attributes of the elementEntry. */ public ElementEntry(int length, Map, Object> attributes) { this.length = length; this.attributes = attributes; } /** * Getter for the length. * @return the length. */ public int getLength() { return this.length; } /** * Getter for the attributes of the ElementEntry object. * @return the attributes. */ public Map, Object> getAttributes() { return this.attributes; } }