Package org.jrebirth.af.core.resource.image

Examples of org.jrebirth.af.core.resource.image.LocalImage


        checkLocalImage(TestImages.TEST_LOCAL_IMAGE_3);
    }

    private void checkLocalImage(final ImageItem imageItem) {
        final Image image = imageItem.get();
        final LocalImage wc = (LocalImage) ResourceBuilders.IMAGE_BUILDER.getParam(imageItem);

        assertEquals(image.getProgress(), 1.0, 0.0);

    }
View Full Code Here


     * {@inheritDoc}
     */
    @Override
    protected void initView() {

        this.image = Resources.create(new LocalImage(getModel().getImage())).get();

        if (getModel().getSlide().getShowAnimation() == null || !"Tile".equalsIgnoreCase(getModel().getSlide().getShowAnimation().name())
                && !"Tile_60_k".equalsIgnoreCase(getModel().getSlide().getShowAnimation().name())) {
            getRootNode().getChildren().add(ImageViewBuilder.create().image(this.image).layoutX(0).layoutY(0).fitWidth(this.image.getWidth()).fitHeight(this.image.getHeight()).build());
        }
View Full Code Here

            node = web; // StackPaneBuilder.create().children(web).style("-fx-border-width:2;-fx-border-color:#000000").build();

        } else if (item.getImage() != null) {

            final Image image = Resources.create(new LocalImage(item.getImage())).get();
            final ImageView imageViewer = ImageViewBuilder.create()
                    .styleClass(ITEM_CLASS_PREFIX + item.getLevel())
                    .image(image)
                    // .effect(ReflectionBuilder.create().fraction(0.9).build())
                    .build();
View Full Code Here

    @Override
    protected void initInnerModels() {

        this.imageSlicerService = getService(NodeSlicerCommand.class, "Properties");

        this.imageSlicerService.setImage(Resources.create(new LocalImage("Properties.png")).get());
        this.imageSlicerService.setTileHeight(600);
        this.imageSlicerService.setTileWidth(4);

        this.imageSlicerService.sliceNode(null, null);
View Full Code Here

TOP

Related Classes of org.jrebirth.af.core.resource.image.LocalImage

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.