Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Polyline.setPoints()
Polyline.setPoints() [message #156509] Mon, 01 November 2004 21:12 Go to next message
Jon Corchis is currently offline Jon CorchisFriend
Messages: 3
Registered: July 2009
Junior Member
This is a multipart message in MIME format.
--=_alternative 000192C888256F40_=
Content-Type: text/plain; charset="US-ASCII"

Hi,

Why does Polyline.setPoints() always fire change events, where as
Figure.setBounds() doesn't unless they've changed?


Thanks

Jon
--=_alternative 000192C888256F40_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Hi, </font>
<br>
<br><font size=2 face="sans-serif">Why does Polyline.setPoints() always
fire change events, where as Figure.setBounds() doesn't unless they've
changed?</font>
<br>
<br>
<br><font size=2 face="sans-serif">Thanks</font>
<br>
<br><font size=2 face="sans-serif">Jon</font>
--=_alternative 000192C888256F40_=--
Re: Polyline.setPoints() [message #156516 is a reply to message #156509] Mon, 01 November 2004 21:57 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

This is a multi-part message in MIME format.

------=_NextPart_000_0009_01C4C033.E27EC380
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

It is an optimization which allows callers to reuse the PointList =
instance.
To avoid the notification, don't call setPoints() unless you have =
modified the list.
<jcorchis@hotmail.com> wrote in message =
news:cm68s7$rn3$1@eclipse.org...

Hi,=20

Why does Polyline.setPoints() always fire change events, where as =
Figure.setBounds() doesn't unless they've changed?=20


Thanks=20

Jon
------=_NextPart_000_0009_01C4C033.E27EC380
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1476" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>It is an optimization which allows =
callers to reuse=20
the PointList instance.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>To avoid the notification, don't call =
setPoints()=20
unless you have modified the list.</FONT></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>&lt;<A =
href=3D"mailto:jcorchis@hotmail.com">jcorchis@hotmail.com</A>&gt;=20
wrote in message <A=20
=
href=3D"news:cm68s7$rn3$1@eclipse.org">news:cm68s7$rn3$1@eclipse.org</A>.=
...</DIV><BR><FONT=20
face=3Dsans-serif size=3D2>Hi, </FONT><BR><BR><FONT face=3Dsans-serif =
size=3D2>Why=20
does Polyline.setPoints() always fire change events, where as=20
Figure.setBounds() doesn't unless they've changed?</FONT> =
<BR><BR><BR><FONT=20
face=3Dsans-serif size=3D2>Thanks</FONT> <BR><BR><FONT =
face=3Dsans-serif=20
size=3D2>Jon</FONT></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0009_01C4C033.E27EC380--
Previous Topic:Hiding/showing figures on separate layer when scrolling
Next Topic:Adding marquee selection to SelectionTool
Goto Forum:
  


Current Time: Fri Apr 26 19:08:38 GMT 2024

Powered by FUDForum. Page generated in 0.03401 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top