• repeatbehavior > http://weblogsjavanet/blog/chet
  • http://weblogsjavanet/blog/chet

    免费下载 下载该文档 文档格式:PDF   更新时间:2009-12-01   下载次数:0   点击次数:1
    文档基本属性
    文档语言:Simplified Chinese
    文档格式:pdf
    文档作者:李贵雄
    关键词:
    主题:
    备注:
    点击这里显示更多文档属性
    Filthy Makeover
    Chet Haase Java Client Architect Sun Microsystems
    Overall Presentation Goal
    Learn how to use Filthy Rich Clients techniques to create applications that are more compelling and dynamic. And more fun.
    www.javapolis.com
    Speaker's Qualifications
    Chet
    is developer and architect at Sun writes a technical blog on Desktop Java related issues at http://weblogs.java.net/blog/chet is co-author of the book Filthy Rich Clients speaks frequently on Desktop Java topics at conferences
    But most importantly Chet has the microphone
    www.javapolis.com
    Most desktop applications are boring. They don't have to be.
    www.javapolis.com
    Agenda

    Gradients Translucency Glass Pane Blur Shadow Animation Animated Transitions
    www.javapolis.com
    Agenda

    Gradients Translucency Glass Pane Blur Shadow Animation Animated Transitions
    www.javapolis.com
    Gradients

    Interpolation between colors Two-stop linear gradient
    In original Java 2D API, J2SE 1.2 Since Java SE 6 Since Java SE 6
    Multi-stop linear gradient
    Radial gradient
    www.javapolis.com
    Two-Stop Linear Gradient
    Interpolation between 2 colors
    www.javapolis.com
    Two-Stop Linear Gradient: Sample Code
    Color start, end;
    protected void paintComponent(Graphics g) { Graphics2D g2 = (Graphics2D) g.create(); Paint p = new GradientPaint( 0, 0, start, 0, getHeight(), end); g2.setPaint(p); g2.fillRect(0, 0, getWidth(), getHeight()); g2.dispose(); super.paintComponent(g);
    }
    www.javapolis.com
    Multi-Stop Linear Gradient

    Interpolation between several colors Can be emulated with two-stop gradients
    LinearGradientPaint p; p = new LinearGradientPaint( 0.0f, 0.0f, 0.0f, getHeight(), new float[] { 0.0f, 0.5f, 0.501f, 1.0f }, new Color[] { new Color(0x63a5f7), new Color(0x3799f4), new Color(0x2d7eeb), new Color(0x30a5f9) });

    下一页

  • 下载地址 (推荐使用迅雷下载地址,速度快,支持断点续传)
  • 免费下载 PDF格式下载
  • 您可能感兴趣的
  • behavior  usesubmitbehavior  commandbehavior  fluidmovebehavior  style.behavior  behavior可数吗  loadbehavior  servicebehavior  behavior是什么意思  behavior用法