|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfr.ove.openmath.jome.ctrlview.bidim.GraphicContext
The graphic context of each part of the formula to display.
| Constructor Summary | |
GraphicContext()
The default constructor. |
|
GraphicContext(java.awt.Font font,
java.awt.Color foregroundColor,
java.awt.Color backgroundColor,
java.awt.Color selectionColor)
The Constructor. |
|
GraphicContext(GraphicContext gc)
The constructor by copy. |
|
| Method Summary | |
java.awt.Color |
getBackgroundColor()
Returns the background for the display. |
java.awt.Font |
getFont()
Returns the font used in the graphic context. |
java.awt.Color |
getForegroundColor()
Returns the color used by the graphic context. |
java.awt.Color |
getSelectionColor()
Returns the color used in the graphic context to hilight the selection. |
int |
getSizeRef()
Returns the reference size of the font. |
java.awt.Font |
scaleFont(int nbTime)
Scales the current font. |
void |
setBackgroundColor(java.awt.Color backgroundColor)
Sets a new background color for the display. |
void |
setFont(java.awt.Font font)
Sets a new font to the context. |
void |
setForegroundColor(java.awt.Color foregroundColor)
Sets a new color to the context. |
void |
setSelectionColor(java.awt.Color selectionColor)
Sets a new selection color to the context. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GraphicContext()
public GraphicContext(java.awt.Font font,
java.awt.Color foregroundColor,
java.awt.Color backgroundColor,
java.awt.Color selectionColor)
font - the font used to display all the text elements.selectionColor - the color of all the selected elements.public GraphicContext(GraphicContext gc)
gc - the graphic context to copy.| Method Detail |
public java.awt.Font getFont()
public int getSizeRef()
public java.awt.Color getForegroundColor()
public java.awt.Color getBackgroundColor()
public java.awt.Color getSelectionColor()
public void setFont(java.awt.Font font)
font - the new font.public void setForegroundColor(java.awt.Color foregroundColor)
public void setBackgroundColor(java.awt.Color backgroundColor)
public void setSelectionColor(java.awt.Color selectionColor)
selectionColor - the new color.public java.awt.Font scaleFont(int nbTime)
nbTime - how many the scale factor is applied.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||