Search in sources :

Example 1 with TypLine

use of uk.me.parabola.imgfmt.app.typ.TypLine in project mkgmap by openstreetmap.

the class TypTextReaderTest method testLineTwoColours.

@Test
public void testLineTwoColours() {
    TypTextReader tr = makeTyp("[_line]\n" + "Type=0x00\n" + "UseOrientation=Y\n" + "LineWidth=2\n" + "BorderWidth=1\n" + "Xpm=\"0 0 2 0\"\n" + "\"1 c #DDDDDD\"\n" + "\"2 c #999999\"\n" + "String1=0x04,Road\n" + "String2=0x01,Route non-définie\n" + "String3=0x03,Weg\n" + "ExtendedLabels=Y\n" + "FontStyle=SmallFont\n" + "CustomColor=No\n" + "[end]");
    TypData data = tr.getData();
    TypLine line = data.getLines().get(0);
    ImgFileWriter w = new ArrayImgWriter();
    line.write(w, data.getEncoder());
}
Also used : TypData(uk.me.parabola.imgfmt.app.typ.TypData) TypLine(uk.me.parabola.imgfmt.app.typ.TypLine) ArrayImgWriter(func.lib.ArrayImgWriter) ImgFileWriter(uk.me.parabola.imgfmt.app.ImgFileWriter) Test(org.junit.Test)

Aggregations

ArrayImgWriter (func.lib.ArrayImgWriter)1 Test (org.junit.Test)1 ImgFileWriter (uk.me.parabola.imgfmt.app.ImgFileWriter)1 TypData (uk.me.parabola.imgfmt.app.typ.TypData)1 TypLine (uk.me.parabola.imgfmt.app.typ.TypLine)1