|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DrawContext
This interface provides methods for getting and setting various drawing attributes. During painting draw layer receives draw context and it is expected to either leave draw parameters as they are or change them.
Method Summary | |
---|---|
Color |
getBackColor()
Get current background color |
char[] |
getBuffer()
Get the buffer with the characters being drawn. |
int |
getBufferStartOffset()
Get the position in the document where the buffer starts. |
EditorUI |
getEditorUI()
Get draw info for the component that is currently drawn. |
int |
getEndOffset()
Get end position of the drawing. |
Font |
getFont()
Get current font |
Color |
getForeColor()
Get current foreground color |
int |
getFragmentLength()
Get the length of the fragment of the token being drawn |
int |
getFragmentOffset()
Get the starting position in the document of the fragment of the token being drawn. |
int |
getStartOffset()
Get start position of the drawing. |
Color |
getStrikeThroughColor()
Get current strike-through color |
TokenContextPath |
getTokenContextPath()
Get the token-context-path for the token |
TokenID |
getTokenID()
Get token type number according to the appropriate syntax scanner |
int |
getTokenLength()
Get length of the token text |
int |
getTokenOffset()
Get starting position in the document of the token being drawn |
Color |
getUnderlineColor()
Get current underline color |
Color |
getWaveUnderlineColor()
Get current wave underline color |
boolean |
isBOL()
Is current drawing position at the begining of the line? This flag is undefined for the line-number drawing. |
boolean |
isEOL()
Is current drawing position at the end of the line This flag is undefined for the line-number drawing. |
void |
setBackColor(Color backColor)
Set current background color |
void |
setFont(Font font)
Set current font |
void |
setForeColor(Color foreColor)
Set current foreground color |
void |
setStrikeThroughColor(Color strikeThroughColor)
Set current underline color |
void |
setUnderlineColor(Color underlineColor)
Set current underline color |
void |
setWaveUnderlineColor(Color waveUnderlineColor)
Set current wave underline color |
Method Detail |
---|
Color getForeColor()
void setForeColor(Color foreColor)
Color getBackColor()
void setBackColor(Color backColor)
Color getUnderlineColor()
void setUnderlineColor(Color underlineColor)
Color getWaveUnderlineColor()
void setWaveUnderlineColor(Color waveUnderlineColor)
Color getStrikeThroughColor()
void setStrikeThroughColor(Color strikeThroughColor)
Font getFont()
void setFont(Font font)
int getStartOffset()
int getEndOffset()
boolean isBOL()
boolean isEOL()
EditorUI getEditorUI()
TokenID getTokenID()
TokenContextPath getTokenContextPath()
int getTokenOffset()
int getTokenLength()
int getFragmentOffset()
int getFragmentLength()
char[] getBuffer()
int getBufferStartOffset()
|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |