public class NodeV extends OMSVGGElement
protrusion / |---- length ---|--| p0 +---------------+ - \ \ | half thickness + * + - / / +---------------+If the node is a cycler, then a spot (*) is visible in the middle of the view.
Modifier and Type | Class and Description |
---|---|
(package private) static class |
NodeV.BlindDeselect
The "Blind" deselection guard.
|
static class |
NodeV.Box
A container of node views.
|
(package private) static class |
NodeV.DefaultDeselect
The "Default" deselection guard.
|
(package private) static interface |
NodeV.DeselectionGuard
A controller that determines whether a selected node view may be deselected.
|
(package private) static class |
NodeV.LaxDeselect
The "Lax" deselection guard.
|
(package private) class |
NodeV.Sensor
A lighting sensor for a node view.
|
Modifier and Type | Field and Description |
---|---|
static int |
STROKE_WIDTH
The stroke width for painting the main figure (arrow segment).
|
Constructor and Description |
---|
NodeV(NodeV.Box _box,
int _dartSector,
VoteTrack track)
Constructs a NodeV.
|
Modifier and Type | Method and Description |
---|---|
NodeV.Box |
box()
The ancestral container of this view, the spool of
which controls its life cycle.
|
(package private) String |
dartLightClassName()
The CSS class name for the dart light, such as "v17".
|
(package private) int |
dartSector()
The dart sector to which this view is restricted, or zero if it is not restricted
to any particular sector.
|
void |
fireEvent(GwtEvent<?> e) |
static void |
forceInitClass(Spool configurationSpool)
Forces static initialization of this class and appends a post-configuration
initializer to the specified spool.
|
CountNodeJS |
getCountNode()
The count node on which this view is modelled, or null if none is modelled.
|
NodeV |
getNextSibling() |
NodeV |
getPreviousSibling() |
(package private) boolean |
isTightCycler()
Answers whether the node is in a tight cycle with the anchor.
|
float |
length()
The horizontal length of the top line of the drawing as currently drawn in the SVG
viewport.
|
OMSVGPathSegMovetoAbs |
p0()
The point at the top left of the drawing as currently drawn in the SVG viewport.
|
float |
protrusion()
The horizontal extent of the arrowhead beyond the length,
as currently drawn in the SVG viewport.
|
(package private) void |
repaint(float x,
float length,
float protrusion,
int y,
float halfThickness)
Redraws this view according to the provided parameters.
|
(package private) boolean |
setCountNode(CountNodeJS node)
Sets the count node on which this view is modelled.
|
static void |
setDeselectionGuard(String guardName)
Sets the type of deselection guard.
|
addActivateHandler, addClickHandler, addDragEndHandler, addDragEnterHandler, addDragHandler, addDragLeaveHandler, addDragOverHandler, addDragStartHandler, addDropHandler, addFocusInHandler, addFocusOutHandler, addLoadHandler, addMouseDownHandler, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addTouchCancelHandler, addTouchEndHandler, addTouchMoveHandler, addTouchStartHandler, getBBox, getCTM, getExternalResourcesRequired, getFarthestViewportElement, getNearestViewportElement, getRequiredExtensions, getRequiredFeatures, getScreenCTM, getSystemLanguage, getTransform, getTransformToElement, getXmllang, getXmlspace, hasExtension, setXmllang, setXmlspace
addClassNameBaseVal, getClassName, getMarkup, getOwnerSVGElement, getStyle, getViewportElement, getXmlbase, removeClassNameBaseVal, replaceClassNameBaseVal, setClassNameBaseVal, setId, setXmlbase
getAttribute, getAttributeNode, getAttributeNS, getAttributes, getElement, getElementsByTagName, getElementsByTagNameNS, getId, getTagName, hasAttribute, hasAttributeNS, removeAttribute, setAttribute, setAttributeNode, setAttributeNS
addDomHandler, addHandler, appendChild, cleanup, cloneNode, convert, convertList, dispatch, getChildNodes, getEventBus, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNode, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, hasChildNodes, insertBefore, normalize, removeChild, replaceChild, setNodeValue, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addClassNameBaseVal, getClassName, getStyle, removeClassNameBaseVal, replaceClassNameBaseVal, setClassNameBaseVal
public static final int STROKE_WIDTH
NodeV(NodeV.Box _box, int _dartSector, VoteTrack track)
box()
,
dartSector()
public static void forceInitClass(Spool configurationSpool)
configurationSpool
- a spool that will unwind immediately after
module configuration is complete.public final NodeV.Box box()
final String dartLightClassName()
final int dartSector()
CountNode.dartSector()
public final CountNodeJS getCountNode()
setCountNode(CountNodeJS)
final boolean setCountNode(CountNodeJS node)
IllegalArgumentException
- if the node does not have the same dart
sector as this view.getCountNode()
final boolean isTightCycler()
public final float length()
public final OMSVGPathSegMovetoAbs p0()
public final float protrusion()
void repaint(float x, float length, float protrusion, int y, float halfThickness)
@GWTConfigCallback public static void setDeselectionGuard(String guardName)
s_gwt_stage_vote_CountNodeV_setDeselectionGuard( 'Blind' ); // default is 'Default'Or call it at any time during normal operation.
IllegalArgumentException
- if the provided guard name is unrecognized.public final void fireEvent(GwtEvent<?> e)
fireEvent
in interface HasHandlers
fireEvent
in class OMNode
public final NodeV getNextSibling()
getNextSibling
in class OMNode
public final NodeV getPreviousSibling()
getPreviousSibling
in class OMNode