コード例 #1
0
  @Test
  public void testTextSymbolizerEditGUILine() throws Throwable {
    if (!TestingUtil.isInteractive()) return;

    STYLED_FS = TestDatasetsVector.lineBrokenQuix.getStyledFS();
    atlasStyler = new AtlasStylerVector(STYLED_FS);

    TextRuleList tRl = atlasStyler.getRlf().createTextRulesList(true);

    TextSymbolizerEditGUI tsGui = new TextSymbolizerEditGUI(tRl, atlasStyler, null);

    TestingUtil.testGui(tsGui, 1);
  }
コード例 #2
0
  @Test
  public void testManageChartsForMapDialog() throws Throwable {

    Map map = null;

    DpLayerVectorFeatureSource dplv = null;
    AtlasConfigEditable ace = GpTestingUtil.getAtlasConfigE(TestAtlas.small);
    for (Map m : ace.getMapPool().values()) {
      for (DpRef<DpLayer<?, ? extends ChartStyle>> dpe : m.getLayers()) {

        if (dpe.getTarget() instanceof DpLayerVectorFeatureSource
            && dpe.getTarget().getCharts().size() > 0) {
          map = m;
          dplv = (DpLayerVectorFeatureSource) dpe.getTarget();
          continue;
        }
      }
      if (map != null) continue;
    }

    assertNotNull("At least one vector layer with charts should be in the chart demo atlas", dplv);

    if (TestingUtil.INTERACTIVE) {
      AtlasMapLegend mapLegend = new AtlasMapLegend(new GeoMapPane(), map, ace, null);
      ManageChartsForMapDialog manageChartsForMapDialog =
          new ManageChartsForMapDialog(null, dplv, mapLegend);

      TestingUtil.testGui(manageChartsForMapDialog);
    }
    ace.deleteAtlas();
  }
コード例 #3
0
  @Test
  public void testTextSymbolizerEditGUIPolygon() throws Throwable {
    if (isInteractive()) return;

    TextRuleList tRl = atlasStyler.getRlf().createTextRulesList(true);

    TextSymbolizerEditGUI tsGui = new TextSymbolizerEditGUI(tRl, atlasStyler, null);

    TestingUtil.testGui(tsGui);
  }
コード例 #4
0
  @Test
  public void testUniqueValuesAddGUI() throws Throwable {

    // AtlasStyler atlasStyler = new AtlasStyler();
    // final UniqueValuesRuleList rl = atlasStyler.getRlf()
    // .createUniqueValuesRuleList();

    final UniqueValuesRuleList rl =
        new RuleListFactory(GTTestingUtil.TestDatasetsVector.kreise.getStyledFS())
            .createUniqueValuesRulesList(true);

    if (TestingUtil.INTERACTIVE) {
      UniqueValuesAddGUI dialog = new UniqueValuesAddGUI(null, rl);
      TestingUtil.testGui(dialog, 1);
    }
  }