protected void populateFlightPaths() { ShapeAttributes attrs = new ShapeAttributes(); attrs.getInteriorColor().set(0.8f, 0.8f, 1.0f, 0.8f); attrs.getOutlineColor().set(1.0f, 1.0f, 0.0f, 1.0f); Airport dept = this.airportIkoIndex.get("KSEA"); for (Airport dest : this.airportTable) { if (dest.equals(dept)) { continue; // the destination and departure must be different } if (dest.iko.length() != 4) { continue; // the destination must be a major airfield } if (!dest.na3.startsWith("US")) { continue; // the destination must be in the United States } if (!dest.use.equals("49")) { continue; // the destination must a Civilian/Public airport } List<Position> positions = new ArrayList<>(); positions.add(dept.pos); Path path = new Path(positions, attrs); path.putUserProperty("dept", dept); path.putUserProperty("dest", dest); this.flightPathLayer.addRenderable(path); } }
attrs.getOutlineColor().set(1.0f, 1.0f, 0.0f, 1.0f); attrs.setOutlineWidth(3); highlightAttrs.getOutlineColor().set(1.0f, 0.0f, 0.0f, 1.0f); highlightAttrs.setOutlineWidth(7);
commonAttrs.getOutlineColor().set(0.0f, 0.0f, 0.0f, 1.0f); commonAttrs.setOutlineWidth(3); highlightAttrs.getOutlineColor().set(1.0f, 1.0f, 1.0f, 1.0f); highlightAttrs.setOutlineWidth(5);
@Test public void testGetOutlineColor() throws Exception { ShapeAttributes attributes = new ShapeAttributes(); Color black = new Color(0, 0, 0, 1); attributes.outlineColor = black; assertEquals(black, attributes.getOutlineColor()); }