use of de.neemann.digital.draw.graphics.Orientation in project Digital by hneemann.
the class ProbeShape method drawTo.
@Override
public void drawTo(Graphic graphic, Style highLight) {
int dy = -1;
Orientation orientation = Orientation.LEFTCENTER;
if (isLabel) {
graphic.drawText(new Vector(2, -4), new Vector(3, -4), label, Orientation.LEFTBOTTOM, Style.NORMAL);
dy = 4;
orientation = Orientation.LEFTTOP;
}
String v = "?";
if (inValueCopy != null)
v = format.formatToView(inValueCopy);
graphic.drawText(new Vector(2, dy), new Vector(3, dy), v, orientation, Style.NORMAL);
}
Aggregations