artwork problem while changing background color of liquid canvas

View: New views
11 Messages — Rating Filter:   Alert me  

artwork problem while changing background color of liquid canvas

by vineet semwal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

i am trying to fill the background color in liquid canvas component  as
below  but it didn't work out .Result is no background color/canvas with a
error in
firefox that says unknown pugin .

Graphics g=new Shadow();
        g.setChainedGraphics(new Border()).setChainedGraphics(new
Gradient());
        Fill fill=new Fill("#ADDFFF");
        LiquidCanvasBehavior lcb=new LiquidCanvasBehavior(fill,g,new
RoundedRect());

regards,
Vineet Semwal

Re: artwork problem while changing background color of liquid canvas

by nino martinez wael :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yea seems somethings wrong. Im very busy at the moment. But check here:

http://www.ruzee.com/files/liquid-canvas/demo.html

It might have something about the lenght of the hex todo?

2009/7/6 vineet semwal <vineetsemwal1982@...>:

> i am trying to fill the background color in liquid canvas component  as
> below  but it didn't work out .Result is no background color/canvas with a
> error in
> firefox that says unknown pugin .
>
> Graphics g=new Shadow();
>        g.setChainedGraphics(new Border()).setChainedGraphics(new
> Gradient());
>        Fill fill=new Fill("#ADDFFF");
>        LiquidCanvasBehavior lcb=new LiquidCanvasBehavior(fill,g,new
> RoundedRect());
>
> regards,
> Vineet Semwal
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: artwork problem while changing background color of liquid canvas

by nino martinez wael :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Or the combination of things? I know it's very loose. If you want some
help could you please do a quickstart? I simply dont have time to
setup it all manually..

2009/7/6 nino martinez wael <nino.martinez.wael@...>:

> Yea seems somethings wrong. Im very busy at the moment. But check here:
>
> http://www.ruzee.com/files/liquid-canvas/demo.html
>
> It might have something about the lenght of the hex todo?
>
> 2009/7/6 vineet semwal <vineetsemwal1982@...>:
>> i am trying to fill the background color in liquid canvas component  as
>> below  but it didn't work out .Result is no background color/canvas with a
>> error in
>> firefox that says unknown pugin .
>>
>> Graphics g=new Shadow();
>>        g.setChainedGraphics(new Border()).setChainedGraphics(new
>> Gradient());
>>        Fill fill=new Fill("#ADDFFF");
>>        LiquidCanvasBehavior lcb=new LiquidCanvasBehavior(fill,g,new
>> RoundedRect());
>>
>> regards,
>> Vineet Semwal
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: artwork problem while changing background color of liquid canvas

by vineet semwal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

First of all thank you for developing such a good plugin,

1)LiquidCanvasBehavior liquidCanvasBehaviorOne=new LiquidCanvasBehavior(fill,g,new RoundedRect());

2)LiquidCanvasBehavior liquidCanvasBehaviorOne=new LiquidCanvasBehavior(g,fill,new RoundedRect());

After changing the position of parameter from 1) to 2) ,
the error vanishes but still no background color/canvas.
I have also looked at examples in  http://www.ruzee.com/files/liquid-canvas/demo.html
Atleast i can't find the difference in  source generated after adding fill and the one shown in examples
in the above link.
I am also attaching a quick project(unjar  and mvn jetty:run.)
if you have time please take a look ...

thanks again,
 
regards,
vineet semwal
 


On Mon, Jul 6, 2009 at 2:10 PM, nino martinez wael <nino.martinez.wael@...> wrote:
Or the combination of things? I know it's very loose. If you want some
help could you please do a quickstart? I simply dont have time to
setup it all manually..

2009/7/6 nino martinez wael <nino.martinez.wael@...>:
> Yea seems somethings wrong. Im very busy at the moment. But check here:
>
> http://www.ruzee.com/files/liquid-canvas/demo.html
>
> It might have something about the lenght of the hex todo?
>
> 2009/7/6 vineet semwal <vineetsemwal1982@...>:
>> i am trying to fill the background color in liquid canvas component  as
>> below  but it didn't work out .Result is no background color/canvas with a
>> error in
>> firefox that says unknown pugin .
>>
>> Graphics g=new Shadow();
>>        g.setChainedGraphics(new Border()).setChainedGraphics(new
>> Gradient());
>>        Fill fill=new Fill("#ADDFFF");
>>        LiquidCanvasBehavior lcb=new LiquidCanvasBehavior(fill,g,new
>> RoundedRect());
>>
>> regards,
>> Vineet Semwal
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

project.jar (23K) Download Attachment

Re: artwork problem while changing background color of liquid canvas

by nino martinez wael :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Im happy that some ones using the project, and very good to get some
feed back. I've verified your problem and it seems that the fill is
broken somehow im not quite sure whats going wrong or if we are using
it wrong fully. But when ever fill are present along side gradient
etc, all backround just dissapears.

I have a workaround though, just use plain css to fill your box's for now.

Next step are to get the bug fixed, so I think we have to make a
quickstart for Stefan, and for him he must either be able to see the
out put from wicket on a running server or have a plain htm with
liquid canvas in it.. The easiest thing for us would be just to put
the project you did on a web server somewhere, do you have one
accessible, if you post the url i'll write Stefan? I could put it on
mine, but im still very busy..

regards Nino

2009/7/8 vineet semwal <vineetsemwal1982@...>:

> First of all thank you for developing such a good plugin,
>
> 1)LiquidCanvasBehavior liquidCanvasBehaviorOne=new
> LiquidCanvasBehavior(fill,g,new RoundedRect());
>
> 2)LiquidCanvasBehavior liquidCanvasBehaviorOne=new
> LiquidCanvasBehavior(g,fill,new RoundedRect());
>
> After changing the position of parameter from 1) to 2) ,
> the error vanishes but still no background color/canvas.
> I have also looked at examples in
> http://www.ruzee.com/files/liquid-canvas/demo.html
> Atleast i can't find the difference in  source generated after adding fill
> and the one shown in examples
> in the above link.
> I am also attaching a quick project(unjar  and mvn jetty:run.)
> if you have time please take a look ...
>
> thanks again,
>
> regards,
> vineet semwal
>
>
>
> On Mon, Jul 6, 2009 at 2:10 PM, nino martinez wael
> <nino.martinez.wael@...> wrote:
>>
>> Or the combination of things? I know it's very loose. If you want some
>> help could you please do a quickstart? I simply dont have time to
>> setup it all manually..
>>
>> 2009/7/6 nino martinez wael <nino.martinez.wael@...>:
>> > Yea seems somethings wrong. Im very busy at the moment. But check here:
>> >
>> > http://www.ruzee.com/files/liquid-canvas/demo.html
>> >
>> > It might have something about the lenght of the hex todo?
>> >
>> > 2009/7/6 vineet semwal <vineetsemwal1982@...>:
>> >> i am trying to fill the background color in liquid canvas component  as
>> >> below  but it didn't work out .Result is no background color/canvas
>> >> with a
>> >> error in
>> >> firefox that says unknown pugin .
>> >>
>> >> Graphics g=new Shadow();
>> >>        g.setChainedGraphics(new Border()).setChainedGraphics(new
>> >> Gradient());
>> >>        Fill fill=new Fill("#ADDFFF");
>> >>        LiquidCanvasBehavior lcb=new LiquidCanvasBehavior(fill,g,new
>> >> RoundedRect());
>> >>
>> >> regards,
>> >> Vineet Semwal
>> >>
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Parent Message unknown Re: artwork problem while changing background color of liquid canvas

by Istvan-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Had same problem. Try (,or something like) this
(named "Bocs" instead of "Box") to avoid name clashes in future):

public class Bocs extends WebMarkupContainer {

    public static final byte DEFAULT_ROUNDING_RADIUS = 8;
    public static final String DEAFAULT_FILLCOLOR = "#EEFFD0";
    public static final int DEAFAULT_BORDERWIDTH = 1;
    public static final String DEFAULT_BORDERCOLOR = "#AAAAAA";

    public Bocs(String id) {
        this(id, DEFAULT_ROUNDING_RADIUS, DEAFAULT_FILLCOLOR,
DEAFAULT_BORDERWIDTH,
                DEFAULT_BORDERCOLOR);
    }

    public Bocs(String id, int roundingRadius, String fillColor, int
borderWidth, String borderColor) {
        super(id);
        this.setOutputMarkupId(true);
        this.setOutputMarkupPlaceholderTag(true);
        // CAUTION: do not substitute
        Graphics graphics = new Border(borderColor, borderWidth);
        graphics.setChainedGraphics(new Fill(fillColor));
        LiquidCanvasBehavior behavior = new LiquidCanvasBehavior(graphics,
new RoundedRect(
                (byte) roundingRadius));
        this.add(behavior);
    }

    private static final long serialVersionUID = 1L;
}

Use latest Wicket (1.4-rc5), Wicketstuff Artwork (1.4-20090706.220716-150).

Stefan

Fwd: artwork problem while changing background color of liquid canvas

by vineet semwal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

thanks a lot  !
I have tried your example.it's working ..
I think the difference is i was adding *fill* to liquidcanvasbehaviour
constructor while
you have used setChainedGraphics(fill).
I also saw the source of liquidcanvasbehavior and noted that in the end
it's  string concatenation
of all the properties of  Graphics subclasses but may be *sequence* of
concatenation matters...

thanks again to both nino and stefan  !

regards,
Vineet Semwal


---------- Forwarded message ----------
From: Istvan <joozsa@...>
Date: Wed, Jul 8, 2009 at 4:50 PM
Subject: Re: artwork problem while changing background color of liquid
canvas
To: users@...


Had same problem. Try (,or something like) this
(named "Bocs" instead of "Box") to avoid name clashes in future):

public class Bocs extends WebMarkupContainer {

   public static final byte DEFAULT_ROUNDING_RADIUS = 8;
   public static final String DEAFAULT_FILLCOLOR = "#EEFFD0";
   public static final int DEAFAULT_BORDERWIDTH = 1;
   public static final String DEFAULT_BORDERCOLOR = "#AAAAAA";

   public Bocs(String id) {
       this(id, DEFAULT_ROUNDING_RADIUS, DEAFAULT_FILLCOLOR,
DEAFAULT_BORDERWIDTH,
               DEFAULT_BORDERCOLOR);
   }

   public Bocs(String id, int roundingRadius, String fillColor, int
borderWidth, String borderColor) {
       super(id);
       this.setOutputMarkupId(true);
       this.setOutputMarkupPlaceholderTag(true);
       // CAUTION: do not substitute
       Graphics graphics = new Border(borderColor, borderWidth);
       graphics.setChainedGraphics(new Fill(fillColor));
       LiquidCanvasBehavior behavior = new LiquidCanvasBehavior(graphics,
new RoundedRect(
               (byte) roundingRadius));
       this.add(behavior);
   }

   private static final long serialVersionUID = 1L;
}

Use latest Wicket (1.4-rc5), Wicketstuff Artwork (1.4-20090706.220716-150).

Stefan

Re: artwork problem while changing background color of liquid canvas

by nino martinez wael :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes its concatination, but may be sequenced if its chained.. I thought I
tried stefans example.. But apparently not.

Im glad its working, I'll try adding it to the examples when I get time..

2009/7/9 vineet semwal <vineetsemwal1982@...>

> thanks a lot  !
> I have tried your example.it's working ..
> I think the difference is i was adding *fill* to liquidcanvasbehaviour
> constructor while
> you have used setChainedGraphics(fill).
> I also saw the source of liquidcanvasbehavior and noted that in the end
> it's  string concatenation
> of all the properties of  Graphics subclasses but may be *sequence* of
> concatenation matters...
>
> thanks again to both nino and stefan  !
>
> regards,
> Vineet Semwal
>
>
> ---------- Forwarded message ----------
> From: Istvan <joozsa@...>
> Date: Wed, Jul 8, 2009 at 4:50 PM
> Subject: Re: artwork problem while changing background color of liquid
> canvas
> To: users@...
>
>
> Had same problem. Try (,or something like) this
> (named "Bocs" instead of "Box") to avoid name clashes in future):
>
> public class Bocs extends WebMarkupContainer {
>
>   public static final byte DEFAULT_ROUNDING_RADIUS = 8;
>   public static final String DEAFAULT_FILLCOLOR = "#EEFFD0";
>   public static final int DEAFAULT_BORDERWIDTH = 1;
>   public static final String DEFAULT_BORDERCOLOR = "#AAAAAA";
>
>   public Bocs(String id) {
>       this(id, DEFAULT_ROUNDING_RADIUS, DEAFAULT_FILLCOLOR,
> DEAFAULT_BORDERWIDTH,
>               DEFAULT_BORDERCOLOR);
>   }
>
>   public Bocs(String id, int roundingRadius, String fillColor, int
> borderWidth, String borderColor) {
>       super(id);
>       this.setOutputMarkupId(true);
>       this.setOutputMarkupPlaceholderTag(true);
>       // CAUTION: do not substitute
>       Graphics graphics = new Border(borderColor, borderWidth);
>       graphics.setChainedGraphics(new Fill(fillColor));
>       LiquidCanvasBehavior behavior = new LiquidCanvasBehavior(graphics,
> new RoundedRect(
>               (byte) roundingRadius));
>       this.add(behavior);
>   }
>
>   private static final long serialVersionUID = 1L;
> }
>
> Use latest Wicket (1.4-rc5), Wicketstuff Artwork (1.4-20090706.220716-150).
>
> Stefan
>

Re: artwork problem while changing background color of liquid canvas

by nino martinez wael :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Oh and I'd really like some screenshots of how you use artwork if you can
provide them, I guess we should add them to the wiki.. :)

2009/7/9 nino martinez wael <nino.martinez.wael@...>

> Yes its concatination, but may be sequenced if its chained.. I thought I
> tried stefans example.. But apparently not.
>
> Im glad its working, I'll try adding it to the examples when I get time..
>
> 2009/7/9 vineet semwal <vineetsemwal1982@...>
>
> thanks a lot  !
>> I have tried your example.it's working ..
>> I think the difference is i was adding *fill* to liquidcanvasbehaviour
>> constructor while
>> you have used setChainedGraphics(fill).
>> I also saw the source of liquidcanvasbehavior and noted that in the end
>> it's  string concatenation
>> of all the properties of  Graphics subclasses but may be *sequence* of
>> concatenation matters...
>>
>> thanks again to both nino and stefan  !
>>
>> regards,
>> Vineet Semwal
>>
>>
>> ---------- Forwarded message ----------
>> From: Istvan <joozsa@...>
>> Date: Wed, Jul 8, 2009 at 4:50 PM
>> Subject: Re: artwork problem while changing background color of liquid
>> canvas
>> To: users@...
>>
>>
>> Had same problem. Try (,or something like) this
>> (named "Bocs" instead of "Box") to avoid name clashes in future):
>>
>> public class Bocs extends WebMarkupContainer {
>>
>>   public static final byte DEFAULT_ROUNDING_RADIUS = 8;
>>   public static final String DEAFAULT_FILLCOLOR = "#EEFFD0";
>>   public static final int DEAFAULT_BORDERWIDTH = 1;
>>   public static final String DEFAULT_BORDERCOLOR = "#AAAAAA";
>>
>>   public Bocs(String id) {
>>       this(id, DEFAULT_ROUNDING_RADIUS, DEAFAULT_FILLCOLOR,
>> DEAFAULT_BORDERWIDTH,
>>               DEFAULT_BORDERCOLOR);
>>   }
>>
>>   public Bocs(String id, int roundingRadius, String fillColor, int
>> borderWidth, String borderColor) {
>>       super(id);
>>       this.setOutputMarkupId(true);
>>       this.setOutputMarkupPlaceholderTag(true);
>>       // CAUTION: do not substitute
>>       Graphics graphics = new Border(borderColor, borderWidth);
>>       graphics.setChainedGraphics(new Fill(fillColor));
>>       LiquidCanvasBehavior behavior = new LiquidCanvasBehavior(graphics,
>> new RoundedRect(
>>               (byte) roundingRadius));
>>       this.add(behavior);
>>   }
>>
>>   private static final long serialVersionUID = 1L;
>> }
>>
>> Use latest Wicket (1.4-rc5), Wicketstuff Artwork
>> (1.4-20090706.220716-150).
>>
>> Stefan
>>
>
>

