Examples of Locatable


Examples of com.danhaywood.isis.wicket.gmap3.applib.Locatable

        return new GMarker(markerOptions);
    }

    private GMarkerOptions buildMarkerOptions(GMap map, ObjectAdapter adapter) {
       
        final Locatable locatable = (Locatable) adapter.getObject();
       
        final ResourceReference imageResource = determineImageResource(adapter);
        final String urlFor = (String)urlFor(imageResource, new PageParameters());
        @SuppressWarnings("unused")
        final GIcon gicon = new GIcon(urlFor);
View Full Code Here

Examples of com.danhaywood.isis.wicket.gmap3.applib.Locatable

        return new GMarker(markerOptions);
    }

    private GMarkerOptions buildMarkerOptions(GMap map, ObjectAdapter adapter) {
       
        final Locatable locatable = (Locatable) adapter.getObject();
       
        final ResourceReference imageResource = determineImageResource(adapter);
        final String urlFor = (String)urlFor(imageResource, new PageParameters());
        @SuppressWarnings("unused")
        final GIcon gicon = new GIcon(urlFor);
View Full Code Here

Examples of com.danhaywood.isis.wicket.gmap3.applib.Locatable

        return new GMarker(markerOptions);
    }

    private GMarkerOptions buildMarkerOptions(GMap map, ObjectAdapter adapter) {
       
        final Locatable locatable = (Locatable) adapter.getObject();
       
        final ResourceReference imageResource = determineImageResource(adapter);
        final String urlFor = (String)urlFor(imageResource, new PageParameters());
        @SuppressWarnings("unused")
        final GIcon gicon = new GIcon(urlFor);
View Full Code Here

Examples of com.google.typography.font.sfntly.table.truetype.LocaTable

      sfntlyGlyph.setChar(ch);
    return sfntlyGlyph;
  }

  private com.google.typography.font.sfntly.table.truetype.Glyph getGlyph(int glyphId) {
      LocaTable locaTable = font.getTable(Tag.loca);
      GlyphTable glyphTable = font.getTable(Tag.glyf);
      int offset = locaTable.glyphOffset(glyphId);
      int length = locaTable.glyphLength(glyphId);
     
      com.google.typography.font.sfntly.table.truetype.Glyph glyph = glyphTable.glyph(offset, length);
    return glyph;
  }
View Full Code Here

Examples of org.apache.hivemind.Locatable

    }

    public void testLocatable()
    {
        Location l1 = new LocationImpl(null);
        Locatable l2 = new LocatableFixture(l1);

        assertSame(l1, HiveMind.findLocation(new Object[] { l2 }));
    }
View Full Code Here

Examples of org.apache.hivemind.Locatable

    }

    public void testNullLocatable()
    {
        Location l1 = new LocationImpl(null);
        Locatable l2 = new LocatableFixture(null);
        Locatable l3 = new LocatableFixture(l1);

        assertSame(l1, HiveMind.findLocation(new Object[] { l2, l3 }));
    }
View Full Code Here

Examples of org.apache.hivemind.Locatable

    }

    public void testLocatable()
    {
        Location l1 = new LocationImpl(null);
        Locatable l2 = new LocatableFixture(l1);

        assertSame(l1, HiveMind.findLocation(new Object[] { l2 }));
    }
View Full Code Here

Examples of org.apache.hivemind.Locatable

    }

    public void testNullLocatable()
    {
        Location l1 = new LocationImpl(null);
        Locatable l2 = new LocatableFixture(null);
        Locatable l3 = new LocatableFixture(l1);

        assertSame(l1, HiveMind.findLocation(new Object[] { l2, l3 }));
    }
View Full Code Here

Examples of org.apache.tapestry.ioc.Locatable

    @Test
    public void location_of_locatable()
    {
        Location l = mockLocation();
        Locatable locatable = newMock(Locatable.class);

        expect(locatable.getLocation()).andReturn(l);

        replay();

        assertSame(l, InternalUtils.locationOf(locatable));
View Full Code Here

Examples of org.apache.tapestry.ioc.Locatable

    @Test
    public void location_of_locatable()
    {
        Location l = mockLocation();
        Locatable locatable = newMock(Locatable.class);

        expect(locatable.getLocation()).andReturn(l);

        replay();

        assertSame(l, InternalUtils.locationOf(locatable));
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.