Skip to main content

[JAVA2D] How to draw discontinu line in Java

3 replies [Last post]
Anonymous

Hello,
I need help on how to draw discontinu line in Java ?

King regards

Othmane NADJEMI

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Reply viewing options

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

create a java.awt.BasicStroke with dash
and use

g.setStroke()

othmane nadjemi wrote:

>Hello,
>I need help on how to draw discontinu line in Java ?
>
>King regards
>
>Othmane NADJEMI
>
>===========================================================================
>To unsubscribe, send email to listserv@java.sun.com and include in the body
>of the message "signoff JAVA2D-INTEREST". For general help, send email to
>listserv@java.sun.com and include in the body of the message "help".
>
>
>
>

--
A. Genovesio
Quantitative Image Analysis Unit
Institut Pasteur
25, rue du Docteur Roux
75724 Paris Cedex 15

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

othmane nadjemi

Thanks for the answer but in my code i am using Graphics and not Graphics2D.
How to deal with this ?

King regards;

Othmane NADJEMI
Le lundi 25 Octobre 2004 14:06, Auguste Genovesio a écrit :
> create a java.awt.BasicStroke with dash
> and use
>
> g.setStroke()
>
> othmane nadjemi wrote:
> >Hello,
> >I need help on how to draw discontinu line in Java ?
> >
> >King regards
> >
> >Othmane NADJEMI
> >
> >==========================================================================
> >= To unsubscribe, send email to listserv@java.sun.com and include in the
> > body of the message "signoff JAVA2D-INTEREST". For general help, send
> > email to listserv@java.sun.com and include in the body of the message
> > "help".
>
> --
> A. Genovesio
> Quantitative Image Analysis Unit
> Institut Pasteur
> 25, rue du Docteur Roux
> 75724 Paris Cedex 15
>
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the body
> of the message "signoff JAVA2D-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Auguste Genovesio

if you use version 1.2 or higher your Graphics is probably in fact a
Graphics2D
so cast it:

Graphics g2D = (Graphics2D) g;

othmane nadjemi wrote:

>Thanks for the answer but in my code i am using Graphics and not Graphics2D.
>How to deal with this ?
>
>King regards;
>
>Othmane NADJEMI
>Le lundi 25 Octobre 2004 14:06, Auguste Genovesio a écrit :
>
>
>>create a java.awt.BasicStroke with dash
>>and use
>>
>>g.setStroke()
>>
>>othmane nadjemi wrote:
>>
>>
>>>Hello,
>>>I need help on how to draw discontinu line in Java ?
>>>
>>>King regards
>>>
>>>Othmane NADJEMI
>>>
>>>==========================================================================
>>>= To unsubscribe, send email to listserv@java.sun.com and include in the
>>>body of the message "signoff JAVA2D-INTEREST". For general help, send
>>>email to listserv@java.sun.com and include in the body of the message
>>>"help".
>>>
>>>
>>--
>>A. Genovesio
>>Quantitative Image Analysis Unit
>>Institut Pasteur
>>25, rue du Docteur Roux
>>75724 Paris Cedex 15
>>
>>
>>===========================================================================
>>To unsubscribe, send email to listserv@java.sun.com and include in the body
>>of the message "signoff JAVA2D-INTEREST". For general help, send email to
>>listserv@java.sun.com and include in the body of the message "help".
>>
>>
>
>===========================================================================
>To unsubscribe, send email to listserv@java.sun.com and include in the body
>of the message "signoff JAVA2D-INTEREST". For general help, send email to
>listserv@java.sun.com and include in the body of the message "help".
>
>
>
>

--
A. Genovesio
Quantitative Image Analysis Unit
Institut Pasteur
25, rue du Docteur Roux
75724 Paris Cedex 15

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]