Package com.sun.star.awt

Examples of com.sun.star.awt.Size


       
        settings = (CGSettings)set_.root;
       
        fileAccess = new FileAccess(xmsf);
        il.setListModel(new Model(set_));
        il.setImageSize( new Size(40,40));
        il.setRenderer(new BGRenderer(0));
        build();
       
       
    }
View Full Code Here


          objects[i] = new Integer(i);
        il.setListModel(this);     
        il.setRenderer(this);
        il.setRows(4);
        il.setCols(8);
        il.setImageSize(new Size(20,20));
        il.setShowButtons(false);
        il.setRowSelect(true);
        il.scaleImages = Boolean.FALSE;
       
        showDeselectButton = true;
View Full Code Here

        xShape = (XShape) UnoRuntime.queryInterface(XShape.class, oShape);
        xShape.setPosition(aPoint);
        if (aSize != null)
            xShape.setSize(aSize);
        else
            xShape.setSize(new Size(1000, 100));
        Helper.setUnoPropertyValue(xShape, "AnchorType", TextContentAnchorType.AT_PARAGRAPH);
        xServiceInfo = (XServiceInfo) UnoRuntime.queryInterface(XServiceInfo.class, xShape);
        xControlShape = (XControlShape) UnoRuntime.queryInterface(XControlShape.class, xShape);
       
    } catch (Exception e) {
View Full Code Here

  /**
   * builds the layouts image list.
   */
  public void buildStepX() {
    ilLayouts = new ImageList();
    ilLayouts.setPos(new Size(97,38));
    ilLayouts.setImageSize(new Size(34,30));
    ilLayouts.setCols(5);
    ilLayouts.setRows(3);
    ilLayouts.setStep(new Short((short)3));
    ilLayouts.setShowButtons(false);
    ilLayouts.setRenderer(new LayoutRenderer());
View Full Code Here

            return null;
    }


    public void initializeBasicControlValues(){
        Control oLabelControl = new Control(this, SOLABEL, new Point(), new Size());
        XDevice xDevice = (XDevice) UnoRuntime.queryInterface(XDevice.class, oLabelControl.xWindowPeer);
        iXPixelFactor = (int) (100000/xDevice.getInfo().PixelPerMeterX);
        iYPixelFactor = (int) (100000/xDevice.getInfo().PixelPerMeterY);
        nLabelHeight = (oLabelControl.getPreferredHeight("The quick brown fox...") + 1);
        Control oTextControl = new Control(this, SOTEXTBOX, new Point(), new Size());
        nDBRefHeight = (oTextControl.getPreferredHeight("The quick brown fox...") + 1);
        BasicLabelDiffHeight = (nDBRefHeight - nLabelHeight)/2;
        xDrawPage.remove(oLabelControl.xShape);
        xDrawPage.remove(oTextControl.xShape);
    }
View Full Code Here

        oDefaultValue = Helper.getUnoPropertyValue(DatabaseField, "DefaultValue");
    }


    public int getPreferredWidth(String sText){
        Size aPeerSize = getPreferredSize(sText);
        return ((aPeerSize.Width + 10) * oFormHandler.getXPixelFactor());
    }
View Full Code Here

        return ((aPeerSize.Width + 10) * oFormHandler.getXPixelFactor());
    }


    public int getPreferredHeight(String sText){
        Size aPeerSize = getPreferredSize(sText);
        if (icontroltype == FormHandler.SOCHECKBOX)
            return (aPeerSize.Height * oFormHandler.getXPixelFactor());
        else
            return ((aPeerSize.Height + 2) * oFormHandler.getXPixelFactor());
    }
View Full Code Here

    public int getPreferredWidth(){
        if (icontroltype == FormHandler.SOIMAGECONTROL)
            return IIMGFIELDWIDTH;
        else{
            Size aPeerSize = getPeerSize();
            // We increase the preferred Width a bit so that the control does not become too small
            // when we change the border from "3D" to "Flat"
            if (icontroltype == FormHandler.SOCHECKBOX)
                return((aPeerSize.Width * oFormHandler.getXPixelFactor()) );           
            else
View Full Code Here

    public int getPreferredHeight(){
        if (this.icontroltype == FormHandler.SOIMAGECONTROL)
            return 2000;
        else{
            Size aPeerSize = getPeerSize();
            int nHeight = aPeerSize.Height;
            // We increase the preferred Height a bit so that the control does not become too small
            // when we change the border from "3D" to "Flat"
            return((nHeight+1) * oFormHandler.getYPixelFactor());
        }
View Full Code Here

         return (XLayoutConstrains) UnoRuntime.queryInterface(XLayoutConstrains.class, xControl.getPeer());
    }

    public Size getPeerSize(){
    try {
        Size aPreferredSize = null;
        double dblEffMax = 0;
        if (xPropertySet.getPropertySetInfo().hasPropertyByName("EffectiveMax")){
            Object oValue = xPropertySet.getPropertyValue("EffectiveMax");
            if (xPropertySet.getPropertyValue("EffectiveMax") != com.sun.star.uno.Any.VOID)
                dblEffMax = AnyConverter.toDouble(xPropertySet.getPropertyValue("EffectiveMax"));
View Full Code Here

TOP

Related Classes of com.sun.star.awt.Size

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.