Re: artwork problem while changing background color of liquid canvas

by vineet semwal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

We are not even half way mark in the application we are developing :(
i will give you a update as soon as the application concludes ..

regards,
Vineet Semwal

On Fri, Jul 10, 2009 at 2:27 AM, nino martinez wael <
nino.martinez.wael@...> wrote:

> Oh and I'd really like some screenshots of how you use artwork if you can
> provide them, I guess we should add them to the wiki.. :)
>
> 2009/7/9 nino martinez wael <nino.martinez.wael@...>
>
> > Yes its concatination, but may be sequenced if its chained.. I thought I
> > tried stefans example.. But apparently not.
> >
> > Im glad its working, I'll try adding it to the examples when I get time..
> >
> > 2009/7/9 vineet semwal <vineetsemwal1982@...>
> >
> > thanks a lot  !
> >> I have tried your example.it's working ..
> >> I think the difference is i was adding *fill* to liquidcanvasbehaviour
> >> constructor while
> >> you have used setChainedGraphics(fill).
> >> I also saw the source of liquidcanvasbehavior and noted that in the end
> >> it's  string concatenation
> >> of all the properties of  Graphics subclasses but may be *sequence* of
> >> concatenation matters...
> >>
> >> thanks again to both nino and stefan  !
> >>
> >> regards,
> >> Vineet Semwal
> >>
> >>
> >> ---------- Forwarded message ----------
> >> From: Istvan <joozsa@...>
> >> Date: Wed, Jul 8, 2009 at 4:50 PM
> >> Subject: Re: artwork problem while changing background color of liquid
> >> canvas
> >> To: users@...
> >>
> >>
> >> Had same problem. Try (,or something like) this
> >> (named "Bocs" instead of "Box") to avoid name clashes in future):
> >>
> >> public class Bocs extends WebMarkupContainer {
> >>
> >>   public static final byte DEFAULT_ROUNDING_RADIUS = 8;
> >>   public static final String DEAFAULT_FILLCOLOR = "#EEFFD0";
> >>   public static final int DEAFAULT_BORDERWIDTH = 1;
> >>   public static final String DEFAULT_BORDERCOLOR = "#AAAAAA";
> >>
> >>   public Bocs(String id) {
> >>       this(id, DEFAULT_ROUNDING_RADIUS, DEAFAULT_FILLCOLOR,
> >> DEAFAULT_BORDERWIDTH,
> >>               DEFAULT_BORDERCOLOR);
> >>   }
> >>
> >>   public Bocs(String id, int roundingRadius, String fillColor, int
> >> borderWidth, String borderColor) {
> >>       super(id);
> >>       this.setOutputMarkupId(true);
> >>       this.setOutputMarkupPlaceholderTag(true);
> >>       // CAUTION: do not substitute
> >>       Graphics graphics = new Border(borderColor, borderWidth);
> >>       graphics.setChainedGraphics(new Fill(fillColor));
> >>       LiquidCanvasBehavior behavior = new LiquidCanvasBehavior(graphics,
> >> new RoundedRect(
> >>               (byte) roundingRadius));
> >>       this.add(behavior);
> >>   }
> >>
> >>   private static final long serialVersionUID = 1L;
> >> }
> >>
> >> Use latest Wicket (1.4-rc5), Wicketstuff Artwork
> >> (1.4-20090706.220716-150).
> >>
> >> Stefan
> >>
> >
> >
>

