Skip to main content



      Home
Home » Eclipse Projects » GEF » AnimatableFigure Question
AnimatableFigure Question [message #5889] Thu, 30 May 2002 18:40 Go to next message
Eclipse UserFriend
Originally posted by: zacw.acaciatel.com

Does anyone have any experience using the
com.ibm.etools.gef.ui.palette.AnimatableFigure class? I'd like to make a
figure that will animate on mouseover.

Thanks,
Zac
Re: AnimatableFigure Question [message #6536 is a reply to message #5889] Thu, 30 May 2002 19:32 Go to previous message
Eclipse UserFriend
Originally posted by: none.ibm.com

This is a multi-part message in MIME format.

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

This class is now internal. It causes the palette to slide open and =
closed.

just add a MouseMotionListener to the figure, like this:
label.addMouseMotionListener(new MouseMotionListener.Stub() {
public void mouseEntered(com.ibm.etools.draw2d.MouseEvent me){
((Label)me.getSource()).setText("Over");
} public void mouseExited(com.ibm.etools.draw2d.MouseEvent me){
((Label)me.getSource()).setText("Hello");
}
});
"Zac Wolfe" <zacw@acaciatel.com> wrote in=20
message news:ad68ld$l5g$1@rogue.oti.com...> Does anyone have any=20
experience using the> com.ibm.etools.gef.ui.palette.AnimatableFigure=20
class? I'd like to make a> figure that will animate on mouseover.>=20
> Thanks,> Zac> >=20



------=_NextPart_000_01CF_01C20810.AF5B2440
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.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>This class is now internal.&nbsp; It =
causes the=20
palette to slide open and closed.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>just add a MouseMotionListener to the =
figure, like=20
this:</FONT></DIV><PRE><DIV>label.addMouseMotionListener( <B><FONT =
color=3D#7f0055>new</B></FONT> MouseMotionListener.Stub() {
</DIV><DIV><P><B><FONT color=3D#7f0055>&nbsp;&nbsp;&nbsp; =
public</B></FONT> <B><FONT color=3D#7f0055>void</B></FONT> =
mouseEntered(com.ibm.etools.draw2d.MouseEvent me){
</P><P>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
((Label)me.getSource()).setText(<FONT color=3D#2a00ff>"Over"</FONT>);
</P><P>&nbsp;&nbsp;&nbsp; }</P><P>&nbsp;&nbsp;&nbsp; <B><FONT =
color=3D#7f0055>public</B></FONT> <B><FONT =
color=3D#7f0055>void</B></FONT> =
mouseExited(com.ibm.etools.draw2d.MouseEvent me){
</P><P>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
((Label)me.getSource()).setText(<FONT color=3D#2a00ff>"Hello"</FONT>);
</P><P>&nbsp;&nbsp;&nbsp; }
</P><P>});</P></DIV><DIV>
</DIV><DIV><FONT face=3DArial size=3D2>"Zac Wolfe" &lt;</FONT><A =
href=3D"mailto:zacw@acaciatel.com"><FONT face=3DArial =
size=3D2>zacw@acaciatel.com</FONT></A><FONT face=3DArial size=3D2>&gt; =
wrote in=20
message </FONT><A href=3D"news:ad68ld$l5g$1@rogue.oti.com"><FONT =
face=3DArial size=3D2>news:ad68ld$l5g$1@rogue.oti.com</FONT></A><FONT =
face=3DArial size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>&gt; =
Does anyone have any=20
experience using the<BR>&gt; =
com.ibm.etools.gef.ui.palette.AnimatableFigure=20
class? I'd like to make a<BR>&gt; figure that will animate on =
mouseover.<BR>&gt;=20
<BR>&gt; Thanks,<BR>&gt; Zac<BR>&gt; <BR>&gt; </FONT>
</PRE></BODY></HTML>

------=_NextPart_000_01CF_01C20810.AF5B2440--
Previous Topic:Questoins of Layouts in GEF?
Next Topic:Is there any relationship between Roles and EditPolicies?
Goto Forum:
  


Current Time: Tue May 13 04:31:09 EDT 2025

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

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

Back to the top