Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

anti alias turn on by default? post and replies

Return to the anti alias turn on by default? thread
Login to post to this thread

anti alias turn on by default? - Oct 28, 2013 at 10:20AM
lookang Avatar
lookang
107 Posts

hi prof paco and wolfgang,

is there a way to turn on the anti alias for text and drawing by default?

if this feature is available already, it can address the concerns of my students about the dated graphics in java.

it looks great when anti alias turn on.

thank you for your kind attention :)

Attached File: antialias_on_2013-10-28_2219.png


http://weelookang.blogspot.sg

Replies to anti alias turn on by default?

Re: anti alias turn on by default? - Oct 30 2013 4:48PM
Francisco Esquembre
129 Posts

Hi Loo Kang,

If your drawing panel is called, say drawingPanel, add the following lines to the Initialization:

_view.drawingPanel.setAntialiasTextOn(on);
_view.drawingPanel.setAntialiasShapeOn(on);

Paco



Re: Re: anti alias turn on by default? - Nov 02 2013 11:31AM
lookang Avatar
lookang
107 Posts

got it!
thanks!
_view.worldview.setAntialiasTextOn(true);
_view.worldview.setAntialiasShapeOn(true);


http://weelookang.blogspot.sg


The OSP Network:
Open Source Physics - Tracker - EJS Modeling
Physlet Physics
Physlet Quantum Physics