|
|||||||||
| Home >> All >> com >> memoire >> [ jedit overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.memoire.jedit
Class JEditSyntaxStyle

java.lang.Objectcom.memoire.jedit.JEditSyntaxStyle
- public class JEditSyntaxStyle
- extends java.lang.Object
A simple text style class. It can specify the color, italic flag, and bold flag of a run of text.
- Version:
- $Id: JEditSyntaxStyle.java,v 1.3 2001/07/25 17:39:05 desnoix Exp $
| Field Summary | |
private boolean |
bold
|
private java.awt.Color |
color
|
private java.awt.FontMetrics |
fontMetrics
|
private boolean |
italic
|
private java.awt.Font |
lastFont
|
private java.awt.Font |
lastStyledFont
|
| Constructor Summary | |
JEditSyntaxStyle(java.awt.Color color,
boolean italic,
boolean bold)
Creates a new JEditSyntaxStyle. |
|
| Method Summary | |
java.awt.Color |
getColor()
Returns the color specified in this style. |
java.awt.FontMetrics |
getFontMetrics(java.awt.Font font)
Returns the font metrics for the styled font. |
java.awt.Font |
getStyledFont(java.awt.Font font)
Returns the specified font, but with the style's bold and italic flags applied. |
boolean |
isBold()
Returns true if boldface is enabled for this style. |
boolean |
isItalic()
Returns true if italics is enabled for this style. |
boolean |
isPlain()
Returns true if no font styles are enabled. |
void |
setGraphicsFlags(java.awt.Graphics gfx,
java.awt.Font font)
Sets the foreground color and font of the specified graphics context to that specified in this style. |
java.lang.String |
toString()
Returns a string representation of this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
color
private java.awt.Color color
italic
private boolean italic
bold
private boolean bold
lastFont
private java.awt.Font lastFont
lastStyledFont
private java.awt.Font lastStyledFont
fontMetrics
private java.awt.FontMetrics fontMetrics
| Constructor Detail |
JEditSyntaxStyle
public JEditSyntaxStyle(java.awt.Color color, boolean italic, boolean bold)
- Creates a new JEditSyntaxStyle.
| Method Detail |
getColor
public java.awt.Color getColor()
- Returns the color specified in this style.
isPlain
public boolean isPlain()
- Returns true if no font styles are enabled.
isItalic
public boolean isItalic()
- Returns true if italics is enabled for this style.
isBold
public boolean isBold()
- Returns true if boldface is enabled for this style.
getStyledFont
public java.awt.Font getStyledFont(java.awt.Font font)
- Returns the specified font, but with the style's bold and
italic flags applied.
getFontMetrics
public java.awt.FontMetrics getFontMetrics(java.awt.Font font)
- Returns the font metrics for the styled font.
setGraphicsFlags
public void setGraphicsFlags(java.awt.Graphics gfx, java.awt.Font font)
- Sets the foreground color and font of the specified graphics
context to that specified in this style.
toString
public java.lang.String toString()
- Returns a string representation of this object.
|
|||||||||
| Home >> All >> com >> memoire >> [ jedit overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.memoire.jedit.JEditSyntaxStyle