|
||||||||||
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.ShapePropertyCustomiser
public abstract class ShapePropertyCustomiser
This abstract instrument defines the base definition of instruments that customise
shape properties.
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.
10/31/10
Field Summary | |
---|---|
protected Hand |
hand
The Hand instrument. |
protected Pencil |
pencil
The Pencil instrument. |
Fields inherited from class org.malai.instrument.WidgetInstrument |
---|
composer |
Fields inherited from class org.malai.instrument.Instrument |
---|
activated, eventables, links, modified |
Constructor Summary | |
---|---|
ShapePropertyCustomiser(UIComposer<?> composer,
Hand hand,
Pencil pencil)
Creates the instrument. |
Method Summary | |
---|---|
Hand |
getHand()
|
Pencil |
getPencil()
|
void |
onActionExecuted(Action action)
Notifies the handler when the given action is executed. |
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 abstract void |
setWidgetsVisible(boolean visible)
Sets the widgets of the instrument visible or not. |
void |
update()
Updates the instrument and its widgets |
protected abstract void |
update(IShape shape)
Updates the widgets using the given shape. |
Methods inherited from class org.malai.instrument.WidgetInstrument |
---|
getComposer, initialiseWidgets, setActivated |
Methods inherited from class org.malai.instrument.Instrument |
---|
addEventable, addLink, clearEvents, getLinks, getSizeLinks, hasLinks, initialiseLinks, interimFeedback, isActivated, isModified, load, onActionAborted, onActionAdded, onActionCancelled, onActionDone, 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 Hand hand
protected Pencil pencil
Constructor Detail |
---|
public ShapePropertyCustomiser(UIComposer<?> composer, Hand hand, Pencil pencil)
composer
- The composer that manages the widgets of the instrument.hand
- The Hand instrument.pencil
- The Pencil instrument.
java.lang.IllegalArgumentException
- If one of the given parameters is null.Method Detail |
---|
public void onActionExecuted(Action action)
ActionHandler
onActionExecuted
in interface ActionHandler
onActionExecuted
in class Instrument
action
- The executed action.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 update()
protected abstract void update(IShape shape)
shape
- The shape used to update the widgets. If null, nothing is performed.protected abstract void setWidgetsVisible(boolean visible)
visible
- True: they are visible.public void setActivated(boolean activated)
Instrument
setActivated
in class Instrument
activated
- True = activation.public Hand getHand()
public Pencil getPencil()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |