Package org.wicketstuff.artwork.liquidcanvas.graphics

Examples of org.wicketstuff.artwork.liquidcanvas.graphics.Graphics


   *            Page parameters
   */
    public LiquidExamplePage(final PageParameters parameters) {
      super(parameters);

      Graphics g=new Shadow();
      g.setChainedGraphics(new Border()).setChainedGraphics(new Gradient());
      LiquidCanvasBehavior liquidCanvasBehaviorOne=new LiquidCanvasBehavior(g,new RoundedRect());
     
      WebMarkupContainer liquidOneExample=new WebMarkupContainer("LiquidOne");
      liquidOneExample.add(liquidCanvasBehaviorOne);
        add(liquidOneExample);
       
       
      g=new Shadow(9,"#FF3300",2);
      g.setChainedGraphics(new Border()).setChainedGraphics(new Gradient());
      LiquidCanvasBehavior liquidCanvasBehaviorTwo=new LiquidCanvasBehavior(g,new RoundedRect());

       
      WebMarkupContainer liquidTwoExample=new WebMarkupContainer("LiquidTwo");
      liquidTwoExample.add(liquidCanvasBehaviorTwo);
View Full Code Here


public class OneGraphicChainedPage extends AbstractGraphicPage {

  @Override
  protected LiquidCanvasBehavior getBehavior() {
    Graphics g=new Border();
    g.setChainedGraphics(new Shadow());
   
    return new LiquidCanvasBehavior(g);
  }
View Full Code Here

      js += "[ ";
    }
    js += " " + g.getStringForJS();
    if (g.isChained()) {
      boolean moreChainedGraphics = true;
      Graphics inspect = g.getChainedGraphics();
      while (moreChainedGraphics) {
        moreChainedGraphics = inspect.isChained();
        js += " " + inspect.getStringForJS();
        inspect = inspect.getChainedGraphics();

      }

      js += " ]";
    }
View Full Code Here

   *            Page parameters
   */
  public HomePage(final PageParameters parameters) {
    super(parameters);
    // Add the simplest type of label
    Graphics g = new Shadow();
    g.setChainedGraphics(new Border()).setChainedGraphics(new Gradient());
    LiquidCanvasBehavior a = new LiquidCanvasBehavior(g, new RoundedRect());
    add(new WebMarkupContainer("message").add(a));

    add(new WebMarkupContainer("box").add(new NiftyCornersBehavior()));

View Full Code Here

TOP

Related Classes of org.wicketstuff.artwork.liquidcanvas.graphics.Graphics

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.