All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.czyzby.lml.parser.impl.attribute.group.VerticalGroupPaddingRightLmlAttribute Maven / Gradle / Ivy

package com.github.czyzby.lml.parser.impl.attribute.group;

import com.badlogic.gdx.scenes.scene2d.ui.VerticalGroup;
import com.github.czyzby.lml.parser.LmlParser;
import com.github.czyzby.lml.parser.tag.LmlAttribute;
import com.github.czyzby.lml.parser.tag.LmlTag;

/** See {@link VerticalGroup#padRight(float)}. Mapped to "groupPadRight".
 *
 * @author MJ */
public class VerticalGroupPaddingRightLmlAttribute implements LmlAttribute {
    @Override
    public Class getHandledType() {
        return VerticalGroup.class;
    }

    @Override
    public void process(final LmlParser parser, final LmlTag tag, final VerticalGroup actor,
            final String rawAttributeData) {
        actor.padRight(parser.parseFloat(rawAttributeData, actor));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy