|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Panel | +--de.pannenleiter.awt.TextPanel
TextPanel -- this panel displays highlighted text
Inner classes inherited from class java.awt.Panel |
java.awt.Panel.AccessibleAWTPanel |
Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
Field Summary | |
protected boolean |
appendToLine
|
protected int |
border
|
protected java.util.Vector |
charMap
|
protected java.awt.FontMetrics |
fm
|
protected java.awt.Scrollbar |
horizontal
|
protected boolean |
isInitialized
|
protected int |
lineA
|
protected java.util.Vector |
lineAttr
|
protected int |
lineH
|
protected java.util.Vector |
lines
|
protected int |
lineW16
|
static java.lang.Integer |
MARK
|
static java.lang.Integer |
MARK_ENTER
|
static java.lang.Integer |
MARK_LEAVE
|
static java.lang.Integer |
MARK_STOP
|
protected java.util.Hashtable |
marks
|
protected int |
maxWidth
|
protected de.pannenleiter.awt.TextPanel.InnerPanel |
myPanel
|
static int |
tabWidth
|
protected TextPanelListener |
textListener
|
protected java.awt.Scrollbar |
vertical
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
TextPanel()
|
Method Summary | |
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
|
void |
addNotify()
|
void |
addTextPanelListener(TextPanelListener l)
|
protected void |
addToCharMap(int line,
int start,
int end,
java.lang.Object attribute)
|
void |
append(java.lang.String text)
|
void |
append(java.lang.String text,
java.lang.Object attribute)
|
void |
assertVisible(int line)
scrolls the grid |
java.lang.Object |
getCharAttr(int line,
int column)
|
java.awt.Dimension |
getMaximumSize()
|
java.awt.Dimension |
getMinimumSize()
|
java.awt.Dimension |
getPreferredSize()
|
void |
layoutContainer(java.awt.Container parent)
|
void |
mark(int line,
java.lang.Integer type)
|
void |
mark(int line,
java.lang.Integer type,
java.lang.String name)
|
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
|
void |
removeLayoutComponent(java.awt.Component comp)
|
void |
removeTextPanelListener(TextPanelListener l)
|
protected void |
setScrollbars(int ho,
int ve)
|
void |
setText(java.lang.String text)
|
void |
setText(java.lang.String text,
java.lang.Object attribute)
|
void |
unmark(int line,
java.lang.Integer type)
|
Methods inherited from class java.awt.Panel |
getAccessibleContext |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getListeners, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, setLayout, update, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.Integer MARK
public static final java.lang.Integer MARK_ENTER
public static final java.lang.Integer MARK_LEAVE
public static final java.lang.Integer MARK_STOP
public static int tabWidth
protected java.awt.FontMetrics fm
protected int lineH
protected int lineW16
protected int lineA
protected int border
protected boolean isInitialized
protected de.pannenleiter.awt.TextPanel.InnerPanel myPanel
protected java.awt.Scrollbar horizontal
protected java.awt.Scrollbar vertical
protected java.util.Vector lines
protected int maxWidth
protected boolean appendToLine
protected java.util.Hashtable marks
protected java.util.Vector lineAttr
protected java.util.Vector charMap
protected TextPanelListener textListener
Constructor Detail |
public TextPanel()
Method Detail |
public java.awt.Dimension getPreferredSize()
getPreferredSize
in class java.awt.Container
public java.awt.Dimension getMinimumSize()
getMinimumSize
in class java.awt.Container
public java.awt.Dimension getMaximumSize()
getMaximumSize
in class java.awt.Container
public void addLayoutComponent(java.lang.String name, java.awt.Component comp)
addLayoutComponent
in interface java.awt.LayoutManager
public void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent
in interface java.awt.LayoutManager
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize
in interface java.awt.LayoutManager
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize
in interface java.awt.LayoutManager
public void layoutContainer(java.awt.Container parent)
layoutContainer
in interface java.awt.LayoutManager
protected void setScrollbars(int ho, int ve)
public void append(java.lang.String text)
public void append(java.lang.String text, java.lang.Object attribute)
protected void addToCharMap(int line, int start, int end, java.lang.Object attribute)
public void setText(java.lang.String text)
public void setText(java.lang.String text, java.lang.Object attribute)
public void mark(int line, java.lang.Integer type, java.lang.String name)
public void unmark(int line, java.lang.Integer type)
public void mark(int line, java.lang.Integer type)
public java.lang.Object getCharAttr(int line, int column)
public void assertVisible(int line)
public void addTextPanelListener(TextPanelListener l)
public void removeTextPanelListener(TextPanelListener l)
public void addNotify()
addNotify
in class java.awt.Panel
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |