Package booton.css.value

Examples of booton.css.value.Numeric


     * @param size A radius to set.
     * @param unit A width unit to set.
     * @return Chainable API.
     */
    public final Border radius(double size, Unit unit) {
        return radius(new Numeric(size, unit));
    }
View Full Code Here


     * @param size A width to set.
     * @param unit A width unit to set.
     * @return Chainable API.
     */
    public final Border width(double size, Unit unit) {
        return width(new Numeric(size, unit));
    }
View Full Code Here

     * @param size A position value.
     * @param unit A unit.
     * @return Chainable API.
     */
    public Position left(double size, Unit unit) {
        left = new Numeric(size, unit);

        return chain();
    }
View Full Code Here

     * @param size A position value.
     * @param unit A unit.
     * @return Chainable API.
     */
    public Position right(double size, Unit unit) {
        right = new Numeric(size, unit);

        return chain();
    }
View Full Code Here

     * @param size A position value.
     * @param unit A unit.
     * @return Chainable API.
     */
    public Position top(double size, Unit unit) {
        top = new Numeric(size, unit);

        return chain();
    }
View Full Code Here

     * @param size A position value.
     * @param unit A unit.
     * @return Chainable API.
     */
    public Position bottom(double size, Unit unit) {
        return bottom(new Numeric(size, unit));
    }
View Full Code Here

     * respect to the left (or right, for right-to-left layout) edge of the containing block
     * element's box.
     * </p>
     */
    public Text indent(double size, Unit unit) {
        this.indent = new Numeric(size, unit);

        return chain();
    }
View Full Code Here

     * @param color
     * @return
     */
    public Text shadow(double offsetX, Unit unitX, double offsetY, Unit unitY, Color color) {
        ShadowValue shadow = new ShadowValue();
        shadow.offsetX = new Numeric(offsetX, unitX);
        shadow.offsetY = new Numeric(offsetY, unitY);
        shadow.color = color;
        shadows.add(shadow);

        return chain();
    }
View Full Code Here

     * @param unitBlur
     * @return
     */
    public Text shadow(double offsetX, Unit unitX, double offsetY, Unit unitY, double blur, Unit unitBlur, Color color) {
        ShadowValue shadow = new ShadowValue();
        shadow.offsetX = new Numeric(offsetX, unitX);
        shadow.offsetY = new Numeric(offsetY, unitY);
        shadow.blur = new Numeric(blur, unitBlur);
        shadow.color = color;
        shadows.add(shadow);

        return chain();
    }
View Full Code Here

     * @param angle The angle of the rotation.
     * @param unit The unit of the rotation.
     * @return Chainable API.
     */
    public Transform rotate(double angle, Unit unit) {
        return rotate(new Numeric(angle, unit));
    }
View Full Code Here

TOP

Related Classes of booton.css.value.Numeric

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.