|
||||||||||
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.ShapeFillingCustomiser
public class ShapeFillingCustomiser
This instrument modifies filling properties of shapes or the pencil.
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/11/2010
Field Summary | |
---|---|
protected MColorButton |
fillColButton
Sets the colour of the interior of a shape. |
protected MComboBox |
fillStyleCB
Changes the style of filling. |
protected MSpinner |
gradAngleField
Changes the angle of the gradient. |
protected MColorButton |
gradEndColButton
Changes the second colour of a gradient. |
protected MSpinner |
gradMidPtField
Changes the mid point of the gradient. |
protected MColorButton |
gradStartColButton
Changes the first colour of a gradient. |
protected MSpinner |
hatchAngleField
Changes the angle of the hatchings. |
protected MColorButton |
hatchColButton
Sets the colour of the hatchings. |
protected MSpinner |
hatchSepField
Changes the separation of the hatchings. |
protected MSpinner |
hatchWidthField
Changes the width of the hatchings. |
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 | |
---|---|
ShapeFillingCustomiser(UIComposer<?> composer,
Hand hand,
Pencil pencil)
Creates the instrument. |
Method Summary | |
---|---|
static MComboBox |
createFillingChoice()
Creates a list that contains all kinds of hatchings. |
MColorButton |
getFillColButton()
|
MComboBox |
getFillStyleCB()
|
MSpinner |
getGradAngleField()
|
MColorButton |
getGradEndColButton()
|
MSpinner |
getGradMidPtField()
|
MColorButton |
getGradStartColButton()
|
MSpinner |
getHatchAngleField()
|
MColorButton |
getHatchColButton()
|
MSpinner |
getHatchSepField()
|
MSpinner |
getHatchWidthField()
|
protected void |
initialiseLinks()
Initialises the links of the instrument. |
protected void |
initialiseWidgets()
Initialises the widgets of 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, setActivated, 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, 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 MColorButton fillColButton
protected MColorButton hatchColButton
protected MColorButton gradStartColButton
protected MColorButton gradEndColButton
protected MComboBox fillStyleCB
protected MSpinner gradMidPtField
protected MSpinner gradAngleField
protected MSpinner hatchSepField
protected MSpinner hatchAngleField
protected MSpinner hatchWidthField
Constructor Detail |
---|
public ShapeFillingCustomiser(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 argument is null.Method Detail |
---|
public static MComboBox createFillingChoice()
protected void initialiseWidgets()
WidgetInstrument
initialiseWidgets
in class WidgetInstrument
protected void update(IShape shape)
ShapePropertyCustomiser
update
in class ShapePropertyCustomiser
shape
- The shape used to update the widgets. If null, nothing is performed.protected void setWidgetsVisible(boolean visible)
ShapePropertyCustomiser
setWidgetsVisible
in class ShapePropertyCustomiser
visible
- True: they are visible.protected void initialiseLinks()
Instrument
initialiseLinks
in class Instrument
public MColorButton getFillColButton()
public MColorButton getHatchColButton()
public MColorButton getGradStartColButton()
public MColorButton getGradEndColButton()
public MComboBox getFillStyleCB()
public MSpinner getGradMidPtField()
public MSpinner getGradAngleField()
public MSpinner getHatchSepField()
public MSpinner getHatchAngleField()
public MSpinner getHatchWidthField()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |