|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.malai.instrument.Instrument
net.sf.latexdraw.instruments.PreferencesSetter
public class PreferencesSetter
This instrument modifies the preferences.
This file is part of LaTeXDraw
Copyright (c) 2005-2012 Arnaud BLOUIN
LaTeXDraw is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
LaTeXDraw is distributed without any warranty; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more details.
01/18/11
Field Summary | |
---|---|
protected MCheckBox |
alpaInterCheckBox
This check-box allows to set if alpha-interpolation must be used. |
protected MCheckBox |
antialiasingCheckBox
This check-box allows to set if antialiasing must be used. |
protected MCheckBox |
checkNewVersion
Allows the set if the program must check new version on start up. |
protected MRadioButton |
classicGridRB
The widget used to display the standard grid. |
protected MCheckBox |
colorRenderCheckBox
This check-box allows to set if colour rendering quality must be used. |
protected MCheckBox |
displayBordersCB
This check-box allows to set if the user wants to the borders of the drawing. |
protected MCheckBox |
displayGridCB
This check-box allows to set if the user wants to display the grid. |
protected MCheckBox |
displayXScaleCB
This check-box allows to set if the user wants to display the X-scale. |
protected MCheckBox |
displayYScaleCB
This check-box allows to set if the user wants to display the Y-scale. |
protected javax.swing.JFileChooser |
fileChooser
The file chooser of paths selection. |
protected LFrame |
frame
The main frame. |
protected IPoint |
framePosition
Defines the position of the main frame. |
protected java.awt.Dimension |
frameSize
Defines the size of the main frame. |
protected boolean |
isFrameMaximized
Defines if the main frame is maximised or not. |
protected MComboBox |
langList
The list that contains the supported languages. |
protected MTextArea |
latexIncludes
The text field used to defines the latex packages to use. |
protected MCheckBox |
magneticGridCB
The widget that defines if the grid is magnetic. |
protected MSpinner |
nbRecentFilesField
The widget used to defines the number of recent file to keep in memory. |
protected MTextField |
pathExportField
This textField allows to set the default directories for exporting actions. |
protected MTextField |
pathOpenField
This textField allows to set the default directories for open/save actions. |
protected MTextField |
pathTexEditorField
The field used to modifies the path of the selected latex editor. |
protected MSpinner |
persoGridGapField
The field used to modifies the gap of the customised grid. |
protected MRadioButton |
persoGridRB
The widget used to display a customised grid. |
protected java.util.List<java.lang.String> |
recentFilesName
The recent files. |
protected MCheckBox |
renderingCheckBox
This check-box allows to set if rendering quality must be used. |
protected MComboBox |
themeList
The list that contains the supported theme. |
protected MComboBox |
unitChoice
Allows to set the unit of length by default. |
Fields inherited from class org.malai.instrument.Instrument |
---|
activated, eventables, links, modified |
Constructor Summary | |
---|---|
PreferencesSetter(LFrame frame)
Creates the instrument. |
Methods inherited from class org.malai.instrument.Instrument |
---|
addEventable, addLink, clearEvents, getLinks, getSizeLinks, hasLinks, interimFeedback, isActivated, isModified, load, onActionAborted, onActionAdded, onActionCancelled, onActionDone, onActionExecuted, onUndoableAdded, onUndoableRedo, onUndoableUndo, reinit, removeLink, save, setActivated, setModified |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.swing.JFileChooser fileChooser
protected MCheckBox antialiasingCheckBox
protected MCheckBox renderingCheckBox
protected MCheckBox colorRenderCheckBox
protected MCheckBox displayGridCB
protected MCheckBox magneticGridCB
protected MCheckBox displayXScaleCB
protected MCheckBox displayYScaleCB
protected MCheckBox checkNewVersion
protected MCheckBox displayBordersCB
protected MCheckBox alpaInterCheckBox
protected MTextField pathOpenField
protected MTextField pathExportField
protected MTextField pathTexEditorField
protected MTextArea latexIncludes
protected MComboBox unitChoice
protected MComboBox themeList
protected MComboBox langList
protected MRadioButton classicGridRB
protected MRadioButton persoGridRB
protected MSpinner persoGridGapField
protected MSpinner nbRecentFilesField
protected java.util.List<java.lang.String> recentFilesName
protected boolean isFrameMaximized
protected java.awt.Dimension frameSize
protected IPoint framePosition
protected LFrame frame
Constructor Detail |
---|
public PreferencesSetter(LFrame frame)
frame
- The frame that will be set while setting parameters.Method Detail |
---|
protected void initialiseWidgets()
public void addRecentFile(java.lang.String absolutePath)
absolutePath
- The absolute path of the file to add.protected void initialiseLinks()
Instrument
initialiseLinks
in class Instrument
public javax.swing.JFileChooser getFileChooser()
public MCheckBox getAntialiasingCheckBox()
public MCheckBox getRenderingCheckBox()
public MCheckBox getColorRenderCheckBox()
public MCheckBox getDisplayGridCB()
public MCheckBox getMagneticGridCB()
public MCheckBox getDisplayXScaleCB()
public MCheckBox getDisplayYScaleCB()
public MCheckBox getCheckNewVersion()
public MCheckBox getDisplayBordersCB()
public MCheckBox getAlpaInterCheckBox()
public MTextField getPathOpenField()
public MTextField getPathExportField()
public MTextField getPathTexEditorField()
public MTextArea getLatexIncludes()
public MComboBox getUnitChoice()
public MComboBox getThemeList()
public MComboBox getLangList()
public MRadioButton getClassicGridRB()
public MRadioButton getPersoGridRB()
public MSpinner getPersoGridGapField()
public MSpinner getNbRecentFilesField()
private void processXMLDataPreference(java.util.Map<java.lang.String,org.w3c.dom.Node> prefMap)
public boolean isVersionCheckEnable()
private void applyValues()
public void writeXMLPreferences()
public void readXMLPreferences()
java.lang.IllegalArgumentException
- If a problem occurs.private void readXMLPreferencesFromFile(java.io.File xmlFile)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |