|
||||||||||
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.Zoomer
public class Zoomer
This instrument allows to zoom on the canvas.
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.
05/20/10
Field Summary | |
---|---|
protected Zoomable |
zoomable
The canvas to zoom in/out. |
protected MButton |
zoomDefaultButton
This button allows to set the default zoom level. |
protected MSpinner |
zoomSpinner
The spinner that helps to change the zoom. |
Fields inherited from class org.malai.instrument.Instrument |
---|
activated, eventables, links, modified |
Constructor Summary | |
---|---|
Zoomer(Zoomable zoomable)
Creates and initialises the zoomer. |
Method Summary | |
---|---|
MButton |
getZoomDefaultButton()
|
MSpinner |
getZoomSpinner()
|
protected void |
initialiseLinks()
Initialises the links of the instrument. |
void |
interimFeedback()
Reinitialises the interim feedback of the instrument. |
void |
reinit()
Reinitialises the object. |
void |
setActivated(boolean activated)
Activates or deactivates the instrument. |
Methods inherited from class org.malai.instrument.Instrument |
---|
addEventable, addLink, clearEvents, getLinks, getSizeLinks, hasLinks, isActivated, isModified, load, onActionAborted, onActionAdded, onActionCancelled, onActionDone, onActionExecuted, onUndoableAdded, onUndoableRedo, onUndoableUndo, removeLink, save, setModified |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected MSpinner zoomSpinner
protected MButton zoomDefaultButton
protected Zoomable zoomable
Constructor Detail |
---|
public Zoomer(Zoomable zoomable)
zoomable
- The zoomable object to zoom in/out.
java.lang.IllegalArgumentException
- If the given canvas is null;Method Detail |
---|
public void reinit()
Reinitialisable
reinit
in interface Reinitialisable
reinit
in class Instrument
protected void initialiseLinks()
Instrument
initialiseLinks
in class Instrument
public void interimFeedback()
Instrument
interimFeedback
in class Instrument
public MButton getZoomDefaultButton()
public MSpinner getZoomSpinner()
public void setActivated(boolean activated)
Instrument
setActivated
in class Instrument
activated
- True = activation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |