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
-
public class StyleRow extends AttributesRow
Style Row containing the values from a single result set row- Since:
- 3.2.0
- Author:
- osbornb
-
-
Field Summary
-
Fields inherited from class mil.nga.geopackage.user.UserCoreRow
columns, columnTypes, table, values
-
-
Constructor Summary
Constructors Constructor Description StyleRow()Constructor to create an empty rowStyleRow(AttributesRow attributesRow)ConstructorStyleRow(StyleRow styleRow)Copy ConstructorStyleRow(StyleTable table)Constructor to create an empty row
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StyleRowcopy()Copy the rowColorgetColor()Get the style colorAttributesColumngetColorColumn()Get the color columnintgetColorColumnIndex()Get the color column indexColorgetColorOrDefault()Get the color or default valueStringgetDescription()Get the descriptionAttributesColumngetDescriptionColumn()Get the description columnintgetDescriptionColumnIndex()Get the description column indexColorgetFillColor()Get the style fill colorAttributesColumngetFillColorColumn()Get the fill color columnintgetFillColorColumnIndex()Get the fill color column indexStringgetFillHexColor()Get the fill colorDoublegetFillOpacity()Get the fill opacityAttributesColumngetFillOpacityColumn()Get the fill opacity columnintgetFillOpacityColumnIndex()Get the fill opacity column indexdoublegetFillOpacityOrDefault()Get the fill opacity or default valueStringgetHexColor()Get the colorStringgetHexColorOrDefault()Get the color or default valueStringgetName()Get the nameAttributesColumngetNameColumn()Get the name columnintgetNameColumnIndex()Get the name column indexDoublegetOpacity()Get the opacityAttributesColumngetOpacityColumn()Get the opacity columnintgetOpacityColumnIndex()Get the opacity column indexdoublegetOpacityOrDefault()Get the opacity or default valueStyleTablegetTable()DoublegetWidth()Get the widthAttributesColumngetWidthColumn()Get the width columnintgetWidthColumnIndex()Get the width column indexdoublegetWidthOrDefault()Get the width value or default widthbooleanhasColor()Check if the style has a colorbooleanhasFillColor()Check if the style has a fill colorbooleanisTableStyle()Is a table stylevoidsetColor(String color)Set the colorvoidsetColor(Color color)Set the colorvoidsetDescription(String description)Set the descriptionvoidsetFillColor(String fillColor)Set the fill colorvoidsetFillColor(Color color)Set the colorvoidsetFillOpacity(Double fillOpacity)Set the fill opacityvoidsetName(String name)Set the namevoidsetOpacity(Double opacity)Set the opacityvoidsetTableStyle(boolean tableStyle)Set table style flagvoidsetWidth(Double width)Set the width-
Methods inherited from class mil.nga.geopackage.attributes.AttributesRow
getColumns
-
Methods inherited from class mil.nga.geopackage.user.UserRow
columnToContentValue, 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 Detail
-
StyleRow
public StyleRow()
Constructor to create an empty row
-
StyleRow
public StyleRow(StyleTable table)
Constructor to create an empty row- Parameters:
table- style table
-
StyleRow
public StyleRow(AttributesRow attributesRow)
Constructor- Parameters:
attributesRow- attributes row
-
StyleRow
public StyleRow(StyleRow styleRow)
Copy Constructor- Parameters:
styleRow- style row to copy
-
-
Method Detail
-
getTable
public StyleTable getTable()
- Overrides:
getTablein 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
public AttributesColumn getNameColumn()
Get the name column- Returns:
- name column
-
getName
public String getName()
Get the name- Returns:
- name
-
setName
public void setName(String name)
Set the name- Parameters:
name- Feature Style name
-
getDescriptionColumnIndex
public int getDescriptionColumnIndex()
Get the description column index- Returns:
- description column index
-
getDescriptionColumn
public AttributesColumn getDescriptionColumn()
Get the description column- Returns:
- description column
-
getDescription
public String getDescription()
Get the description- Returns:
- description
-
setDescription
public void setDescription(String description)
Set the description- Parameters:
description- Feature Style description
-
getColorColumnIndex
public int getColorColumnIndex()
Get the color column index- Returns:
- color column index
-
getColorColumn
public AttributesColumn getColorColumn()
Get the color column- Returns:
- color column
-
getColor
public Color 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
public String getHexColor()
Get the color- Returns:
- color
-
setColor
public void setColor(Color color)
Set the color- Parameters:
color- color
-
setColor
public void setColor(String color)
Set the color- Parameters:
color- Geometry color in hex format #RRGGBB or #RGB
-
getColorOrDefault
public Color getColorOrDefault()
Get the color or default value- Returns:
- color
-
getHexColorOrDefault
public String getHexColorOrDefault()
Get the color or default value- Returns:
- color
-
getOpacityColumnIndex
public int getOpacityColumnIndex()
Get the opacity column index- Returns:
- opacity column index
-
getOpacityColumn
public AttributesColumn getOpacityColumn()
Get the opacity column- Returns:
- opacity column
-
getOpacity
public Double getOpacity()
Get the opacity- Returns:
- opacity
-
setOpacity
public void setOpacity(Double opacity)
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
public AttributesColumn getWidthColumn()
Get the width column- Returns:
- width column
-
getWidth
public Double getWidth()
Get the width- Returns:
- width
-
setWidth
public void setWidth(Double width)
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
public AttributesColumn getFillColorColumn()
Get the fill color column- Returns:
- fill color column
-
getFillColor
public Color 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
public String getFillHexColor()
Get the fill color- Returns:
- fill color
-
setFillColor
public void setFillColor(Color color)
Set the color- Parameters:
color- color
-
setFillColor
public void setFillColor(String fillColor)
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
public AttributesColumn getFillOpacityColumn()
Get the fill opacity column- Returns:
- fill opacity column
-
getFillOpacity
public Double getFillOpacity()
Get the fill opacity- Returns:
- fill opacity
-
setFillOpacity
public void setFillOpacity(Double fillOpacity)
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
public StyleRow copy()
Copy the row- Overrides:
copyin classAttributesRow- Returns:
- row copy
-
-