<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 97,  comments - 93,  trackbacks - 0

    據(jù)說極有可能迅速取代目前流行的SWING和SWT技術(shù)。

    轉(zhuǎn)自http://blogs.sun.com/chrisoliver/entry/f3

    F3

    My name is Chris Oliver. I came to Sun through their acquisition of Seebeyond in September 2005. I'd like to present something about my current work – it’s not public yet but it should be open-sourced on java.net shortly.

    My project is called F3 which stands for “Form follows function”, and its purpose was to explore making GUI programming easier in general.

    F3 is actually a declarative Java scripting language with static typing for good IDE support and compile-time error reporting (unlike JavaScript...), type-inference, declarative syntax, and automatic data-binding with full support for 2d graphics and standard Swing components as well as declarative animation. You can also import java classes, create new Java objects, call their methods, and implement Java interfaces.

    We have IDE plugins for both Netbeans and Eclipse Both plugins support as-you-type validation, code-completion, syntax highlighting, and hyperlink navigation (with control-mouse-over).

    F3 attempts to demonstrate that we're not exploiting the full capabilities of the Java platform for GUI development and that together with supporting tools like F3, the Java platform is highly competitive with or superior to competing GUI development platforms such as Macromedia Flash/Flex/Open Laszlo, Adobe Apollo, Microsoft WPF/XAML, Mozilla XUL, AJAX/DHMTL..

    F3 fully supports Swing as well as Java2D. In fact, we have a translator that can translate most of SVG to F3.

    Here are some small examples to give you a flavor of what F3 is like:

     1 import f3.ui.canvas.*;
     2 
     3 import f3.ui.*;
     4 
     5 Canvas {
     6     content: Rect {
     7         x: 20
     8         y: 20
     9         height: 80
    10         width: 300
    11         arcHeight: 20
    12         arcWidth: 20
    13         fill: cyan
    14         stroke: purple
    15         strokeWidth: 2
    16     }
    17 }
    18 

    produces:

    An example using image filters is:

     1 import f3.ui.*;
     2 
     3 import f3.ui.canvas.*;
     4 
     5 import f3.ui.filter.*;
     6 
     7 Canvas {
     8     content: Text {
     9         x: 20
    10         y: 20
    11         content: "Welcome to F3"
    12         font: Font { face: VERDANA, style: [ITALIC, BOLD], size: 80 }
    13 
    14         fill: LinearGradient {
    15             x1: 0, y1: 0, x2: 0, y2: 1
    16             stops: 
    17             [Stop {
    18                 offset: 0
    19                 color: blue
    20             },
    21             Stop {
    22                 offset: 0.5
    23                 color: dodgerblue
    24             },
    25             Stop {
    26                 offset: 1
    27                 color: blue
    28             }]
    29         }
    30         filter: [Glow {amount: 0.1}, Noise {monochrome: true, distribution: 0}]
    31     }
    32 }

    which gives:

    It’s also possible to use 2D content as a TexturePaint through the concept of a “Pattern” as in SVG, for example:

     1 import f3.ui.*;
     2 import f3.ui.canvas.*;
     3 
     4 Canvas {
     5     content: Ellipse {    
     6         fill: Pattern {
     7              content: Polygon {
     8                  points: [552551525]
     9                  fill: orange
    10                  stroke: red
    11                  strokeWidth: 3
    12              }
    13        } 
    14        cx: 100
    15        cy: 50
    16        radiusX: 90
    17        radiusY: 40
    18        stroke: black
    19     }
    20 }

    which gives:

    These snippets don’t demonstrate F3’s full capabilities.

    Using F3, I’m able to write nearly exact replicas of many Flash or DHTML or Java programs in a remarkably short amount of time, for example this Flash program the F3 version below was written in 2 days):

    This combination DHTML/Flash program the F3 version below (although incomplete) was also written in about 2 days:

    posted on 2007-05-07 22:30 wqwqwqwqwq 閱讀(996) 評論(1)  編輯  收藏 所屬分類: SUN Tech

    FeedBack:
    # re: F3(轉(zhuǎn)http://blogs.sun.com/chrisoliver/entry/f3)
    2010-03-03 11:36 | runescape gold
    He too, loved his 2nd wife. She is a very considerate person, always patient and in fact is the merchant’s
    confidante. Whenever the merchant faced some problems,
    he always turned to his 2nd wife and she would always help him out and tide him through difficult times  回復(fù)  更多評論
      
    <2007年5月>
    293012345
    6789101112
    13141516171819
    20212223242526
    272829303112
    3456789




    常用鏈接

    留言簿(10)

    隨筆分類(95)

    隨筆檔案(97)

    文章檔案(10)

    相冊

    J2ME技術(shù)網(wǎng)站

    java技術(shù)相關(guān)

    mess

    搜索

    •  

    最新評論

    閱讀排行榜

    校園夢網(wǎng)網(wǎng)絡(luò)電話,中國最優(yōu)秀的網(wǎng)絡(luò)電話
    主站蜘蛛池模板: 日韩免费高清播放器| 久久精品亚洲一区二区三区浴池| 亚洲av无码不卡久久| 十八禁无码免费网站| 国产精品亚洲综合一区| 亚洲日韩国产一区二区三区在线| 亚洲伊人久久大香线蕉影院| 最近中文字幕大全免费视频| 久久精品国产亚洲综合色| 亚洲不卡在线观看| 国产精品视频免费一区二区 | 国产一级a毛一级a看免费视频| 2022中文字字幕久亚洲| 中文字幕永久免费视频| 久久精品亚洲中文字幕无码网站| 成全在线观看免费观看大全| 亚洲邪恶天堂影院在线观看| 久草视频在线免费| 亚洲AV成人精品一区二区三区| 国产午夜鲁丝片AV无码免费| 一区二区三区精品高清视频免费在线播放| 亚洲性日韩精品一区二区三区 | 免费A级毛片av无码| 国产成人免费A在线视频| 国产亚洲人成网站在线观看不卡| 东方aⅴ免费观看久久av| 亚洲福利秒拍一区二区| 成人av免费电影| 国产99久久久久久免费看| 成人免费无码大片A毛片抽搐| 亚洲欧美日韩一区二区三区在线| 亚洲国产精品一区二区三区久久| 免费无码H肉动漫在线观看麻豆| 18亚洲男同志videos网站| 日韩免费观看一级毛片看看| 国产精品美女久久久免费| 亚洲妓女综合网99| 三年片在线观看免费| 亚洲综合色7777情网站777| **真实毛片免费观看| 亚洲av乱码一区二区三区按摩|