Package g3.project.elements
Class StrokeElement
- java.lang.Object
-
- nu.xom.Node
-
- nu.xom.ParentNode
-
- nu.xom.Element
-
- g3.project.elements.StrokeElement
-
public class StrokeElement extends nu.xom.Element
- Author:
- Group 3
-
-
Constructor Summary
Constructors Constructor Description StrokeElement(java.lang.String name)
Constructor.StrokeElement(java.lang.String name, java.lang.String uri)
ConstructorStrokeElement(nu.xom.Element element)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<javafx.scene.paint.Color>
getColour()
Get the stroke's colour.StrokeProps
getProps()
Get stroke properties.java.util.Optional<java.lang.String>
getStyle()
Get the dash style.java.util.Optional<java.lang.Double>
getWidth()
Get the stroke's width.void
setColour(java.lang.String colourString)
Set colour of Stroke (RGBA).void
setProps(StrokeProps props)
Set stroke props/attributes.void
setStyle(java.lang.String style)
Set the Stroke dash style.void
setWidth(java.lang.Double width)
Set the Stroke width.-
Methods inherited from class nu.xom.Element
addAttribute, addNamespaceDeclaration, appendChild, copy, getAttribute, getAttribute, getAttribute, getAttributeCount, getAttributeValue, getAttributeValue, getBaseURI, getChildElements, getChildElements, getChildElements, getFirstChildElement, getFirstChildElement, getLocalName, getNamespaceDeclarationCount, getNamespacePrefix, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getQualifiedName, getValue, insertChild, removeAttribute, removeChildren, removeNamespaceDeclaration, setBaseURI, setLocalName, setNamespacePrefix, setNamespaceURI, shallowCopy, toString, toXML
-
Methods inherited from class nu.xom.ParentNode
appendChild, getChild, getChildCount, indexOf, insertChild, removeChild, removeChild, replaceChild
-
-
-
-
Constructor Detail
-
StrokeElement
public StrokeElement(java.lang.String name)
Constructor.- Parameters:
name
- Element Name.
-
StrokeElement
public StrokeElement(java.lang.String name, java.lang.String uri)
Constructor- Parameters:
name
- Element Name.uri
- Element URI.
-
StrokeElement
public StrokeElement(nu.xom.Element element)
Constructor.- Parameters:
element
- Element.
-
-
Method Detail
-
getColour
public final java.util.Optional<javafx.scene.paint.Color> getColour()
Get the stroke's colour.- Returns:
- Maybe colour.
-
setColour
public final void setColour(java.lang.String colourString)
Set colour of Stroke (RGBA).- Parameters:
colourString
- RGBA colour string.
-
getWidth
public final java.util.Optional<java.lang.Double> getWidth()
Get the stroke's width.- Returns:
- Optional width.
-
setWidth
public final void setWidth(java.lang.Double width)
Set the Stroke width.- Parameters:
width
- Width.
-
getStyle
public final java.util.Optional<java.lang.String> getStyle()
Get the dash style.- Returns:
- Optional dash style.
-
setStyle
public final void setStyle(java.lang.String style)
Set the Stroke dash style.- Parameters:
style
- Style.
-
getProps
public final StrokeProps getProps()
Get stroke properties.- Returns:
- StrokeProps.
-
setProps
public final void setProps(StrokeProps props)
Set stroke props/attributes.- Parameters:
props
- Stroke Properties.
-
-