|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tigris.gef.base.Prefs
This class contains preferences that control the behavior of the editor to make it the way that the user likes it. Needs-More-Work: more of the frame-rate could be self-adusting, not a preference. Needs-More-Work: more of this should move into RedrawManager.
Field Summary | |
protected boolean |
_printBackground
True if background Layers should appear in printouts. |
protected boolean |
_printGrid
True if LayerGrid should appear in printouts. |
Constructor Summary | |
Prefs()
Construct a new Prefs instance |
Method Summary | |
java.awt.Color |
getHandleColor()
|
java.awt.Color |
getHighlightColor()
The color of the highlight shown to draw the users attention |
java.awt.Color |
getLockedHandleColor()
|
boolean |
getPrintBackground()
|
boolean |
getPrintGrid()
|
java.awt.Color |
getRubberbandColor()
Reply the color that should be used for rubberband lines. |
boolean |
getTryOffScreen()
Should off screen images be used to reduce flicker? |
java.awt.Color |
handleColorFor(org.tigris.gef.presentation.Fig f)
The color of the handles used to manipulate Fig's |
void |
lastRedrawTime(long t)
Set the last redraw time. |
void |
setHandleColor(java.awt.Color c)
The color of the handles used to manipulate Fig's |
void |
setHighlightColor(java.awt.Color c)
The color of the highlight shown to draw the users attention |
void |
setLockedHandleColor(java.awt.Color c)
The color of the handles used to manipulate Fig's |
void |
setPrintBackground(boolean b)
|
void |
setPrintGrid(boolean b)
|
void |
setRedrawTimeThreshold(long t)
if the time between redraws gets longer than this threshold, then switch to a faster redrawing method, at the expense of quality and/or flicker |
void |
setTryOffScreen(boolean b)
Should off screen images be used to reduce flicker? This is not the default behavior because some (beta) versions of WWW browsers do not handle off screen images well. |
boolean |
shouldPaintOffScreen()
Determine if the next redraw should be done on screen or offscreen. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean _printGrid
protected boolean _printBackground
Constructor Detail |
public Prefs()
Method Detail |
public java.awt.Color getRubberbandColor()
public java.awt.Color handleColorFor(org.tigris.gef.presentation.Fig f)
public void setHandleColor(java.awt.Color c)
public java.awt.Color getHandleColor()
public void setLockedHandleColor(java.awt.Color c)
public java.awt.Color getLockedHandleColor()
public java.awt.Color getHighlightColor()
public void setHighlightColor(java.awt.Color c)
public boolean getPrintGrid()
public void setPrintGrid(boolean b)
public boolean getPrintBackground()
public void setPrintBackground(boolean b)
public void lastRedrawTime(long t)
public void setRedrawTimeThreshold(long t)
public void setTryOffScreen(boolean b)
public boolean getTryOffScreen()
public boolean shouldPaintOffScreen()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |