V
- E
- public class EdgeStyleImpl<V,E extends Edge<V>> extends BaseStyle<EdgeStyle<V,E>> implements EdgeStyle<V,E>
Modifier and Type | Field and Description |
---|---|
protected static StyleProperty[] |
DEFAULT_PROPERTIES |
Constructor and Description |
---|
EdgeStyleImpl() |
EdgeStyleImpl(String name,
EdgeStyle<V,E> parent) |
Modifier and Type | Method and Description |
---|---|
boolean |
enforceColor() |
boolean |
enforceEnding() |
boolean |
enforcePattern() |
boolean |
enforceWidth() |
Color |
getColor(E edge) |
String |
getCSS()
define the style as CSS rules.
|
String |
getCSSClass(E edge)
get the CSS class(es) used by a specific edge.
|
protected Object |
getCustomProperty(StyleProperty prop) |
EdgeEnd |
getEnding(E edge) |
EdgePattern |
getPattern(E edge) |
StyleProperty[] |
getProperties()
Retrieve all properties used by this style.
|
Object |
getProperty(StyleProperty prop)
Retrieve the value of a property.
|
int |
getWidth(E edge) |
boolean |
matches(Color color,
EdgePattern pattern,
int width) |
protected void |
setCustomProperty(StyleProperty prop,
Object value) |
void |
setProperty(StyleProperty prop,
Object value)
Assign a value to a property.
|
String |
toString() |
copy, equals, getCSSNameSuffix, getName, getParent, getParentProperty, setName
protected static final StyleProperty[] DEFAULT_PROPERTIES
public int getWidth(E edge)
public EdgePattern getPattern(E edge)
public boolean enforceColor()
public boolean enforceEnding()
public boolean enforcePattern()
public boolean enforceWidth()
public StyleProperty[] getProperties()
Style
getProperties
in interface Style
public Object getProperty(StyleProperty prop)
Style
getProperty
in interface Style
prop
- the property to retrievepublic void setProperty(StyleProperty prop, Object value)
Style
setProperty
in interface Style
prop
- the property to setvalue
- the assigned value (can be null)protected Object getCustomProperty(StyleProperty prop)
protected void setCustomProperty(StyleProperty prop, Object value)
public boolean matches(Color color, EdgePattern pattern, int width)
public String getCSS()
Style
Copyright © 2005–2020. All rights reserved.