Package pythagoras.f

Examples of pythagoras.f.Dimension


            super(text);
        }

        /** Calculates the size of the label, using the given width hint. */
        public Dimension calcSize (float hintX) {
            return new Dimension(preferredSize(hintX, 0));
        }
View Full Code Here


    protected class EntriesLayout extends Layout
    {
        @Override
        public Dimension computeSize (Container<?> elems, float hintX, float hintY) {
            // report a large width since we expect to always be stretched, not fixed
            Dimension size = new Dimension(4096, 0);
            if (!_entries.isEmpty()) {
                size.height += _vgap * (_entries.size() - 1);
                for (Entry e : _entries) {
                    size.height += e.size.height();
                }
View Full Code Here

        /** Disposes of this background instance when it is no longer valid/needed. */
        @Override public abstract void destroy ();

        protected Instance (IDimension size) {
            this.size = new Dimension(size);
        }
View Full Code Here

        return new ImageButtonLayoutData();
    }

    protected class ImageButtonLayoutData extends LayoutData {
        @Override public Dimension computeSize (float hintX, float hintY) {
            return new Dimension(_up.width(), _up.height());
        }
View Full Code Here

        return new BoxLayoutData();
    }

    protected class BoxLayoutData extends LayoutData {
        @Override public Dimension computeSize (float hintX, float hintY) {
            return (_contents == null) ? new Dimension() : _contents.computeSize(hintX, hintY);
        }
View Full Code Here

TOP

Related Classes of pythagoras.f.Dimension

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.