|
||||||||||
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.MagneticGridCustomiser
public class MagneticGridCustomiser
This instrument customises the magnetic grid.
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.
11/14/10
Field Summary | |
---|---|
protected LMagneticGrid |
grid
The grid to customise. |
protected MSpinner |
gridSpacing
Defines the spacing of the personal grid. |
protected MCheckBox |
magneticCB
Sets if the grid is magnetic. |
protected MComboBox |
styleList
Contains the different possible kind of grids. |
Fields inherited from class org.malai.instrument.WidgetInstrument |
---|
composer |
Fields inherited from class org.malai.instrument.Instrument |
---|
activated, eventables, links, modified |
Constructor Summary | |
---|---|
MagneticGridCustomiser(UIComposer<?> composer,
LMagneticGrid grid)
Initialises the instrument. |
Method Summary | |
---|---|
static MComboBox |
createStyleList()
|
MSpinner |
getGridSpacing()
|
MCheckBox |
getMagneticCB()
|
MComboBox |
getStyleList()
|
protected void |
initialiseLinks()
Initialises the links of the instrument. |
protected void |
initialiseWidgets()
Initialises the widgets of the instrument. |
void |
interimFeedback()
Reinitialises the interim feedback of the instrument. |
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 |
setActivated(boolean activated)
Activates or deactivates the instrument. |
protected void |
update()
|
Methods inherited from class org.malai.instrument.WidgetInstrument |
---|
getComposer, setActivated |
Methods inherited from class org.malai.instrument.Instrument |
---|
addEventable, addLink, clearEvents, getLinks, getSizeLinks, hasLinks, isActivated, isModified, load, onActionAborted, onActionAdded, onActionCancelled, onActionDone, onActionExecuted, onUndoableAdded, reinit, removeLink, save, setModified |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected LMagneticGrid grid
protected MComboBox styleList
protected MCheckBox magneticCB
protected MSpinner gridSpacing
Constructor Detail |
---|
public MagneticGridCustomiser(UIComposer<?> composer, LMagneticGrid grid)
composer
- The composer that manages the widgets of the instrument.grid
- The grid to customise.
java.lang.IllegalArgumentException
- If the given grid is null.Method Detail |
---|
protected void initialiseWidgets()
WidgetInstrument
initialiseWidgets
in class WidgetInstrument
public static MComboBox createStyleList()
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 interimFeedback()
Instrument
interimFeedback
in class Instrument
protected void update()
protected void initialiseLinks()
Instrument
initialiseLinks
in class Instrument
public void setActivated(boolean activated)
Instrument
setActivated
in class Instrument
activated
- True = activation.public MComboBox getStyleList()
public MCheckBox getMagneticCB()
public MSpinner getGridSpacing()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |