Package com.sun.star.awt

Examples of com.sun.star.awt.XBitmap



        // adding graphic as ObjRelation for GraphicObjectShape
        oShapeProps = (XPropertySet)
                            UnoRuntime.queryInterface(XPropertySet.class,oObj);
        XBitmap aBitmap = null;
        try {
            oShapeProps.setPropertyValue(
                "GraphicURL",util.utils.getFullTestURL("space-metal.jpg"));
            aBitmap = (XBitmap) AnyConverter.toObject(
                new Type(XBitmap.class),oShapeProps.getPropertyValue
View Full Code Here



        // adding graphic as ObjRelation for GraphicObjectShape
        oShapeProps = (XPropertySet)
                            UnoRuntime.queryInterface(XPropertySet.class,oObj);
        XBitmap aBitmap = null;
        try {
            oShapeProps.setPropertyValue(
                "GraphicURL",util.utils.getFullTestURL("space-metal.jpg"));
            aBitmap = (XBitmap) AnyConverter.toObject(
                new Type(XBitmap.class),oShapeProps.getPropertyValue
View Full Code Here

            xFrame = xModel.getCurrentController().getFrame();

            // ensure that the document content is optimal visible
            DesktopTools.zoomToEntirePage(xDrawDoc);

            XBitmap xBitmap = null;

            // adding graphic as ObjRelation for GraphicObjectShape
            XPropertySet oShapeProps = UnoRuntime.queryInterface(XPropertySet.class, oShape);
            System.out.println("Inserting a shape into the document");
View Full Code Here

    if ( !AnyConverter.isArray( aAny ) )
      throw new com.sun.star.uno.RuntimeException();
   
    Object[] aArgs = new Object[1];
    aArgs[0] = aAny;
    XBitmap xResult = null;

    try {
      XSingleServiceFactory xBitmapFactory = (XSingleServiceFactory)UnoRuntime.queryInterface(
          XSingleServiceFactory.class,
          xFactory.createInstance( "com.sun.star.embed.BitmapCreator" ) );
View Full Code Here

  public void windowPaint( PaintEvent e )
  {
    if ( !m_bProceedWithPainting )
      return;

    XBitmap xBitmap = null;
    com.sun.star.awt.Rectangle aRect = null;
    // boolean bFree = false;

    synchronized( m_oImageLock )
    {
View Full Code Here

    {
      try {
        Thread.sleep( 200 );
      } catch( Exception e ) {}

      XBitmap xBitmap = null;
      com.sun.star.awt.Rectangle aRect = null;
      boolean bPaint = false;

      synchronized( m_oRequestsLock )
      {
        if ( m_bToPaint )
        {
          xBitmap = m_xBitmap;
          aRect = m_aRect;
          m_bToPaint = false;
          bPaint = true;
        }
      }

      if ( bPaint )
      {
        // System.out.println( "The bitmap is going to be painted!" );
        XDevice xDevice = (XDevice)UnoRuntime.queryInterface( XDevice.class, m_xWindow );
        if ( xDevice != null )
        {
           // System.out.println( "Step1" );
          XGraphics xGraphics = xDevice.createGraphics();
          if ( xBitmap != null )
          {
            // System.out.println( "Step2" );
            XDisplayBitmap xDisplayBitmap = xDevice.createDisplayBitmap( xBitmap );
     
            com.sun.star.awt.Size aSize = xBitmap.getSize();
            xGraphics.draw( xDisplayBitmap, 0, 0, aSize.Width, aSize.Height,
                          aRect.X, aRect.Y, aRect.Width, aRect.Height );
          }

          // System.out.println( "Step3" );
View Full Code Here


        // adding graphic as ObjRelation for GraphicObjectShape
        oShapeProps = (XPropertySet)
                            UnoRuntime.queryInterface(XPropertySet.class,oObj);
        XBitmap aBitmap = null;
        try {
            oShapeProps.setPropertyValue(
                "GraphicURL",util.utils.getFullTestURL("space-metal.jpg"));
            aBitmap = (XBitmap) AnyConverter.toObject(
                new Type(XBitmap.class),oShapeProps.getPropertyValue
View Full Code Here


        // adding graphic as ObjRelation for GraphicObjectShape
        oShapeProps = (XPropertySet)
                            UnoRuntime.queryInterface(XPropertySet.class,oObj);
        XBitmap aBitmap = null;
        try {
            oShapeProps.setPropertyValue(
                "GraphicURL",util.utils.getFullTestURL("space-metal.jpg"));
            aBitmap = (XBitmap) AnyConverter.toObject(
                new Type(XBitmap.class),oShapeProps.getPropertyValue
View Full Code Here

    if ( !AnyConverter.isArray( aAny ) )
      throw new com.sun.star.uno.RuntimeException();
   
    Object[] aArgs = new Object[1];
    aArgs[0] = aAny;
    XBitmap xResult = null;

    try {
      XSingleServiceFactory xBitmapFactory = (XSingleServiceFactory)UnoRuntime.queryInterface(
          XSingleServiceFactory.class,
          xFactory.createInstance( "com.sun.star.embed.BitmapCreator" ) );
View Full Code Here

  public void windowPaint( PaintEvent e )
  {
    if ( !m_bProceedWithPainting )
      return;

    XBitmap xBitmap = null;
    com.sun.star.awt.Rectangle aRect = null;
    // boolean bFree = false;

    synchronized( m_oImageLock )
    {
View Full Code Here

TOP

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

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.