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

net.sourceforge.plantuml.braille.DriverTextBraille Maven / Gradle / Ivy

There is a newer version: 1.2024.8
Show newest version
// THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.
package net.sourceforge.plantuml.braille;

import net.sourceforge.plantuml.klimt.UParam;
import net.sourceforge.plantuml.klimt.color.ColorMapper;
import net.sourceforge.plantuml.klimt.drawing.UDriver;
import net.sourceforge.plantuml.klimt.shape.UText;

public class DriverTextBraille implements UDriver {

	public DriverTextBraille() {
	}

	public void draw(UText text, double x, double y, ColorMapper mapper, UParam param, BrailleGrid grid) {
		y -= grid.getQuanta() * 3;
		x += grid.getQuanta();

		for (BrailleChar bchar : BrailleCharFactory.build(text.getText())) {
			bchar.draw(grid, x, y);
			x += grid.getQuanta() * 3;
		}

	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy