Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.paradoxpoint.libitina.monument
Class GlobalStyleDocument  view GlobalStyleDocument download GlobalStyleDocument.java

java.lang.Object
  extended byjavax.swing.text.AbstractDocument
      extended byjavax.swing.text.DefaultStyledDocument
          extended bycom.paradoxpoint.libitina.monument.GlobalStyleDocument
All Implemented Interfaces:
javax.swing.text.Document, java.io.Serializable, javax.swing.text.StyledDocument

public class GlobalStyleDocument
extends javax.swing.text.DefaultStyledDocument


Nested Class Summary
 
Nested classes inherited from class javax.swing.text.DefaultStyledDocument
javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit, javax.swing.text.DefaultStyledDocument.ElementBuffer, javax.swing.text.DefaultStyledDocument.ElementSpec, javax.swing.text.DefaultStyledDocument.SectionElement
 
Nested classes inherited from class javax.swing.text.AbstractDocument
javax.swing.text.AbstractDocument.AbstractElement, javax.swing.text.AbstractDocument.AttributeContext, javax.swing.text.AbstractDocument.BranchElement, javax.swing.text.AbstractDocument.Content, javax.swing.text.AbstractDocument.DefaultDocumentEvent, javax.swing.text.AbstractDocument.ElementEdit, javax.swing.text.AbstractDocument.LeafElement
 
Field Summary
private  int align
           
private  java.awt.Font font
           
 
Fields inherited from class javax.swing.text.DefaultStyledDocument
buffer, BUFFER_SIZE_DEFAULT
 
Fields inherited from class javax.swing.text.AbstractDocument
BAD_LOCATION, BidiElementName, ContentElementName, ElementNameAttribute, listenerList, ParagraphElementName, SectionElementName
 
Fields inherited from interface javax.swing.text.Document
StreamDescriptionProperty, TitleProperty
 
Constructor Summary
GlobalStyleDocument()
          Creates a new instance of GlobalStyleDocument
GlobalStyleDocument(java.lang.String text, java.awt.Font font, int align)
           
 
Method Summary
 int getAlign()
           
 java.awt.Font getFont()
           
 void insertString(int offs, java.lang.String str, javax.swing.text.AttributeSet a)
          Inserts a piece of text with an AttributeSet at the specified offset.
 void setAlign(int align)
           
 void setCharacterAttributes(int offset, int length, javax.swing.text.AttributeSet s, boolean replace)
          Sets text attributes for the fragment specified by offset and length.
 void setFont(java.awt.Font font)
           
 void setParagraphAttributes(int offset, int length, javax.swing.text.AttributeSet s, boolean replace)
          Sets text attributes for the paragraph at the specified fragment.
 
Methods inherited from class javax.swing.text.DefaultStyledDocument
addStyle, create, createDefaultRoot, getBackground, getCharacterElement, getDefaultRootElement, getFont, getForeground, getLogicalStyle, getParagraphElement, getStyle, getStyleNames, insert, insertUpdate, removeStyle, removeUpdate, setLogicalStyle, styleChanged
 
Methods inherited from class javax.swing.text.AbstractDocument
addDocumentListener, addUndoableEditListener, createBranchElement, createLeafElement, createPosition, dump, fireChangedUpdate, fireInsertUpdate, fireRemoveUpdate, fireUndoableEditUpdate, getAsynchronousLoadPriority, getAttributeContext, getBidiRootElement, getContent, getCurrentWriter, getDocumentFilter, getDocumentListeners, getDocumentProperties, getEndPosition, getLength, getListeners, getProperty, getRootElements, getStartPosition, getText, getText, getUndoableEditListeners, postRemoveUpdate, putProperty, readLock, readUnlock, remove, removeDocumentListener, removeUndoableEditListener, render, replace, setAsynchronousLoadPriority, setDocumentFilter, setDocumentProperties, writeLock, writeUnlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.text.Document
addDocumentListener, addUndoableEditListener, createPosition, getEndPosition, getLength, getProperty, getRootElements, getStartPosition, getText, getText, putProperty, remove, removeDocumentListener, removeUndoableEditListener, render
 

Field Detail

font

private java.awt.Font font

align

private int align
Constructor Detail

GlobalStyleDocument

public GlobalStyleDocument()
Creates a new instance of GlobalStyleDocument


GlobalStyleDocument

public GlobalStyleDocument(java.lang.String text,
                           java.awt.Font font,
                           int align)
Method Detail

insertString

public void insertString(int offs,
                         java.lang.String str,
                         javax.swing.text.AttributeSet a)
                  throws javax.swing.text.BadLocationException
Description copied from interface: javax.swing.text.Document
Inserts a piece of text with an AttributeSet at the specified offset.


setCharacterAttributes

public void setCharacterAttributes(int offset,
                                   int length,
                                   javax.swing.text.AttributeSet s,
                                   boolean replace)
Description copied from class: javax.swing.text.DefaultStyledDocument
Sets text attributes for the fragment specified by offset and length.


setParagraphAttributes

public void setParagraphAttributes(int offset,
                                   int length,
                                   javax.swing.text.AttributeSet s,
                                   boolean replace)
Description copied from class: javax.swing.text.DefaultStyledDocument
Sets text attributes for the paragraph at the specified fragment.


setFont

public final void setFont(java.awt.Font font)

getFont

public java.awt.Font getFont()

setAlign

public final void setAlign(int align)

getAlign

public int getAlign()