Use of clipping in TabPaneSkin

Pedro Duque Vieira pedro.duquevieira at gmail.com
Fri Sep 4 17:54:16 UTC 2015


Hi,

While creating my ribbon implementation for javafx I decided I had to
create my own TabPane implementation because of the singularities of the
ribbon. The ribbon would then use my TabPane implementation.

For this I looked at javafx TabPane code and I saw a lot of usage of
clipping which I don't understand why. For example in the TabHeaderSkin
there's this lines of code:

@Override protected void setWidth(double value) {
    super.setWidth(value);
    clip.setWidth(value);
}

@Override protected void setHeight(double value) {
    super.setHeight(value);
    clip.setHeight(value);

}

What's the purpose of this?

Thanks,

-- 
Pedro Duque Vieira


More information about the openjfx-dev mailing list