|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Canvas | +--Free.awt.TextView
An alternative TextView (non-editable) that allows font colors, sytles,
and word-wrap.
Originally from NFC Chat. Modified for use in GNU.FREE
Works in JDK1.0.2
Inner classes inherited from class java.awt.Component |
java.awt.Component.AWTTreeLock |
Field Summary | |
protected TextStyle |
_defaultStyle
|
protected int |
_firstRun
|
protected java.util.Vector |
_runs
|
protected int |
_yTranslation
|
static java.awt.Font |
DEFAULT_FONT
|
Fields inherited from class java.awt.Component |
actionListenerK,
adjustmentListenerK,
appContext,
background,
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
componentListener,
componentListenerK,
componentOrientation,
containerListenerK,
cursor,
dropTarget,
enabled,
eventMask,
focusListener,
focusListenerK,
font,
foreground,
hasFocus,
height,
incRate,
inputMethodListener,
inputMethodListenerK,
isInc,
isPacked,
itemListenerK,
keyListener,
keyListenerK,
LEFT_ALIGNMENT,
locale,
LOCK,
minSize,
mouseListener,
mouseListenerK,
mouseMotionListener,
mouseMotionListenerK,
newEventsOnly,
ownedWindowK,
parent,
peer,
peerFont,
popups,
prefSize,
RIGHT_ALIGNMENT,
textListenerK,
TOP_ALIGNMENT,
valid,
visible,
width,
windowListenerK,
x,
y |
Constructor Summary | |
TextView()
|
|
TextView(boolean autoScrolling)
|
Method Summary | |
void |
append(java.lang.String s)
|
void |
append(java.lang.String s,
TextStyle style)
|
void |
append(TextRun run)
|
(package private) boolean |
createBuffer()
|
TextStyle |
getDefaultStyle()
|
void |
paint(java.awt.Graphics g)
|
java.awt.Dimension |
preferredSize()
|
void |
prepare(TextRun run)
|
void |
prepareAll()
|
void |
renderViewable(java.awt.Graphics g)
|
void |
reshape(int x,
int y,
int w,
int h)
|
void |
setFont(java.awt.Font f)
|
void |
setFont(java.lang.String name)
|
void |
setFontSize(int size)
|
void |
setScrollView(ScrollView sv)
|
void |
setYTranslation(int y)
|
void |
show()
|
void |
update(java.awt.Graphics g)
|
Methods inherited from class java.awt.Canvas |
|
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
addPropertyChangeListener,
areInputMethodsEnabled,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
contains,
createImage,
createImage,
deliverEvent,
disable,
disableEvents,
dispatchEvent,
dispatchEventImpl,
doLayout,
enable,
enable,
enableEvents,
enableInputMethods,
eventEnabled,
firePropertyChange,
getAlignmentX,
getAlignmentY,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentAt,
getComponentAt,
getComponentOrientation,
getCursor,
getDropTarget,
getFont_NoClientCode,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputContext,
getInputMethodRequests,
getIntrinsicCursor,
getLocale,
getLocation,
getLocation,
getLocationOnScreen,
getMaximumSize,
getMinimumSize,
getName,
getNativeContainer,
getParent_NoClientCode,
getParent,
getPeer,
getPreferredSize,
getSize,
getSize,
getToolkit,
getToolkitImpl,
getTreeLock,
getWidth,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
hide,
imageUpdate,
inside,
invalidate,
isDisplayable,
isDoubleBuffered,
isEnabled,
isEnabledImpl,
isFocusTraversable,
isLightweight,
isOpaque,
isShowing,
isValid,
isVisible,
keyDown,
keyUp,
layout,
lightweightPrint,
list,
list,
list,
list,
list,
locate,
location,
lostFocus,
minimumSize,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
paramString,
postEvent,
prepareImage,
prepareImage,
print,
printAll,
printHeavyweightComponents,
processComponentEvent,
processEvent,
processFocusEvent,
processInputMethodEvent,
processKeyEvent,
processMouseEvent,
processMouseMotionEvent,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removeNotify,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
resize,
resize,
setBackground,
setBounds,
setBounds,
setComponentOrientation,
setCursor,
setDropTarget,
setEnabled,
setForeground,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
setVisible,
show,
size,
toString,
transferFocus,
validate |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static java.awt.Font DEFAULT_FONT
protected java.util.Vector _runs
protected TextStyle _defaultStyle
protected int _yTranslation
protected int _firstRun
Constructor Detail |
public TextView(boolean autoScrolling)
public TextView()
Method Detail |
public TextStyle getDefaultStyle()
public void setScrollView(ScrollView sv)
public void setFont(java.lang.String name)
public void setFontSize(int size)
public void setFont(java.awt.Font f)
public void append(java.lang.String s, TextStyle style)
public void append(TextRun run)
public void append(java.lang.String s)
public void setYTranslation(int y)
public void update(java.awt.Graphics g)
public void paint(java.awt.Graphics g)
public void show()
public void reshape(int x, int y, int w, int h)
boolean createBuffer()
public java.awt.Dimension preferredSize()
public void prepare(TextRun run)
public void prepareAll()
public void renderViewable(java.awt.Graphics g)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |