|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vectomatic.client.rep.controller.ControllerBase
org.vectomatic.client.rep.controller.StyleController
public class StyleController
Class to manage changes of the color or transparency of a shape
| Field Summary |
|---|
| Fields inherited from class org.vectomatic.client.rep.controller.ControllerBase |
|---|
_app |
| Constructor Summary | |
|---|---|
StyleController(RepApplication app,
String label,
Attribute styleAttribute,
Attribute opacityAttribute,
IStyle defaultStyle,
FloatAttributeValue defaultOpacity)
|
|
| Method Summary | |
|---|---|
FloatAttributeValue |
getOpacity()
Returns the currently selected opacity This method is called by controllers which instantiate new shapes |
IStyle |
getStyle()
Returns the currently selected style. |
Attribute |
getStyleAttribute()
|
com.google.gwt.user.client.ui.Widget |
getWidget()
|
void |
onChange(com.google.gwt.user.client.ui.Widget sender)
Invoked when the user changes the list box. |
void |
selectionChanged(ShapeSelection selection)
|
void |
setOpacity(FloatAttributeValue opacity)
Invoked when the user changes the opacity in the color menu |
void |
setStyle(IStyle style)
Invoked when the user changes the color in the color menu |
| Methods inherited from class org.vectomatic.client.rep.controller.ControllerBase |
|---|
activate, deactivate, keyDown, keyPress, keyUp, mouseDown, mouseMove, mouseUp, render |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StyleController(RepApplication app,
String label,
Attribute styleAttribute,
Attribute opacityAttribute,
IStyle defaultStyle,
FloatAttributeValue defaultOpacity)
| Method Detail |
|---|
public com.google.gwt.user.client.ui.Widget getWidget()
public void selectionChanged(ShapeSelection selection)
selectionChanged in interface IShapeSelectionListenerpublic void onChange(com.google.gwt.user.client.ui.Widget sender)
onChange in interface com.google.gwt.user.client.ui.ChangeListenerpublic void setOpacity(FloatAttributeValue opacity)
opacity - public void setStyle(IStyle style)
public IStyle getStyle()
public FloatAttributeValue getOpacity()
public Attribute getStyleAttribute()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||