Search in sources :

Example 1 with Orientation

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);
}
Also used : Orientation(de.neemann.digital.draw.graphics.Orientation) Vector(de.neemann.digital.draw.graphics.Vector)

Aggregations

Orientation (de.neemann.digital.draw.graphics.Orientation)1 Vector (de.neemann.digital.draw.graphics.Vector)1