
com.github.czyzby.lml.parser.impl.attribute.scroll.ScrollVelocityXLmlAttribute Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gdx-lml Show documentation
Show all versions of gdx-lml Show documentation
Templates for LibGDX Scene2D UI with HTML-like syntax and FreeMarker-inspired macros.
package com.github.czyzby.lml.parser.impl.attribute.scroll;
import com.badlogic.gdx.scenes.scene2d.ui.ScrollPane;
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 ScrollPane#setVelocityX(float)}. Mapped to "velocityX".
*
* @author MJ */
public class ScrollVelocityXLmlAttribute implements LmlAttribute {
@Override
public Class getHandledType() {
return ScrollPane.class;
}
@Override
public void process(final LmlParser parser, final LmlTag tag, final ScrollPane actor,
final String rawAttributeData) {
actor.setVelocityX(parser.parseFloat(rawAttributeData, actor));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy