abstract class NodeVPainter extends Object implements PropertyChangeHandler, ResizeHandler
Modifier and Type | Field and Description |
---|---|
(package private) static int |
MARGIN_BOTTOM
The margin to respect below the node view in pixels.
|
(package private) static int |
MARGIN_TOP
The margin to respect above the node view in pixels.
|
Constructor and Description |
---|
NodeVPainter(MajorV _container)
Partially creates a NodeVPainter for init to
finish.
|
Modifier and Type | Method and Description |
---|---|
(package private) UIObject |
container()
The HTML container whose rendered size determines the dimensions of the node
views.
|
(package private) void |
init(Spool _spool)
Completes the creation of this NodeVPainter and activates it.
|
void |
onPropertyChange(PropertyChange e)
Handles the event.
|
void |
onResize(ResizeEvent _e) |
(package private) void |
repaint()
Forces a recalibration.
|
(package private) abstract void |
repaint(int width,
float protrusion,
int y,
float halfThickness)
Effects a recalibration and redraws the node views accordingly.
|
static final int MARGIN_BOTTOM
static final int MARGIN_TOP
NodeVPainter(MajorV _container)
container()
final void init(Spool _spool)
_spool
- the spool for the release of associated holds. When unwound it
releases the holds of the painter and thereby disables it.final UIObject container()
final void repaint()
abstract void repaint(int width, float protrusion, int y, float halfThickness)
width
- the rendered width of the HTML
container.NodeV.repaint(float,float,float,int,float)
public void onPropertyChange(PropertyChange e)
PropertyChangeHandler
onPropertyChange
in interface PropertyChangeHandler
public final void onResize(ResizeEvent _e)
onResize
in interface ResizeHandler