public class NodeStyleOverride<V> extends BaseStyleOverride<NodeStyle<V>> implements NodeStyle<V>
baseStyle, defaultStyle
Constructor and Description |
---|
NodeStyleOverride(NodeStyle<V> style) |
Modifier and Type | Method and Description |
---|---|
void |
copy(Style source)
Copy properties from an existing style.
|
boolean |
enforceBorder() |
boolean |
enforceColors() |
boolean |
enforceShape() |
boolean |
enforceSize() |
Color |
getBackground(V obj) |
String |
getCSS()
define the style as CSS rules.
|
String |
getCSSClass(V node)
get the CSS class(es) used by a specific node.
|
Color |
getForeground(V obj) |
int |
getHeight(V obj) |
NodeBorder |
getNodeBorder(V obj) |
NodeShape |
getNodeShape(V obj) |
Color |
getTextColor(V obj) |
int |
getWidth(V obj) |
boolean |
matches(NodeShape shape,
Color bg,
Color fg,
Color text,
int w,
int h) |
getName, getParent, getParentProperty, getProperties, getProperty, setBaseStyle, setName, setProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getParent, getParentProperty, getProperties, getProperty, setName, setProperty
public Color getBackground(V obj)
getBackground
in interface NodeStyle<V>
public Color getForeground(V obj)
getForeground
in interface NodeStyle<V>
public Color getTextColor(V obj)
getTextColor
in interface NodeStyle<V>
public NodeShape getNodeShape(V obj)
getNodeShape
in interface NodeStyle<V>
public NodeBorder getNodeBorder(V obj)
getNodeBorder
in interface NodeStyle<V>
public boolean enforceColors()
enforceColors
in interface NodeStyle<V>
public boolean enforceShape()
enforceShape
in interface NodeStyle<V>
public boolean enforceSize()
enforceSize
in interface NodeStyle<V>
public boolean enforceBorder()
enforceBorder
in interface NodeStyle<V>
public String getCSS()
Style
public String getCSSClass(V node)
NodeStyle
getCSSClass
in interface NodeStyle<V>
Copyright © 2005–2020. All rights reserved.