public class TextBoard extends RegionBoard implements TextPainter
Modifier and Type | Field and Description |
---|---|
(package private) FontStore |
fontStore |
(package private) int |
height |
(package private) int |
itxt |
(package private) int |
jtxt |
(package private) KeyWriter |
keyWriter |
private boolean |
nextIsLinked |
static java.lang.String |
PUNCTUATION |
(package private) Block |
rootBlock |
(package private) int |
width |
canvas, fullTextHeight
Constructor and Description |
---|
TextBoard(DTextCanvas dtc) |
Modifier and Type | Method and Description |
---|---|
void |
dropOn(java.lang.Object src,
java.lang.String txt,
java.lang.Object tgt,
java.lang.String tag) |
TextBlock |
firstTextBlock() |
private void |
paintBlock(java.awt.Graphics2D g,
TextBlock b) |
private void |
paintCaret(java.awt.Graphics2D g) |
private void |
paintDoc(java.awt.Graphics2D g) |
void |
paintText(java.awt.Graphics2D g) |
void |
regionClicked(Region reg) |
void |
repaint() |
void |
setBlock(Block rb) |
addClickRegion, addDragOrDropRegion, addDragRegion, addDropRegion, addLengthenedRegion, addRegion, addRegion, clearRegions, dropGeneral, dropOn, focusGained, focusLost, getCanvas, getDragOverRegion, getDragOverRegion, getFullTextHeight, getHeight, getHoverRegion, getWidth, notifyChange, prePaintRegions, requestFocus, setAntialias, setChangeNotifiable, unecho
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFullTextHeight
Block rootBlock
FontStore fontStore
int width
int height
int itxt
int jtxt
KeyWriter keyWriter
public static final java.lang.String PUNCTUATION
private boolean nextIsLinked
public TextBoard(DTextCanvas dtc)
public void setBlock(Block rb)
public TextBlock firstTextBlock()
public void repaint()
repaint
in class RegionBoard
public void paintText(java.awt.Graphics2D g)
paintText
in interface TextPainter
private void paintDoc(java.awt.Graphics2D g)
private void paintCaret(java.awt.Graphics2D g)
private void paintBlock(java.awt.Graphics2D g, TextBlock b)
public void regionClicked(Region reg)
regionClicked
in interface RegionListener
regionClicked
in class RegionBoard
public void dropOn(java.lang.Object src, java.lang.String txt, java.lang.Object tgt, java.lang.String tag)
Copyright © 2013. All Rights Reserved.