本文整理匯總了Java中com.ait.lienzo.client.core.types.Shadow類的典型用法代碼示例。如果您正苦於以下問題:Java Shadow類的具體用法?Java Shadow怎麽用?Java Shadow使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
Shadow類屬於com.ait.lienzo.client.core.types包,在下文中一共展示了Shadow類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getSelector
import com.ait.lienzo.client.core.types.Shadow; //導入依賴的package包/類
@Override
public MultiPath getSelector() {
final MultiPath selector = new MultiPath()
.setStrokeWidth(2.0)
.setStrokeColor(ColorName.RED)
.setShadow(new Shadow(ColorName.DARKRED,
4,
0.0,
0.0));
return selector;
}
示例2: getSelector
import com.ait.lienzo.client.core.types.Shadow; //導入依賴的package包/類
@Override
public MultiPath getSelector() {
final MultiPath selector = new MultiPath()
.setStrokeWidth(2.0)
.setStrokeColor(ColorName.GREEN)
.setShadow(new Shadow(ColorName.DARKGREEN,
4,
0.0,
0.0));
return selector;
}
示例3: getSelector
import com.ait.lienzo.client.core.types.Shadow; //導入依賴的package包/類
@Override
public MultiPath getSelector() {
final MultiPath selector = new MultiPath()
.setStrokeWidth(2.0)
.setStrokeColor(ColorName.BLUE)
.setShadow(new Shadow(ColorName.DARKBLUE,
4,
0.0,
0.0));
return selector;
}
示例4: init
import com.ait.lienzo.client.core.types.Shadow; //導入依賴的package包/類
private void init() {
substrate = new Rectangle(substrateWidth,
substrateHeight);
progress = new Rectangle(progressWidth,
progressHeight);
progressPercentage = new Text("0 %",
"Lucida Console",
12).setFillColor(ColorName.WHITE.getValue())
.setStrokeColor(substrateColor).setTextBaseLine(TextBaseLine.MIDDLE).setTextAlign(TextAlign.CENTER);
substrateGradient = new LinearGradient(0,
substrateHeight,
0,
0);
substrateGradient.addColorStop(0.4,
"rgba(255,255,255, 0.1)");
substrateGradient.addColorStop(0.6,
"rgba(255,255,255, 0.7)");
substrateGradient.addColorStop(0.9,
"rgba(255,255,255,0.4)");
substrateGradient.addColorStop(1,
"rgba(189,189,189,1)");
substrate.setFillGradient(substrateGradient).setShadow(new Shadow(substrateColor,
5,
3,
3))
.setStrokeColor(substrateColor).setStrokeWidth(1);
progressGradient = new LinearGradient(0,
-50,
0,
50);
progressGradient.addColorStop(0.5,
"#4DA4F3");
progressGradient.addColorStop(0.8,
"#ADD9FF");
progressGradient.addColorStop(1,
"#9ED1FF");
progress.setFillGradient(progressGradient);
center();
progress();
}