|
||||||||||
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
net.sf.latexdraw.instruments.MetaShapeCustomiser
public class MetaShapeCustomiser
This meta-instrument manages the instruments that customises 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 ShapeArcCustomiser |
arcCustomiser
This instrument customises the arc parameters. |
protected ShapeArrowCustomiser |
arrowCustomiser
This instrument customises the arrows. |
protected ShapeBorderCustomiser |
borderCustomiser
This instrument customises the line properties of shapes and the pencil. |
protected ShapeCoordDimCustomiser |
dimPosCustomiser
This instrument customises the dimensions and the position. |
protected ShapeDotCustomiser |
dotCustomiser
This instrument customises the dot parameters. |
protected ShapeDoubleBorderCustomiser |
doubleBorderCustomiser
This instrument customises the double line properties of shapes and the pencil. |
protected ShapeFillingCustomiser |
fillingCustomiser
This instrument customises the filling properties of shapes and the pencil. |
protected ShapeGridCustomiser |
gridCustomiser
This instrument customises grids and axes. |
protected ShapeRotationCustomiser |
rotationCustomiser
This instrument customises the rotation angle. |
protected ShapeShadowCustomiser |
shadowCustomiser
This instrument customises the shadow properties of shapes and the pencil. |
protected ShapeAxesCustomiser |
shapeAxesCustomiser
This instrument that customises axes. |
protected ShapeGrouper |
shapeGrouper
This instrument groups shapes. |
protected TextCustomiser |
textCustomiser
This instrument customises the texts. |
Fields inherited from class net.sf.latexdraw.instruments.ShapePropertyCustomiser |
---|
hand, pencil |
Fields inherited from class org.malai.instrument.WidgetInstrument |
---|
composer |
Fields inherited from class org.malai.instrument.Instrument |
---|
activated, eventables, links, modified |
Constructor Summary | |
---|---|
MetaShapeCustomiser(UIComposer<?> composer,
Hand hand,
Pencil pencil)
Creates the instrument. |
Method Summary | |
---|---|
void |
addEventable(Eventable eventable)
Binds the interaction of the links of the instrument to a Eventable object that produces events used by the interactions. |
void |
clearEvents()
Stops the interactions of the instrument and clears all its events waiting for a process. |
ShapeArcCustomiser |
getArcCustomiser()
|
ShapeArrowCustomiser |
getArrowCustomiser()
|
ShapeAxesCustomiser |
getAxesCustomiser()
|
ShapeBorderCustomiser |
getBorderCustomiser()
|
ShapeCoordDimCustomiser |
getDimPosCustomiser()
|
ShapeDotCustomiser |
getDotCustomiser()
|
ShapeDoubleBorderCustomiser |
getDoubleBorderCustomiser()
|
ShapeFillingCustomiser |
getFillingCustomiser()
|
ShapeGridCustomiser |
getGridCustomiser()
|
ShapeRotationCustomiser |
getRotationCustomiser()
|
ShapeShadowCustomiser |
getShadowCustomiser()
|
ShapeGrouper |
getShapeGrouper()
|
TextCustomiser |
getTextCustomiser()
|
protected void |
initialiseLinks()
Initialises the links of the instrument. |
protected void |
initialiseWidgets()
Initialises the widgets of the instrument. |
void |
setActivated(boolean activated)
Activates or deactivates the instrument. |
protected void |
setWidgetsVisible(boolean visible)
Sets the widgets of the instrument visible or not. |
protected void |
update(IShape shape)
Updates the widgets using the given shape. |
Methods inherited from class net.sf.latexdraw.instruments.ShapePropertyCustomiser |
---|
getHand, getPencil, onActionExecuted, onUndoableRedo, onUndoableUndo, update |
Methods inherited from class org.malai.instrument.WidgetInstrument |
---|
getComposer, setActivated |
Methods inherited from class org.malai.instrument.Instrument |
---|
addLink, getLinks, getSizeLinks, hasLinks, 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 ShapeBorderCustomiser borderCustomiser
protected ShapeDoubleBorderCustomiser doubleBorderCustomiser
protected ShapeShadowCustomiser shadowCustomiser
protected ShapeFillingCustomiser fillingCustomiser
protected TextCustomiser textCustomiser
protected ShapeRotationCustomiser rotationCustomiser
protected ShapeArrowCustomiser arrowCustomiser
protected ShapeDotCustomiser dotCustomiser
protected ShapeArcCustomiser arcCustomiser
protected ShapeCoordDimCustomiser dimPosCustomiser
protected ShapeGridCustomiser gridCustomiser
protected ShapeGrouper shapeGrouper
protected ShapeAxesCustomiser shapeAxesCustomiser
Constructor Detail |
---|
public MetaShapeCustomiser(UIComposer<?> composer, Hand hand, Pencil pencil)
hand
- The Hand instrument.pencil
- The Pencil instrument.composer
- The composer that manages the widgets of the instrument.
java.lang.IllegalArgumentException
- If one of the given parameters is null.Method Detail |
---|
public void addEventable(Eventable eventable)
Instrument
addEventable
in class Instrument
eventable
- The eventable object that gathers event used by the interactions.public void setActivated(boolean activated)
Instrument
setActivated
in class ShapePropertyCustomiser
activated
- True = activation.protected void update(IShape shape)
ShapePropertyCustomiser
update
in class ShapePropertyCustomiser
shape
- The shape used to update the widgets. If null, nothing is performed.public void clearEvents()
Instrument
clearEvents
in class Instrument
public ShapeAxesCustomiser getAxesCustomiser()
public ShapeGridCustomiser getGridCustomiser()
public ShapeBorderCustomiser getBorderCustomiser()
public ShapeDoubleBorderCustomiser getDoubleBorderCustomiser()
public ShapeShadowCustomiser getShadowCustomiser()
public ShapeFillingCustomiser getFillingCustomiser()
public TextCustomiser getTextCustomiser()
public ShapeRotationCustomiser getRotationCustomiser()
public ShapeArrowCustomiser getArrowCustomiser()
public ShapeDotCustomiser getDotCustomiser()
public ShapeArcCustomiser getArcCustomiser()
public ShapeCoordDimCustomiser getDimPosCustomiser()
public ShapeGrouper getShapeGrouper()
protected void initialiseLinks()
Instrument
initialiseLinks
in class Instrument
protected void initialiseWidgets()
WidgetInstrument
initialiseWidgets
in class WidgetInstrument
protected void setWidgetsVisible(boolean visible)
ShapePropertyCustomiser
setWidgetsVisible
in class ShapePropertyCustomiser
visible
- True: they are visible.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |