|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectPreferences
public class Preferences
This contains several preferences for layouting and solving
graphs and a master object containing the general used
preferences.
Every JDomGraph
has a Preferences
object of its own and has to be repaintet, if its preferences
are not aligned to the global master preferences.
The global preferences concerning layout and solving can be
changed by using the menu checkboxes of the JDomGraphMenu
.
The default values are true
for showing labels and
automatical solving and false
for automatical
window fitting.
Constructor Summary | |
---|---|
Preferences()
Creating a new Preferences object with the default values. |
Method Summary | |
---|---|
Preferences |
clone()
Clones this. |
void |
copyTo(Preferences second)
Copies these preferences to a second given Preferences object. |
static Preferences |
getInstance()
Returns the master Preferences object
which is a new one if there is no master yet. |
static boolean |
isAutoCount()
|
static boolean |
isFitToWindow()
|
boolean |
isShowLabels()
|
static boolean |
mustUpdateLayout(Preferences previousLayoutPreferences)
Compares the given Preferences object with this one. |
static void |
setAutoCount(boolean xautoCount)
This can enable or disable the automatical solving / counting of solved forms. |
static void |
setFitToWindow(boolean fit)
Set to true, fitWindow will cause the visible and all further opened graphs to be zoomed out if they oversize their tab. |
void |
setShowLabels(boolean showLabels)
Setting the parameter indicating whether node labels or node names are shown. |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Preferences()
Method Detail |
---|
public boolean isShowLabels()
public void setShowLabels(boolean showLabels)
true
, node labels are shown)
showLabels
- set this to false for showing node namespublic static void setFitToWindow(boolean fit)
false
.
fit
- public static boolean isAutoCount()
public static void setAutoCount(boolean xautoCount)
true
(automatical counting)
xautoCount
- public static boolean isFitToWindow()
public static Preferences getInstance()
Preferences
object
which is a new one if there is no master yet.
public Preferences clone()
clone
in class Object
public static boolean mustUpdateLayout(Preferences previousLayoutPreferences)
previousLayoutPreferences
- the preferences to compare to
public void copyTo(Preferences second)
Preferences
object.
second
- the Preferences to copy the values to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |