|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.rej.gui.hexeditor.Drawer
public class Drawer
Class used to draw text into a graphics object.
Field Summary | |
---|---|
static java.awt.Font |
PLAIN
|
Constructor Summary | |
---|---|
Drawer(java.awt.Graphics g,
java.awt.Dimension d)
Initializes this drawer with the given Graphics object and the dimensions of the component in which the drawing takes place. |
Method Summary | |
---|---|
void |
draw(java.lang.String text)
Draws text without selections of highlighting. |
void |
draw(java.lang.String text,
boolean selected,
boolean hilite)
Draws text with possible selection and possible highlight. |
int |
getOffset()
Returns the current x position of this drawer. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.awt.Font PLAIN
Constructor Detail |
---|
public Drawer(java.awt.Graphics g, java.awt.Dimension d)
g
- the graphics object in which to draw.d
- the dimensions of the target.Method Detail |
---|
public void draw(java.lang.String text)
text
- the text the draw.public void draw(java.lang.String text, boolean selected, boolean hilite)
text
- the text to draw.selected
- true if this text is selected.hilite
- true if the selection is to be highlighted.public int getOffset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |