Examples of derive()


Examples of ae.sun.java2d.pipe.hw.ExtendedBufferCapabilities.derive()

                    // change the caps that we pass to the peer but keep on
                    // trying to create v-synced buffers;
                    // do not throw IAE here in case it is disallowed, see
                    // ExtendedBufferCapabilities for more info
                    if (!VSyncedBSManager.vsyncAllowed(this)) {
                        caps = ebc.derive(VSYNC_DEFAULT);
                    }
                }
            }

            peer.createBuffers(numBuffers, caps);
View Full Code Here

Examples of com.sun.msv.datatype.xsd.TypeIncubator.derive()

      }

      // derive a new type by those facets
      String newTypeName = null;

      return incubator.derive("", newTypeName);
    } catch (DatatypeException e) {
      onSchemaError("Invalid restriction: " + e.getMessage()
          + " when trying to build restriction: " + xsdRestriction);

      return null;
View Full Code Here

Examples of com.sun.msv.datatype.xsd.TypeIncubator.derive()

                Iterator itr = facets.iterator();
                for( int i=0; i<facetSize; i++ ) {
                    Facet f = (Facet)itr.next();
                    ti.addFacet( f.name, f.value, f.fixed, f.context );
                }
                return ti.derive(nsUri,localName);
            }
        });
    }
   
    /** store the information about one added facet. */
 
View Full Code Here

Examples of com.sun.msv.datatype.xsd.TypeIncubator.derive()

           
            public void addFacet( String name, String value, boolean fixed, ValidationContext context ) throws DatatypeException {
                core.addFacet(name,value,fixed,context);
            }
            public XSDatatypeExp derive(String uri,String localName) throws DatatypeException {
                return new XSDatatypeExp( core.derive(uri,localName), pool );
            }
        };
    }
   
   
View Full Code Here

Examples of com.sun.msv.datatype.xsd.TypeIncubator.derive()

        {
          String value = tokens.nextToken();
                   
          // a type can be derived by derive method.
          // the new type contains all facets that were added.
          XSDatatype dt = incubator.derive("","anonymous");
         
          // check validity.
          if( dt.isValid(value,null) )
            // verify method returns true if the value is valid.
            System.out.println("valid value");
View Full Code Here

Examples of com.sun.msv.reader.datatype.xsd.XSTypeIncubator.derive()

                   
                    try {
                        XSTypeIncubator inc = baseType.createIncubator();
                        inc.addFacet("enumeration",fixed,false,reader);
                   
                        contentType = inc.derive(null,null);
                    } catch( DatatypeException e ) {
                        reader.reportError( e, XMLSchemaReader.ERR_BAD_TYPE, e.getMessage() );
                        return Expression.nullSet;
                    }
                } else {
View Full Code Here

Examples of net.rim.device.api.ui.Font.derive()

                    int lineY = y + listField.getRowHeight() / 3;
                    graphics.drawLine( PADDING, lineY, width - PADDING, lineY );
                    break;
                case SelectAsyncFunction.POPUP_ITEM_TYPE_GROUP:
                    graphics.setColor( Color.GRAY );
                    font = font.derive( Font.BOLD );
                    graphics.setFont( font );
                    graphics.drawText( text, PADDING, y, DrawStyle.ELLIPSIS, width - PADDING ); // no fudge added to y coordinate
                    break;
                case SelectAsyncFunction.POPUP_ITEM_TYPE_OPTION:
                    boolean enabled = listItem.isEnabled();
View Full Code Here

Examples of net.rim.device.api.ui.Font.derive()

        add(separator0);

    add(_urlField);
   
        Font default_font = Font.getDefault();
        heading_font = default_font.derive(Font.BOLD, 24);

        heading.setText("Event Log (newest items first)");
        heading.setFont(heading_font);

   
View Full Code Here

Examples of net.rim.device.api.ui.Font.derive()

    add(_urlField);
    add(_txtField);
   
        Font default_font = Font.getDefault();
        heading_font = default_font.derive(Font.BOLD, 24);

        heading.setText("Event Log (newest items first)");
        heading.setFont(heading_font);

   
View Full Code Here

Examples of net.rim.device.api.ui.Font.derive()

        _miStart.setCommandContext(this);
        _miStart.setCommand(new Command(new StartCommand(this)));

        Font default_font = Font.getDefault();
        _headingFont = default_font.derive(Font.BOLD, 24);

        _heading.setText("Event Log (newest items first)");
        _heading.setFont(_headingFont);

        add(_separator1);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.