Class StyleRow
java.lang.Object
mil.nga.geopackage.user.UserCoreRow<TColumn,TTable>
mil.nga.geopackage.user.UserRow<AttributesColumn,AttributesTable>
mil.nga.geopackage.attributes.AttributesRow
mil.nga.geopackage.extension.nga.style.StyleRow
Style Row containing the values from a single cursor row
- Since:
- 3.2.0
-
Field Summary
Fields inherited from class mil.nga.geopackage.user.UserCoreRow
columns, columnTypes, table, values
-
Constructor Summary
ConstructorDescriptionStyleRow()
Constructor to create an empty rowStyleRow
(AttributesRow attributesRow) ConstructorCopy ConstructorStyleRow
(StyleTable table) Constructor to create an empty row -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Copy the rowgetColor()
Get the style colorGet the color columnint
Get the color column indexGet the color or default valueGet the descriptionGet the description columnint
Get the description column indexGet the style fill colorGet the fill color columnint
Get the fill color column indexGet the fill colorGet the fill opacityGet the fill opacity columnint
Get the fill opacity column indexdouble
Get the fill opacity or default valueGet the colorGet the color or default valuegetName()
Get the nameGet the name columnint
Get the name column indexGet the opacityGet the opacity columnint
Get the opacity column indexdouble
Get the opacity or default valuegetTable()
getWidth()
Get the widthGet the width columnint
Get the width column indexdouble
Get the width value or default widthboolean
hasColor()
Check if the style has a colorboolean
Check if the style has a fill colorboolean
Is a table stylevoid
Set the colorvoid
Set the colorvoid
setDescription
(String description) Set the descriptionvoid
setFillColor
(String fillColor) Set the fill colorvoid
setFillColor
(Color color) Set the colorvoid
setFillOpacity
(Double fillOpacity) Set the fill opacityvoid
Set the namevoid
setOpacity
(Double opacity) Set the opacityvoid
setTableStyle
(boolean tableStyle) Set table style flagvoid
Set the widthMethods inherited from class mil.nga.geopackage.attributes.AttributesRow
getColumns
Methods inherited from class mil.nga.geopackage.user.UserRow
columnToContentValue, isValid, setValid, toContentValues, toContentValues
Methods inherited from class mil.nga.geopackage.user.UserCoreRow
columnCount, copyValue, getAsMap, getColumn, getColumn, getColumnIndex, getColumnName, getColumnNames, getId, getPkColumn, getPkColumnIndex, getRowColumnType, getRowColumnType, getRowColumnTypes, getValue, getValue, getValues, getValueString, getValueString, hasColumn, hasId, hasIdColumn, resetId, setId, setValue, setValue, validateValue
-
Constructor Details
-
StyleRow
public StyleRow()Constructor to create an empty row -
StyleRow
Constructor to create an empty row- Parameters:
table
- style table
-
StyleRow
Constructor- Parameters:
attributesRow
- attributes row
-
StyleRow
Copy Constructor- Parameters:
styleRow
- style row to copy
-
-
Method Details
-
getTable
- Overrides:
getTable
in classUserCoreRow<AttributesColumn,
AttributesTable>
-
isTableStyle
public boolean isTableStyle()Is a table style- Returns:
- table style flag
- Since:
- 3.5.0
-
setTableStyle
public void setTableStyle(boolean tableStyle) Set table style flag- Parameters:
tableStyle
- table style flag- Since:
- 3.5.0
-
getNameColumnIndex
public int getNameColumnIndex()Get the name column index- Returns:
- name column index
-
getNameColumn
Get the name column- Returns:
- name column
-
getName
Get the name- Returns:
- name
-
setName
Set the name- Parameters:
name
- Feature Style name
-
getDescriptionColumnIndex
public int getDescriptionColumnIndex()Get the description column index- Returns:
- description column index
-
getDescriptionColumn
Get the description column- Returns:
- description column
-
getDescription
Get the description- Returns:
- description
-
setDescription
Set the description- Parameters:
description
- Feature Style description
-
getColorColumnIndex
public int getColorColumnIndex()Get the color column index- Returns:
- color column index
-
getColorColumn
Get the color column- Returns:
- color column
-
getColor
Get the style color- Returns:
- color
-
hasColor
public boolean hasColor()Check if the style has a color- Returns:
- true if has a color
-
getHexColor
Get the color- Returns:
- color
-
setColor
Set the color- Parameters:
color
- color
-
setColor
Set the color- Parameters:
color
- Geometry color in hex format #RRGGBB or #RGB
-
getColorOrDefault
Get the color or default value- Returns:
- color
-
getHexColorOrDefault
Get the color or default value- Returns:
- color
-
getOpacityColumnIndex
public int getOpacityColumnIndex()Get the opacity column index- Returns:
- opacity column index
-
getOpacityColumn
Get the opacity column- Returns:
- opacity column
-
getOpacity
Get the opacity- Returns:
- opacity
-
setOpacity
Set the opacity- Parameters:
opacity
- Geometry color opacity inclusively between 0.0 and 1.0
-
getOpacityOrDefault
public double getOpacityOrDefault()Get the opacity or default value- Returns:
- opacity
-
getWidthColumnIndex
public int getWidthColumnIndex()Get the width column index- Returns:
- width column index
-
getWidthColumn
Get the width column- Returns:
- width column
-
getWidth
Get the width- Returns:
- width
-
setWidth
Set the width- Parameters:
width
- Geometry line stroke or point width greater than or equal to 0.0
-
getWidthOrDefault
public double getWidthOrDefault()Get the width value or default width- Returns:
- width
-
getFillColorColumnIndex
public int getFillColorColumnIndex()Get the fill color column index- Returns:
- fill color column index
-
getFillColorColumn
Get the fill color column- Returns:
- fill color column
-
getFillColor
Get the style fill color- Returns:
- fill color
-
hasFillColor
public boolean hasFillColor()Check if the style has a fill color- Returns:
- true if has a fill color
-
getFillHexColor
Get the fill color- Returns:
- fill color
-
setFillColor
Set the color- Parameters:
color
- color
-
setFillColor
Set the fill color- Parameters:
fillColor
- Closed geometry fill color in hex format #RRGGBB or #RGB
-
getFillOpacityColumnIndex
public int getFillOpacityColumnIndex()Get the fill opacity column index- Returns:
- fill opacity column index
-
getFillOpacityColumn
Get the fill opacity column- Returns:
- fill opacity column
-
getFillOpacity
Get the fill opacity- Returns:
- fill opacity
-
setFillOpacity
Set the fill opacity- Parameters:
fillOpacity
- Closed geometry fill color opacity inclusively between 0.0 and 1.0
-
getFillOpacityOrDefault
public double getFillOpacityOrDefault()Get the fill opacity or default value- Returns:
- fill opacity
-
copy
Copy the row- Overrides:
copy
in classAttributesRow
- Returns:
- row copy
-