Java Code Examples for mil.nga.geopackage.extension.style.StyleRow#getFillOpacity()
The following examples show how to use
mil.nga.geopackage.extension.style.StyleRow#getFillOpacity() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FeatureStylesUtils.java From geopackage-android with MIT License | 5 votes |
private static void validateRowStyles( FeatureTableStyles featureTableStyles, FeatureRow featureRow, GeometryType geometryType, StyleRow tableStyleDefault, Map<GeometryType, StyleRow> geometryTypeTableStyles, Map<Long, Map<GeometryType, StyleRow>> featureResultsStyles) { StyleRow styleRow = null; if (geometryType == null) { styleRow = featureTableStyles.getStyle(featureRow); geometryType = featureRow.getGeometryType(); } else { styleRow = featureTableStyles.getStyle(featureRow, geometryType); } StyleRow expectedStyleRow = getExpectedRowStyle(featureRow, geometryType, tableStyleDefault, geometryTypeTableStyles, featureResultsStyles); if (expectedStyleRow != null) { TestCase.assertEquals(expectedStyleRow.getId(), styleRow.getId()); TestCase.assertNotNull(styleRow.getTable()); TestCase.assertTrue(styleRow.getId() >= 0); styleRow.getName(); styleRow.getDescription(); styleRow.getColor(); styleRow.getHexColor(); styleRow.getOpacity(); styleRow.getWidth(); styleRow.getFillColor(); styleRow.getFillHexColor(); styleRow.getFillOpacity(); } else { TestCase.assertNull(styleRow); } }
Example 2
Source File: FeatureStylesUtils.java From geopackage-java with MIT License | 5 votes |
private static void validateRowStyles(FeatureTableStyles featureTableStyles, FeatureRow featureRow, GeometryType geometryType, StyleRow tableStyleDefault, Map<GeometryType, StyleRow> geometryTypeTableStyles, Map<Long, Map<GeometryType, StyleRow>> featureResultsStyles) { StyleRow styleRow = null; if (geometryType == null) { styleRow = featureTableStyles.getStyle(featureRow); geometryType = featureRow.getGeometryType(); } else { styleRow = featureTableStyles.getStyle(featureRow, geometryType); } StyleRow expectedStyleRow = getExpectedRowStyle(featureRow, geometryType, tableStyleDefault, geometryTypeTableStyles, featureResultsStyles); if (expectedStyleRow != null) { TestCase.assertEquals(expectedStyleRow.getId(), styleRow.getId()); TestCase.assertNotNull(styleRow.getTable()); TestCase.assertTrue(styleRow.getId() >= 0); styleRow.getName(); styleRow.getDescription(); styleRow.getColor(); styleRow.getHexColor(); styleRow.getOpacity(); styleRow.getWidth(); styleRow.getFillColor(); styleRow.getFillHexColor(); styleRow.getFillOpacity(); } else { TestCase.assertNull(styleRow); } }