Re: artwork problem while changing background color of liquid canvas

by nino martinez wael :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Great.. And please if you have any patches, youre very welcome commit them..

2009/7/11 vineet semwal <vineetsemwal1982@...>

> We are not even half way mark in the application we are developing :(
> i will give you a update as soon as the application concludes ..
>
> regards,
> Vineet Semwal
>
> On Fri, Jul 10, 2009 at 2:27 AM, nino martinez wael <
> nino.martinez.wael@...> wrote:
>
> > Oh and I'd really like some screenshots of how you use artwork if you can
> > provide them, I guess we should add them to the wiki.. :)
> >
> > 2009/7/9 nino martinez wael <nino.martinez.wael@...>
> >
> > > Yes its concatination, but may be sequenced if its chained.. I thought
> I
> > > tried stefans example.. But apparently not.
> > >
> > > Im glad its working, I'll try adding it to the examples when I get
> time..
> > >
> > > 2009/7/9 vineet semwal <vineetsemwal1982@...>
> > >
> > > thanks a lot  !
> > >> I have tried your example.it's working ..
> > >> I think the difference is i was adding *fill* to liquidcanvasbehaviour
> > >> constructor while
> > >> you have used setChainedGraphics(fill).
> > >> I also saw the source of liquidcanvasbehavior and noted that in the
> end
> > >> it's  string concatenation
> > >> of all the properties of  Graphics subclasses but may be *sequence* of
> > >> concatenation matters...
> > >>
> > >> thanks again to both nino and stefan  !
> > >>
> > >> regards,
> > >> Vineet Semwal
> > >>
> > >>
> > >> ---------- Forwarded message ----------
> > >> From: Istvan <joozsa@...>
> > >> Date: Wed, Jul 8, 2009 at 4:50 PM
> > >> Subject: Re: artwork problem while changing background color of liquid
> > >> canvas
> > >> To: users@...
> > >>
> > >>
> > >> Had same problem. Try (,or something like) this
> > >> (named "Bocs" instead of "Box") to avoid name clashes in future):
> > >>
> > >> public class Bocs extends WebMarkupContainer {
> > >>
> > >>   public static final byte DEFAULT_ROUNDING_RADIUS = 8;
> > >>   public static final String DEAFAULT_FILLCOLOR = "#EEFFD0";
> > >>   public static final int DEAFAULT_BORDERWIDTH = 1;
> > >>   public static final String DEFAULT_BORDERCOLOR = "#AAAAAA";
> > >>
> > >>   public Bocs(String id) {
> > >>       this(id, DEFAULT_ROUNDING_RADIUS, DEAFAULT_FILLCOLOR,
> > >> DEAFAULT_BORDERWIDTH,
> > >>               DEFAULT_BORDERCOLOR);
> > >>   }
> > >>
> > >>   public Bocs(String id, int roundingRadius, String fillColor, int
> > >> borderWidth, String borderColor) {
> > >>       super(id);
> > >>       this.setOutputMarkupId(true);
> > >>       this.setOutputMarkupPlaceholderTag(true);
> > >>       // CAUTION: do not substitute
> > >>       Graphics graphics = new Border(borderColor, borderWidth);
> > >>       graphics.setChainedGraphics(new Fill(fillColor));
> > >>       LiquidCanvasBehavior behavior = new
> LiquidCanvasBehavior(graphics,
> > >> new RoundedRect(
> > >>               (byte) roundingRadius));
> > >>       this.add(behavior);
> > >>   }
> > >>
> > >>   private static final long serialVersionUID = 1L;
> > >> }
> > >>
> > >> Use latest Wicket (1.4-rc5), Wicketstuff Artwork
> > >> (1.4-20090706.220716-150).
> > >>
> > >> Stefan
> > >>
> > >
> > >
> >
>