Maven module :un.engine : engine-ui :
Class : un.engine.ui.style.WidgetStyles
Extends/Implements : -
Subclasses : -

convenient methods to manipulate widget styles.
author  Johann Sorel


Variables : NONE, NULL_CST
Functions : readMargin, readTransform, readShapeStyle, readGeomStyle, readFontStyle, readGeomStyle, readShapeStyle, readFontStyle, readEffects, readElementStyle, asPaint, mergeDoc, isNone, evaluate


public Chars NONE

public Constant NULL_CST


public Margin readMargin (WStyle style, Document doc, Chars propName)

public MatrixRW readTransform (WStyle style, Document doc, Chars propName)


Rebuild shape styles from style.
param  style
param  propName the property name containing the definition
return  ShapeStyle array
public ShapeStyle[] readShapeStyle (WStyle style, Chars propName)


Rebuild geometry styles from style.
param  style
param  propName the property name containing the definition
return  GeomStyle array
public GeomStyle[] readGeomStyle (WStyle style, Chars propName)


Rebuild font style from style.
param  style
param  propName the property name containing the definition
return  FontStyle
public FontStyle readFontStyle (WStyle style, Chars propName)

public GeomStyle readGeomStyle (WStyle style, Document doc)

public ShapeStyle readShapeStyle (WStyle style, Document doc)

public FontStyle readFontStyle (WStyle style, Document doc)

public Task[] readEffects (WStyle style, Chars propName)

public void readElementStyle (WStyle style, Document doc, GeomStyle candidate)

public Paint asPaint (Object candidate)

public Document mergeDoc (Document base, Document diff, boolean createNew)


Test if an expression is a 'none'.
None expressions are used to erase field values.

@param candidate
@return true if given object is a non expression
public boolean isNone (Object candidate)

public void evaluate (Geometry2D geom, Object widget)