Skip to main content

Graphics2D properties - setXORMode

2 replies [Last post]
billg
Offline
Joined: 2008-02-03
Points: 0

Hello Everyone,

I was wondering if anyone knew if there was a way to set the XORMode for node? I looked through the API and the source, but did not see a way to set this.

Thanks,
Bill

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Chris Campbell

Hi Bill,

There currently isn't a way to set XOR mode in Scenario. Personally
I'd prefer to leave it out, a) because it reminds me of clunky/legacy
GDI and X11 applications, and is something used very rarely in modern
rich clients, and b) because (more practically) XOR mode is becoming
increasingly difficult to implement efficiently on the GPU (Direct3D
dropped support for it long ago, so we had to jump through hoops to
make XOR mode work on our D3D pipeline for Java2D).

Again, that's just my informed opinion. However, if there is enough
demand for it, I suppose we could consider adding it in the future
(well after JavaOne).

Thanks,
Chris

On Apr 19, 2008, at 11:37 AM, scenario@javadesktop.org wrote:
> Hello Everyone,
>
> I was wondering if anyone knew if there was a way to set the XORMode
> for node? I looked through the API and the source, but did not see a
> way to set this.
>
> Thanks,
> Bill
> [Message sent by forum member 'billg' (billg)]
>
> http://forums.java.net/jive/thread.jspa?messageID=270219
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@scenegraph.dev.java.net
> For additional commands, e-mail: dev-help@scenegraph.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@scenegraph.dev.java.net
For additional commands, e-mail: dev-help@scenegraph.dev.java.net

Shannon Hickey

I have to admit, I never did understand setXORMode, specifically because
it takes a color...huh??! What does seem useful is to be able to do what
you really want in most cases - make the graphics draw using XOR of the
color that it's drawing over.

Shannon

Chris Campbell wrote:
> Hi Bill,
>
> There currently isn't a way to set XOR mode in Scenario. Personally I'd
> prefer to leave it out, a) because it reminds me of clunky/legacy GDI
> and X11 applications, and is something used very rarely in modern rich
> clients, and b) because (more practically) XOR mode is becoming
> increasingly difficult to implement efficiently on the GPU (Direct3D
> dropped support for it long ago, so we had to jump through hoops to make
> XOR mode work on our D3D pipeline for Java2D).
>
> Again, that's just my informed opinion. However, if there is enough
> demand for it, I suppose we could consider adding it in the future (well
> after JavaOne).
>
> Thanks,
> Chris
>
>
> On Apr 19, 2008, at 11:37 AM, scenario@javadesktop.org wrote:
>> Hello Everyone,
>>
>> I was wondering if anyone knew if there was a way to set the XORMode
>> for node? I looked through the API and the source, but did not see a
>> way to set this.
>>
>> Thanks,
>> Bill
>> [Message sent by forum member 'billg' (billg)]
>>
>> http://forums.java.net/jive/thread.jspa?messageID=270219
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@scenegraph.dev.java.net
>> For additional commands, e-mail: dev-help@scenegraph.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@scenegraph.dev.java.net
> For additional commands, e-mail: dev-help@scenegraph.dev.java.net
>

--
Shannon Hickey
shannon.hickey@sun.com
Swing Team - Sun Microsystems, Inc.
http://java.sun.com/javase/technologies/desktop

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@scenegraph.dev.java.net
For additional commands, e-mail: dev-help@scenegraph.dev.java.net