本文整理了Java中com.ait.lienzo.client.core.shape.Text.getLineHeight()
方法的一些代码示例,展示了Text.getLineHeight()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Text.getLineHeight()
方法的具体详情如下:
包路径:com.ait.lienzo.client.core.shape.Text
类名称:Text
方法名:getLineHeight
[英]Returns TextMetrics, which includes an approximate value for height. As close as we can estimate it at this time.
[中]返回TextMetrics,其中包含高度的近似值。尽可能接近我们目前的估计。
代码示例来源:origin: ahome-it/lienzo-core
@Override
public void draw(final Context2D context, final String s, final double xOffset, final double lineNum)
{
context.fillTextWithGradient(s, xOffset, getLineHeight(context) * lineNum, 0, 0, wide + (wide / 6), high + (high / 6), color);
}
});
代码示例来源:origin: com.ahome-it/lienzo-core
@Override
public void draw(final Context2D context, final String s, final double xOffset, final double lineNum)
{
context.fillTextWithGradient(s, xOffset, getLineHeight(context) * lineNum, 0, 0, wide + (wide / 6), high + (high / 6), color);
}
});
代码示例来源:origin: com.ahome-it/lienzo-core
@Override
public void draw(final Context2D context, final String s, final double xOffset, final double lineNum)
{
context.fillText(s, xOffset, getLineHeight(context) * lineNum);
}
};
代码示例来源:origin: ahome-it/lienzo-core
@Override
public void draw(final Context2D context, final String s, final double xOffset, final double lineNum)
{
context.fillTextWithGradient(s, xOffset, getLineHeight(context) * lineNum, 0, 0, wide + (wide / 6), high + (high / 6), color);
}
});
代码示例来源:origin: ahome-it/lienzo-core
@Override
public void draw(final Context2D context, final String s, final double xOffset, final double lineNum)
{
context.fillText(s, xOffset, getLineHeight(context) * lineNum);
}
};
代码示例来源:origin: ahome-it/lienzo-core
@Override
public void draw(final Context2D context, final String s, final double xOffset, final double lineNum)
{
context.fillText(s, xOffset, getLineHeight(context) * lineNum);
}
};
代码示例来源:origin: org.kie.workbench/kie-wb-common-dmn-client
public static double getExpressionTextLineHeight(final GridRendererTheme theme) {
//The parameter to Text.getLineHeight(..) is not used so passing null is safe (for now).
return makeExpressionText(theme).getLineHeight(null);
}
代码示例来源:origin: com.ahome-it/lienzo-core
@Override
public void draw(final Context2D context, final String s, final double xOffset, final double lineNum)
{
context.beginPath();
context.strokeText(s, xOffset, getLineHeight(context) * lineNum);
context.closePath();
}
};
代码示例来源:origin: ahome-it/lienzo-core
@Override
public void draw(final Context2D context, final String s, final double xOffset, final double lineNum)
{
context.fillTextWithGradient(s, xOffset, getLineHeight(context) * lineNum, 0, 0, layer.getWidth(), layer.getHeight(), color);
}
});
代码示例来源:origin: ahome-it/lienzo-core
@Override
public void draw(final Context2D context, final String s, final double xOffset, final double lineNum)
{
context.fillTextWithGradient(s, xOffset, getLineHeight(context) * lineNum, 0, 0, layer.getWidth(), layer.getHeight(), color);
}
});
代码示例来源:origin: com.ahome-it/lienzo-core
@Override
public void draw(final Context2D context, final String s, final double xOffset, final double lineNum)
{
context.fillTextWithGradient(s, xOffset, getLineHeight(context) * lineNum, 0, 0, layer.getWidth(), layer.getHeight(), color);
}
});
代码示例来源:origin: ahome-it/lienzo-core
@Override
public void draw(final Context2D context, final String s, final double xOffset, final double lineNum)
{
context.beginPath();
context.strokeText(s, xOffset, getLineHeight(context) * lineNum);
context.closePath();
}
};
代码示例来源:origin: ahome-it/lienzo-core
@Override
public void draw(final Context2D context, final String s, final double xOffset, final double lineNum)
{
context.beginPath();
context.strokeText(s, xOffset, getLineHeight(context) * lineNum);
context.closePath();
}
};
内容来源于网络,如有侵权,请联系作者删除!