Package snap.styler
Class GradientPaintTool
java.lang.Object
snap.props.PropObject
snap.view.ViewOwner
snap.styler.StylerOwner
snap.styler.GradientPaintTool
- All Implemented Interfaces:
PropChange.DoChange
UI editing for GradientPaint.
-
Field Summary
Fields inherited from class snap.view.ViewOwner
Action, DragDrop, DragEnter, DragEvents, DragExit, DragGesture, DragOver, KeyEvents, KeyPress, KeyRelease, KeyType, MouseDrag, MouseEnter, MouseEvents, MouseExit, MouseMove, MousePress, MouseRelease, Showing_Prop, WinClose
Fields inherited from class snap.props.PropObject
_pcs, EMPTY_OBJECT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the gradient for the shape.Returns the string used for the inspector window title.protected void
initUI()
Initialize UI.protected void
resetUI()
Updates the UI controls from the currently selected shape.protected void
Updates the currently selected shape from the UI controls.Methods inherited from class snap.styler.StylerOwner
getStyler, setStyler
Methods inherited from class snap.view.ViewOwner
addKeyActionFilter, addKeyActionHandler, beep, cancelReset, createUI, createUIForClass, disableEvents, dispatchEventToOwner, enableEvents, fireActionEventForObject, getEnv, getFirstFocus, getImage, getNative, getToggleGroup, getUI, getUI, getUISource, getView, getView, getViewBoolValue, getViewFloatValue, getViewIntValue, getViewItems, getViewSelIndex, getViewSelItem, getViewStringValue, getViewText, getViewValue, getWindow, initShowing, invokeResetUI, invokeRespondUI, isEventThread, isSendEventDisabled, isShowing, isUISet, isViewDisabled, isViewEnabled, isViewVisible, isWindowSet, isWindowVisible, requestFocus, resetLater, runLater, runLaterDelayed, runLaterOnce, setFirstFocus, setSendEventDisabled, setShowing, setViewDisabled, setViewEnabled, setViewItems, setViewItems, setViewSelIndex, setViewSelItem, setViewText, setViewValue, setViewVisible, setWindowVisible
Methods inherited from class snap.props.PropObject
addDeepChangeListener, addPropChangeListener, addPropChangeListener, clone, firePropChange, firePropChange, firePropChange, getPropDefault, getPropForName, getPropParent, getPropSet, getPropsForArchival, getPropsForArchivalExtra, getPropValue, initProps, isPropDefault, processPropChange, removeDeepChangeListener, removePropChangeListener, removePropChangeListener, setPropValue, toString, toStringProps
-
Constructor Details
-
GradientPaintTool
public GradientPaintTool()
-
-
Method Details
-
initUI
protected void initUI()Initialize UI. -
resetUI
protected void resetUI()Updates the UI controls from the currently selected shape. -
respondUI
Updates the currently selected shape from the UI controls. -
getDefaultFill
Returns the gradient for the shape. Creates one if the shape doesn't have a gradient fill. -
getWindowTitle
Returns the string used for the inspector window title.
-