|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.malai.instrument.Instrument
org.malai.instrument.WidgetInstrument
net.sf.latexdraw.instruments.DrawingPropertiesCustomiser
public class DrawingPropertiesCustomiser
This instrument modifies the properties of the drawing.
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.
2012-04-01
Nested Class Summary | |
---|---|
private static class |
DrawingPropertiesCustomiser.CheckBox2CustDrawing
The link that maps a check box to action that modifies the drawing's properties. |
private static class |
DrawingPropertiesCustomiser.ComboBox2CustDrawing
The link that maps a combo box to action that modifies the drawing's properties. |
private static class |
DrawingPropertiesCustomiser.TextField2CustDrawing
The link that maps text fields to action that modifies the drawing's properties. |
Field Summary | |
---|---|
protected MTextField |
labelField
The field that changes the label of the drawing. |
protected LaTeXGenerator |
latexGen
The LaTeX code generator. |
protected MCheckBox |
middleHorizPosCB
Defines if the horizontal position of the drawing must be centred. |
protected MComboBox |
positionCB
Defines the position of the drawing. |
protected MTextField |
titleField
The field that changes the title of the drawing. |
Fields inherited from class org.malai.instrument.WidgetInstrument |
---|
composer |
Fields inherited from class org.malai.instrument.Instrument |
---|
activated, eventables, links, modified |
Constructor Summary | |
---|---|
DrawingPropertiesCustomiser(UIComposer<?> composer,
LaTeXGenerator latexGen)
Creates the instrument. |
Method Summary | |
---|---|
MTextField |
getLabelField()
|
MCheckBox |
getMiddleHorizPosCB()
|
MComboBox |
getPositionCB()
|
MTextField |
getTitleField()
|
protected void |
initialiseLinks()
Initialises the links of the instrument. |
protected void |
initialiseWidgets()
Initialises the widgets of the instrument. |
void |
load(boolean generalPreferences,
java.lang.String nsURI,
org.w3c.dom.Element root)
Loads data save in an XML document. |
void |
onUndoableRedo(Undoable undoable)
Actions to do when an undoable object is redone. |
void |
onUndoableUndo(Undoable undoable)
Actions to do when an undoable object is undone. |
void |
reinit()
Reinitialises the object. |
void |
save(boolean generalPreferences,
java.lang.String nsURI,
org.w3c.dom.Document document,
org.w3c.dom.Element root)
Saves the parameters of the instrument into an XML tag. |
void |
setActivated(boolean activated)
Activates or deactivates the instrument. |
protected void |
updateWidgets()
|
Methods inherited from class org.malai.instrument.WidgetInstrument |
---|
getComposer, setActivated |
Methods inherited from class org.malai.instrument.Instrument |
---|
addEventable, addLink, clearEvents, getLinks, getSizeLinks, hasLinks, interimFeedback, isActivated, isModified, onActionAborted, onActionAdded, onActionCancelled, onActionDone, onActionExecuted, onUndoableAdded, removeLink, setModified |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected MTextField titleField
protected MTextField labelField
protected LaTeXGenerator latexGen
protected MCheckBox middleHorizPosCB
protected MComboBox positionCB
Constructor Detail |
---|
public DrawingPropertiesCustomiser(UIComposer<?> composer, LaTeXGenerator latexGen)
composer
- The composer that manages the widgets of the instrument.latexGen
- The LaTeX code generator.Method Detail |
---|
public void onUndoableUndo(Undoable undoable)
UndoHandler
onUndoableUndo
in interface UndoHandler
onUndoableUndo
in class Instrument
undoable
- The undone object.public void onUndoableRedo(Undoable undoable)
UndoHandler
onUndoableRedo
in interface UndoHandler
onUndoableRedo
in class Instrument
undoable
- The redone object.public void reinit()
Reinitialisable
reinit
in interface Reinitialisable
reinit
in class Instrument
public void save(boolean generalPreferences, java.lang.String nsURI, org.w3c.dom.Document document, org.w3c.dom.Element root)
Preferenciable
save
in interface Preferenciable
save
in class Instrument
generalPreferences
- True: this operation is called to save the general preferences of the interactive system.
Otherwise, it is called to save a presentation in a document. This parameter is useful when different information
must be saved during a presentation backup or a general preferences backup.nsURI
- The namespace that must be added to tags corresponding to the instrument's parameters.document
- The XML document.root
- The root element that will contains the instrument's parameters.public void load(boolean generalPreferences, java.lang.String nsURI, org.w3c.dom.Element root)
Preferenciable
load
in interface Preferenciable
load
in class Instrument
generalPreferences
- True: this operation is called to load the general preferences of the interactive system.
Otherwise, it is called to load a presentation in a document. This parameter is useful when different information
must be loaded during a presentation backup or a general preferences backup.nsURI
- The namespace that must be added to tags corresponding to the instrument's parameters.root
- The meta data element.protected void initialiseWidgets()
WidgetInstrument
initialiseWidgets
in class WidgetInstrument
protected void updateWidgets()
public void setActivated(boolean activated)
Instrument
setActivated
in class Instrument
activated
- True = activation.public final MComboBox getPositionCB()
public final MCheckBox getMiddleHorizPosCB()
public final MTextField getTitleField()
public final MTextField getLabelField()
protected void initialiseLinks()
Instrument
initialiseLinks
in class Instrument
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |