attrs.setOutlineWidth(3); highlightAttrs.setOutlineWidth(7);
commonAttrs.getInteriorColor().set(1.0f, 1.0f, 0.0f, 0.5f); commonAttrs.getOutlineColor().set(0.0f, 0.0f, 0.0f, 1.0f); commonAttrs.setOutlineWidth(3); highlightAttrs.getInteriorColor().set(1.0f, 1.0f, 1.0f, 0.5f); highlightAttrs.getOutlineColor().set(1.0f, 1.0f, 1.0f, 1.0f); highlightAttrs.setOutlineWidth(5);
@Test public void testSetOutlineWidth() throws Exception { ShapeAttributes attributes = new ShapeAttributes(); float width = 2.5f; attributes.setOutlineWidth(width); assertEquals(width, attributes.outlineWidth, 1e-15); }
/** * Helper method to create aircraft placemarks. The aircraft are selectable, movable, and editable. */ protected static Placemark createAircraftPlacemark(Position position, String aircraftName, String aircraftType) { if (!aircraftIconMap.containsKey(aircraftType)) { throw new IllegalArgumentException(aircraftType + " is not valid."); } Placemark placemark = Placemark.createWithImage(position, ImageSource.fromResource(aircraftIconMap.get(aircraftType))); placemark.getAttributes().setImageOffset(Offset.bottomCenter()).setImageScale(NORMAL_IMAGE_SCALE).setDrawLeader(true); placemark.getAttributes().getLeaderAttributes().setOutlineWidth(4); placemark.setHighlightAttributes(new PlacemarkAttributes(placemark.getAttributes()).setImageScale(HIGHLIGHTED_IMAGE_SCALE).setImageColor(new Color(android.graphics.Color.YELLOW))); placemark.setDisplayName(aircraftName); // The AIRCRAFT_TYPE property is used to exchange the vehicle type with the VehicleTypeDialog placemark.putUserProperty(AIRCRAFT_TYPE, aircraftType); // The select/drag controller will examine a placemark's "capabilities" to determine what operations are applicable: placemark.putUserProperty(SELECTABLE, null); placemark.putUserProperty(EDITABLE, null); placemark.putUserProperty(MOVABLE, null); return placemark; }
attrs.setDrawVerticals(true); // display the extruded verticals attrs.setInteriorColor(new Color(1, 1, 1, 0.5f)); // 50% transparent white attrs.setOutlineWidth(3); path = new Path(positions, attrs); path.setExtrude(true); // extrude the path from the ground to each path position's altitude
attrs.setDrawVerticals(true); // display the extruded verticals attrs.setInteriorColor(new Color(1, 1, 1, 0.5f)); // 50% transparent white attrs.setOutlineWidth(3); poly = new Polygon(positions, attrs); poly.setExtrude(true); // extrude the polygon from the ground to each polygon position's altitude
thickenLine.setOutlineWidth(4f);
attrs.setOutlineWidth(3); ellipse = new Ellipse(new Position(45, -100, 0), 500000, 300000, attrs);