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 StyleRow
copy()
Copy the rowColor
getColor()
Get the style colorAttributesColumn
getColorColumn()
Get the color columnint
getColorColumnIndex()
Get the color column indexColor
getColorOrDefault()
Get the color or default valueString
getDescription()
Get the descriptionAttributesColumn
getDescriptionColumn()
Get the description columnint
getDescriptionColumnIndex()
Get the description column indexColor
getFillColor()
Get the style fill colorAttributesColumn
getFillColorColumn()
Get the fill color columnint
getFillColorColumnIndex()
Get the fill color column indexString
getFillHexColor()
Get the fill colorDouble
getFillOpacity()
Get the fill opacityAttributesColumn
getFillOpacityColumn()
Get the fill opacity columnint
getFillOpacityColumnIndex()
Get the fill opacity column indexdouble
getFillOpacityOrDefault()
Get the fill opacity or default valueString
getHexColor()
Get the colorString
getHexColorOrDefault()
Get the color or default valueString
getName()
Get the nameAttributesColumn
getNameColumn()
Get the name columnint
getNameColumnIndex()
Get the name column indexDouble
getOpacity()
Get the opacityAttributesColumn
getOpacityColumn()
Get the opacity columnint
getOpacityColumnIndex()
Get the opacity column indexdouble
getOpacityOrDefault()
Get the opacity or default valueStyleTable
getTable()
Double
getWidth()
Get the widthAttributesColumn
getWidthColumn()
Get the width columnint
getWidthColumnIndex()
Get the width column indexdouble
getWidthOrDefault()
Get the width value or default widthboolean
hasColor()
Check if the style has a colorboolean
hasFillColor()
Check if the style has a fill colorboolean
isTableStyle()
Is a table stylevoid
setColor(String color)
Set the colorvoid
setColor(Color color)
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
setName(String name)
Set the namevoid
setOpacity(Double opacity)
Set the opacityvoid
setTableStyle(boolean tableStyle)
Set table style flagvoid
setWidth(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:
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
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:
copy
in classAttributesRow
- Returns:
- row copy
-
-