package com.github.czyzby.lml.parser.impl.attribute.label;
import com.badlogic.gdx.scenes.scene2d.ui.Label;
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 Label#setEllipsis(boolean)}. Mapped to "ellipsis".
*
* @author MJ */
public class EllipsisLmlAttribute implements LmlAttribute<Label> {
@Override
public Class<Label> getHandledType() {
return Label.class;
}
@Override
public void process(final LmlParser parser, final LmlTag tag, final Label actor, final String rawAttributeData) {
actor.setEllipsis(parser.parseBoolean(rawAttributeData, actor));
}
}