Class TransparencyEditor
java.lang.Object
com.levigo.jadice.web.client.util.command.InjectedCommand
com.levigo.jadice.web.client.internal.annotation.editor.AnnotationPropertyEditor
com.levigo.jadice.web.client.internal.annotation.editor.TransparencyEditor
- All Implemented Interfaces:
MenuContributor
,Command
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
execute()
This method is called in order to execute the command.protected boolean
Returns the selected state of this command.protected boolean
void
setAlpha
(float alpha) void
setAlphaFillColor
(Double alphaFillColor) void
setAlphaStrokeColor
(Double alphaStrokeColor) void
setEnableFillColor
(boolean enableFillColor) void
setEnableStrokeColor
(boolean enableStrokeColor) protected void
setTransparent
(ShapeBasedAnnotation a, boolean enabled) Methods inherited from class com.levigo.jadice.web.client.internal.annotation.editor.AnnotationPropertyEditor
applyUndoableEdit, captureMemento, captureStateThenEdit, contribute, getAnnoTool, getIcon, getIcon, getIconName, getPage, getProfile, getRenderControls, getSelectedItems, getUndoManager, init, repaint, reset, setIconName
Methods inherited from class com.levigo.jadice.web.client.util.command.InjectedCommand
canExecute, canExecute, clearInjections, execute, getKey, isSelected, setKey
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.levigo.jadice.web.client.util.command.Command
getID, isAvailable, isAvailable
-
Constructor Details
-
TransparencyEditor
public TransparencyEditor()
-
-
Method Details
-
execute
protected void execute()Description copied from class:InjectedCommand
This method is called in order to execute the command. It is only called, after the arguments have been validated and injected and only ifInjectedCommand.canExecute()
has returnedtrue
.- Overrides:
execute
in classAnnotationPropertyEditor
-
setAlpha
public void setAlpha(float alpha) -
setEnableFillColor
public void setEnableFillColor(boolean enableFillColor) -
setEnableStrokeColor
public void setEnableStrokeColor(boolean enableStrokeColor) -
getAlphaFillColor
-
setAlphaFillColor
-
getAlphaStrokeColor
-
setAlphaStrokeColor
-
isTransparent
-
setTransparent
-
isSelected
protected boolean isSelected()Description copied from class:InjectedCommand
Returns the selected state of this command. This is typically used only for commands with a meaningful selection state.- Overrides:
isSelected
in classInjectedCommand
- Returns:
- the selected state
-