Pages

about my opensource eclipse java applications recently i'm studying GWT and Android

Thursday, August 18, 2005

What is Insets?[GEF/Draw2D]


How many pixels inset a figure by a border on top,bottom,left and right.

Some layouts take care that value.
And I guess it help to know if a border was clicked.

Anyway,generally a border overdraw a figure in insets.



Maybe you could know if events happen inside a border like below.





public class MouseClicked extends MouseListener.Stub{

public void mousePressed(MouseEvent me) {
Figure figure=(Figure)me.getSource();
//I guess there are other better way.
if(figure.getBounds().contains(me.x,me.y) && !figure.getBounds().getCropped(figure.getInsets()).contains(me.x,me.y)){
shell.setText("click border");
}else{
shell.setText("click inside");
}
}

}

8 comments:

micheltaft45537395 said...
This comment has been removed by a blog administrator.
walterfisher91074483 said...
This comment has been removed by a blog administrator.
lewislane77415324 said...

Get any Desired College Degree, In less then 2 weeks.

Call this number now 24 hours a day 7 days a week (413) 208-3069

Get these Degrees NOW!!!

"BA", "BSc", "MA", "MSc", "MBA", "PHD",

Get everything within 2 weeks.
100% verifiable, this is a real deal

Act now you owe it to your future.

(413) 208-3069 call now 24 hours a day, 7 days a week.

Anonymous said...

aciphex
albenza bay
aldara
carisoprodol
clarinex
kenalog
lexapro
naprosyn
prevacid
sumycin
tramadol
zyban

Anonymous said...

Valium
Verapamil
Viagra
Cipralex
Citalopram
Celebrex
Codiovan
Cefixim
Cephalexin
Doxepin
Diazepam
Dolviran
FEVARIN
Fluoxetin
Formigran
Zoloft
Zyban
Zaldiar
Zocor
Trevilor
Tramadol
Tavegil
Arcoxia
AVANDIA
ACOMPLIA
Biaxin
Ezetrol
Isotret
Ibuprofen
Klipal
Levitra
Lisihexal
Menogon
Mirtazapin
Omeprazol
Allergy
Blood Pressure
Muscle Relaxant
Contraceptive
Arthritis Rheumatics
Birth Control

Blood Pressure Numbers said...

What is this?

Scarlett said...

Doggy Steps

Android app development said...

This is one of the valuable and useful post.I like your blog Important.Thanks for share with us.Great work.
Android app developer