org.unlaxer.diagram.DefaultRenderingContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unlaxer-diagram Show documentation
Show all versions of unlaxer-diagram Show documentation
a simple parser combinator inspired by RelaxNG
The newest version!
package org.unlaxer.diagram;
import java.awt.Insets;
public class DefaultRenderingContext implements RenderingContext{
@Override
public Insets insets(Renderable renderable) {
return new Insets(10, 10, 10, 10);
}
@Override
public float fontSize(Renderable renderable) {
return 20;
}
@Override
public float currentX() {
// TODO Auto-generated method stub
return 0;
}
@Override
public float currentY() {
// TODO Auto-generated method stub
return 0;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy