|
||||||||||
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.Hand
public class Hand
This instrument allows to manipulate (e.g. move or select) shapes.
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/13/10
Field Summary | |
---|---|
protected ICanvas |
canvas
The canvas that contains the shapes to handle. |
protected LMagneticGrid |
grid
The magnetic grid used to create shapes. |
protected TextSetter |
textSetter
The instrument used to edit texts. |
protected Zoomer |
zoomer
The zoomer that is used to give the zoom level to compute coordinates of the created shapes. |
Fields inherited from class org.malai.instrument.Instrument |
---|
activated, eventables, links, modified |
Constructor Summary | |
---|---|
Hand(ICanvas canvas,
LMagneticGrid grid,
Zoomer zoomer,
TextSetter textSetter)
Creates the Hand instrument. |
Method Summary | |
---|---|
protected void |
initialiseLinks()
Initialises the links of the instrument. |
void |
interimFeedback()
Reinitialises the interim feedback of the instrument. |
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, 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 ICanvas canvas
protected LMagneticGrid grid
protected Zoomer zoomer
protected TextSetter textSetter
Constructor Detail |
---|
public Hand(ICanvas canvas, LMagneticGrid grid, Zoomer zoomer, TextSetter textSetter)
canvas
- The canvas that contains the shapes to handle.grid
- The magnetic grid used to compute points.zoomer
- The zoomer used to computed points.textSetter
- The instrument used to add texts.
java.lang.IllegalArgumentException
- If on of the given argument is null.Method Detail |
---|
protected void initialiseLinks()
Instrument
initialiseLinks
in class Instrument
public void setActivated(boolean activated)
Instrument
setActivated
in class Instrument
activated
- True = activation.public void interimFeedback()
Instrument
interimFeedback
in class Instrument
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |