本文整理了Java中com.ait.lienzo.client.core.shape.Text.setStrokeColor()
方法的一些代码示例,展示了Text.setStrokeColor()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Text.setStrokeColor()
方法的具体详情如下:
包路径:com.ait.lienzo.client.core.shape.Text
类名称:Text
方法名:setStrokeColor
暂无
代码示例来源:origin: kiegroup/appformer
public void setStrokeColour(final String strokeColour) {
text.setStrokeColor(strokeColour);
}
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-lienzo
@SuppressWarnings("unchecked")
public void setTitleStrokeColor(final String color) {
text.setStrokeColor(color);
}
代码示例来源:origin: org.uberfire/uberfire-wires-core-scratchpad
public void setStrokeColour(final String strokeColour) {
text.setStrokeColor(strokeColour);
}
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-lienzo
@Override
public T setTitleStrokeColor(final String color) {
label.ifPresent(l -> l.configure(text -> text.setStrokeColor(color)));
return cast();
}
代码示例来源:origin: org.uberfire/uberfire-wires-core-scratchpad
@Override
protected Text makeShape() {
final Text text = new Text("T",
"normal",
FONT_POINT);
text.setStrokeColor(ShapesUtils.RGB_STROKE_TEXT)
.setFillColor(ShapesUtils.RGB_FILL_TEXT)
.setTextBaseLine(TextBaseLine.MIDDLE)
.setTextAlign(TextAlign.CENTER)
.setDraggable(false);
return text;
}
代码示例来源:origin: kiegroup/drools-wb
public TypeShape( final Circle shape,
final TypeNode node,
final boolean isReadOnly ) {
super( shape,
node,
isReadOnly );
setNodeLabel( getNodeLabel() );
plus.setFillColor( Color.rgbToBrowserHexColor( 150,
0,
0 ) );
plus.setStrokeColor( Color.rgbToBrowserHexColor( 200,
0,
0 ) );
}
代码示例来源:origin: org.drools/drools-wb-guided-dtree-editor-client
public ActionInsertShape( final Circle shape,
final ActionInsertNode node,
final boolean isReadOnly ) {
super( shape,
node,
isReadOnly );
setNodeLabel( getNodeLabel() );
plus.setFillColor( Color.rgbToBrowserHexColor( 150,
150,
0 ) );
plus.setStrokeColor( Color.rgbToBrowserHexColor( 200,
200,
0 ) );
}
代码示例来源:origin: org.drools/drools-wb-guided-dtree-editor-client
public ConstraintShape( final Circle shape,
final ConstraintNode node,
final boolean isReadOnly ) {
super( shape,
node,
isReadOnly );
setNodeLabel( getNodeLabel() );
plus.setFillColor( Color.rgbToBrowserHexColor( 0,
200,
0 ) );
plus.setStrokeColor( Color.rgbToBrowserHexColor( 0,
150,
0 ) );
}
代码示例来源:origin: kiegroup/appformer
@Override
protected Text makeShape() {
final Text text = new Text("T",
"normal",
FONT_POINT);
text.setStrokeColor(ShapesUtils.RGB_STROKE_TEXT)
.setFillColor(ShapesUtils.RGB_FILL_TEXT)
.setTextBaseLine(TextBaseLine.MIDDLE)
.setTextAlign(TextAlign.CENTER)
.setDraggable(false);
return text;
}
代码示例来源:origin: kiegroup/drools-wb
public ActionInsertShape( final Circle shape,
final ActionInsertNode node,
final boolean isReadOnly ) {
super( shape,
node,
isReadOnly );
setNodeLabel( getNodeLabel() );
plus.setFillColor( Color.rgbToBrowserHexColor( 150,
150,
0 ) );
plus.setStrokeColor( Color.rgbToBrowserHexColor( 200,
200,
0 ) );
}
代码示例来源:origin: kiegroup/drools-wb
public ActionUpdateShape( final Circle shape,
final ActionUpdateNode node,
final boolean isReadOnly ) {
super( shape,
node,
isReadOnly );
setNodeLabel( getNodeLabel() );
plus.setFillColor( Color.rgbToBrowserHexColor( 150,
150,
0 ) );
plus.setStrokeColor( Color.rgbToBrowserHexColor( 200,
200,
0 ) );
}
代码示例来源:origin: org.drools/drools-wb-guided-dtree-editor-client
public ActionRetractShape( final Circle shape,
final ActionRetractNode node,
final boolean isReadOnly ) {
super( shape,
node,
isReadOnly );
setNodeLabel( getNodeLabel() );
plus.setFillColor( Color.rgbToBrowserHexColor( 150,
150,
0 ) );
plus.setStrokeColor( Color.rgbToBrowserHexColor( 200,
200,
0 ) );
}
代码示例来源:origin: org.drools/drools-wb-guided-dtree-editor-client
public TypeShape( final Circle shape,
final TypeNode node,
final boolean isReadOnly ) {
super( shape,
node,
isReadOnly );
setNodeLabel( getNodeLabel() );
plus.setFillColor( Color.rgbToBrowserHexColor( 150,
0,
0 ) );
plus.setStrokeColor( Color.rgbToBrowserHexColor( 200,
0,
0 ) );
}
代码示例来源:origin: kiegroup/drools-wb
public ConstraintShape( final Circle shape,
final ConstraintNode node,
final boolean isReadOnly ) {
super( shape,
node,
isReadOnly );
setNodeLabel( getNodeLabel() );
plus.setFillColor( Color.rgbToBrowserHexColor( 0,
200,
0 ) );
plus.setStrokeColor( Color.rgbToBrowserHexColor( 0,
150,
0 ) );
}
代码示例来源:origin: org.drools/drools-wb-guided-dtree-editor-client
public ActionUpdateShape( final Circle shape,
final ActionUpdateNode node,
final boolean isReadOnly ) {
super( shape,
node,
isReadOnly );
setNodeLabel( getNodeLabel() );
plus.setFillColor( Color.rgbToBrowserHexColor( 150,
150,
0 ) );
plus.setStrokeColor( Color.rgbToBrowserHexColor( 200,
200,
0 ) );
}
代码示例来源:origin: kiegroup/drools-wb
public ActionRetractShape( final Circle shape,
final ActionRetractNode node,
final boolean isReadOnly ) {
super( shape,
node,
isReadOnly );
setNodeLabel( getNodeLabel() );
plus.setFillColor( Color.rgbToBrowserHexColor( 150,
150,
0 ) );
plus.setStrokeColor( Color.rgbToBrowserHexColor( 200,
200,
0 ) );
}
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-lienzo
private void initialize(final BoundingBox boundingBox) {
this.text = new Text("")
.setAlpha(TEXT_ALPHA)
.setFontFamily(TEXT_FONT_FAMILY)
.setFontSize(TEXT_FONT_SIZE)
.setFillColor(TEXT_FILL_COLOR)
.setStrokeColor(TEXT_STROKE_COLOR)
.setStrokeWidth(TEXT_STROKE_WIDTH)
.setTextAlign(TEXT_ALIGN)
.setDraggable(false);
this.textWrapper = new TextBoundsWrap(text,
new BoundingBox(0,
0,
1,
1));
this.text.setWrapper(textWrapper);
this.currentTextLayout = TEXT_LAYOUT_ALIGN;
textContainer.add(text);
textContainer.add(textSpacer);
// Ensure path bounds are available on the selection context.
text.setFillBoundsForSelection(true);
initializeHandlers();
resize(boundingBox.getWidth(), boundingBox.getHeight());
}
代码示例来源:origin: org.uberfire/uberfire-wires-core-client
"Lucida Console",
12).setFillColor(ColorName.WHITE.getValue())
.setStrokeColor(substrateColor).setTextBaseLine(TextBaseLine.MIDDLE).setTextAlign(TextAlign.CENTER);
代码示例来源:origin: kiegroup/appformer
"Lucida Console",
12).setFillColor(ColorName.WHITE.getValue())
.setStrokeColor(substrateColor).setTextBaseLine(TextBaseLine.MIDDLE).setTextAlign(TextAlign.CENTER);
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-lienzo-extensions
.setFontFamily(TEXT_FAMILY)
.setStrokeWidth(TEXT_WIDTH)
.setStrokeColor(TEXT_COLOR)
.setStrokeAlpha(1);
final BoundingBox descTextBB = descText.getBoundingBox();
内容来源于网络,如有侵权,请联系作者删除!