當前位置: 首頁>>代碼示例>>Java>>正文


Java Shadow類代碼示例

本文整理匯總了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;
}
 
開發者ID:kiegroup,項目名稱:appformer,代碼行數:12,代碼來源:RedTheme.java

示例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;
}
 
開發者ID:kiegroup,項目名稱:appformer,代碼行數:12,代碼來源:MultiColouredTheme.java

示例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;
}
 
開發者ID:kiegroup,項目名稱:appformer,代碼行數:12,代碼來源:BlueTheme.java

示例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();
    }
 
開發者ID:kiegroup,項目名稱:appformer,代碼行數:48,代碼來源:ProgressBar.java


注:本文中的com.ait.lienzo.client.core.types.Shadow類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。