本文整理了Java中com.ait.lienzo.client.core.shape.Text.setAlpha()
方法的一些代码示例,展示了Text.setAlpha()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Text.setAlpha()
方法的具体详情如下:
包路径:com.ait.lienzo.client.core.shape.Text
类名称:Text
方法名:setAlpha
暂无
代码示例来源:origin: kiegroup/appformer
@Override
public void setSelected(final boolean isSelected) {
if (isSelected) {
bounding.setAlpha(ALPHA_SELECTED);
} else {
bounding.setAlpha(ALPHA_DESELECTED);
}
}
代码示例来源:origin: kiegroup/drools-wb
@Override
public void onCollapseProgress( final double pct ) {
plus.setAlpha( pct );
}
代码示例来源:origin: org.drools/drools-wb-guided-dtree-editor-client
@Override
public void onCollapseProgress( final double pct ) {
plus.setAlpha( pct );
}
代码示例来源:origin: org.uberfire/uberfire-wires-core-scratchpad
@Override
public void setSelected(final boolean isSelected) {
if (isSelected) {
bounding.setAlpha(ALPHA_SELECTED);
} else {
bounding.setAlpha(ALPHA_DESELECTED);
}
}
代码示例来源:origin: kiegroup/drools-wb
@Override
public void onExpandProgress( double pct ) {
plus.setAlpha( 1.0 - pct );
}
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-lienzo
@SuppressWarnings("unchecked")
public void setTitleAlpha(final double alpha) {
text.setAlpha(alpha);
}
代码示例来源:origin: org.drools/drools-wb-guided-dtree-editor-client
@Override
public void onExpandProgress( double pct ) {
plus.setAlpha( 1.0 - pct );
}
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-lienzo
@Override
@SuppressWarnings("unchecked")
public T setTitleAlpha(final double alpha) {
label.ifPresent(l -> l.configure(text -> text.setAlpha(alpha)));
return cast();
}
代码示例来源:origin: org.drools/drools-wb-guided-dtree-editor-client
@Override
public void onCollapseStart() {
add( plus );
nodeLabel.moveToTop();
plus.setAlpha( 0.0 );
}
代码示例来源:origin: kiegroup/drools-wb
@Override
public void onCollapseStart() {
add( plus );
nodeLabel.moveToTop();
plus.setAlpha( 0.0 );
}
代码示例来源:origin: org.dashbuilder/dashbuilder-lienzo-charts
private void _build(PieChartData data) {
final DataTable dataTable = data.getDataTable();
final String[] categories = dataTable.getColumn(getData().getCategoriesProperty()).getStringValues();
final Double[] values = dataTable.getColumn(getData().getValuesProperty()).getNumericValues();
labels.setListening(false);
for (int i = 0; i < values.length; i++)
{
final PieSlice slice = new PieSlice(0, 0, 0);
final int index = i;
slice.addNodeMouseClickHandler(new NodeMouseClickHandler() {
@Override
public void onNodeMouseClick(NodeMouseClickEvent event) {
// GWT.log("PieChart - filtering on " + categories[index] + "/" + index);
PieChart.this.fireEvent(new ValueSelectedEvent(getData().getCategoriesProperty(), index));
}
});
slice.setFillColor(getColor(i)).setStrokeColor(ColorName.BLACK).setStrokeWidth(1);
slice.setID("pieSlice"+i);
pieSlices.add(slice);
slices.add(slice);
Text text = new Text("", getFontFamily(), getFontStyle(), getFontSize()).setFillColor(ColorName.BLACK).setTextBaseLine(TextBaseLine.MIDDLE).setAlpha(0d);
texts.add(text);
labels.add(text);
}
addOnAreaChartCentered(labels);
addOnAreaChartCentered(slices);
}
代码示例来源: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: com.ahome-it/lienzo-charts
slices.add(slice);
Text text = new Text(getLabel(value * 100), getFontFamily(), getFontStyle(), getFontSize()).setFillColor(ColorName.BLACK).setTextBaseLine(TextBaseLine.MIDDLE).setAlpha(0);
texts.add(text);
代码示例来源:origin: kiegroup/appformer
bounding.setTextAlign(text.getTextAlign());
bounding.setStrokeWidth(BOUNDARY_SIZE);
bounding.setAlpha(ALPHA_DESELECTED);
代码示例来源:origin: org.uberfire/uberfire-wires-core-scratchpad
bounding.setTextAlign(text.getTextAlign());
bounding.setStrokeWidth(BOUNDARY_SIZE);
bounding.setAlpha(ALPHA_DESELECTED);
内容来源于网络,如有侵权,请联系作者删除!