|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectyu.ac.bg.etf.javaqx.core.AbstractDisposable
yu.ac.bg.etf.javaqx.qswing.JQComponent
yu.ac.bg.etf.javaqx.qswing.JQTextComponent
yu.ac.bg.etf.javaqx.qswing.JQTextArea
yu.ac.bg.etf.javaqx.qswingx.text.code.CodeViewer
Code Viewer.
Field Summary |
Fields inherited from class yu.ac.bg.etf.javaqx.qswing.JQComponent |
listenerList |
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQTextAreaProperties |
PROPERTY_WRAP_TEXT |
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQTextComponentProperties |
PROPERTY_DOCUMENT, PROPERTY_EDITABLE |
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQComponentProperties |
PROPERTY_BACKGROUND, PROPERTY_COMPONENT_ORIENTATION, PROPERTY_CONTEXT_MENU, PROPERTY_ENABLED, PROPERTY_FIXED_SIZE, PROPERTY_FOCUSABLE, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_INSETS, PROPERTY_LOCALE, PROPERTY_MAXIMUM_SIZE, PROPERTY_MINIMUM_SIZE, PROPERTY_NAME, PROPERTY_OPAQUE, PROPERTY_PREFERRED_SIZE, PROPERTY_RESOURCE_BUNDLE_NAME, PROPERTY_STATUS_TIP_TEXT, PROPERTY_STYLE_SHEET, PROPERTY_TOOL_TIP_TEXT, PROPERTY_VISIBLE, PROPERTY_WHATS_THIS_TEXT |
Constructor Summary | |
CodeViewer()
Constructs new CodeViewer object. |
|
CodeViewer(int marginWidth)
Constructs new CodeViewer object. |
|
CodeViewer(TextHighlighter highlighter)
Constructs new CodeViewer object. |
Method Summary | |
Color |
getMarginColor()
Returns the color of the margin. |
int |
getMarginWidth()
Returns the width of the margin. |
protected void |
paintComponentView(Graphics g,
int x,
int y,
int width,
int height)
Paints view. |
protected void |
processStyleChange()
Process style change. |
void |
setEditable(boolean editable)
Sets whether or not the text component is editable. |
void |
setFont(Font font)
Sets component's font. |
void |
setMarginColor(Color marginColor)
Sets the color of the margin. |
void |
setMarginWidth(int marginWidth)
Sets the width of the margin. |
Methods inherited from class yu.ac.bg.etf.javaqx.qswing.JQTextArea |
getDocument, isWrapText, setDocument, setWrapText |
Methods inherited from class yu.ac.bg.etf.javaqx.qswing.JQTextComponent |
addEditListener, addUndoRedoListener, appendText, clear, clearText, copy, cut, fireClearAvailable, fireCopyAvailable, fireCutAvailable, firePasteAvailable, fireRedoAvailable, fireSelectAllAvailable, fireUndoAvailable, getEditListeners, getText, getUndoRedoListeners, insertText, isClearAvailable, isCopyAvailable, isCutAvailable, isEditable, isModified, isPasteAvailable, isRedoAvailable, isSelectAllAvailable, isUndoAvailable, paste, print, read, redo, removeEditListener, removeUndoRedoListener, selectAll, setModified, setText, undo, write |
Methods inherited from class yu.ac.bg.etf.javaqx.core.AbstractDisposable |
addDisposeListener, dispose, disposedCheck, disposedErrorString, finalize, isDisposed, removeDisposeListener |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CodeViewer()
public CodeViewer(int marginWidth)
marginWidth
- the width of the marginpublic CodeViewer(TextHighlighter highlighter)
highlighter
- the document highlighterMethod Detail |
public int getMarginWidth()
public void setMarginWidth(int marginWidth)
marginWidth
- the width of the marginpublic Color getMarginColor()
public void setMarginColor(Color marginColor)
marginColor
- the color of the marginpublic void setFont(Font font)
setFont
in class JQComponent
font
- the fontpublic void setEditable(boolean editable)
setEditable
in class JQTextComponent
editable
- true if editableprotected void paintComponentView(Graphics g, int x, int y, int width, int height)
paintComponentView
in class JQTextArea
g
- the graphics objectx
- the x-coordinate of the viewy
- the y-coordinate of the viewwidth
- the width of the viewheight
- the height of the viewprotected void processStyleChange()
processStyleChange
in class JQComponent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |