@Warning(value="permanently disabled on detach from document") public final class VotespaceV extends HTML implements SVGNest<SVGNest<?>>
+--------------------------------------------------------+ | stage | +-------------+------------------------------------------+ | | | | | | | | | | | | | | | | feed | | | | svg | | | | | | | | | | | | | | | | +-------------+------------------------------------------+
Except where noted otherwise in the API, lengths for the vector graphic (svg) are given in "em" units. Angles are given in degrees measured clockwise from the positive (right hand) x axis.
Acknowledgement: The design of this view follows from the suggestions of Thomas von der Elbe, in a Skype discussion on April 11, 2011. See the Metagovernment IRC log and the follow up post to the Metagovernment mailing list.
StageIn
,
Live
example of a VotespaceV (right)Modifier and Type | Class and Description |
---|---|
(package private) class |
VotespaceV.PathExtender
A controller that responds to node clicks by extending or contracting the votepath.
|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
HasDirection.Direction
HasHorizontalAlignment.AutoHorizontalAlignmentConstant, HasHorizontalAlignment.HorizontalAlignmentConstant
Modifier and Type | Field and Description |
---|---|
(package private) static byte |
MOSQUITO_BAR_DIVISOR
Divisor for the threshold of votes below which a node is considered a "mosquito".
|
(package private) static float |
SUB_MNEMONIC_DROP
Relative y offset of sub-mnemonic text (vote volume) from the associated mnemonic
text.
|
DEFAULT_DIRECTION_ESTIMATOR
DEBUG_ID_PREFIX
ALIGN_CONTENT_END, ALIGN_CONTENT_START
ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_JUSTIFY, ALIGN_LEFT, ALIGN_LOCALE_END, ALIGN_LOCALE_START, ALIGN_RIGHT
Constructor and Description |
---|
VotespaceV(Votespace _model)
Constructs a VotespaceV.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
append(OMSVGAnimatedLengthList lengthList,
float length)
Appends the specified length to the length list.
|
(package private) OMSVGDocument |
document()
The document of which the underlying SVG view is a component.
|
(package private) Votespace |
model()
The votespace model on which this view is based.
|
protected void |
onLoad() |
protected void |
onUnload() |
SVGNest<?> |
parent()
The wrapper parent of which this wrapper is a component, or null if there is none.
|
(package private) VotespaceV.PathExtender |
pathExtender()
The common path extender for use in node views.
|
(package private) float |
pxPerEm()
The constant length of the em unit for the view's font, in pixels.
|
(package private) Spool |
spool()
The spool for the release of associated holds.
|
(package private) OMSVGSVGElement |
svg()
The 'svg' element of which the underlying SVG view is a descendant.
|
OMSVGGElement |
svgView()
The wrapped SVG node.
|
getHTML, getTextOrHtml, setHTML, setHTML, setHTML, setHTML, wrap
addClickHandler, addClickListener, addDoubleClickHandler, addDragEndHandler, addDragEnterHandler, addDragHandler, addDragLeaveHandler, addDragOverHandler, addDragStartHandler, addDropHandler, addGestureChangeHandler, addGestureEndHandler, addGestureStartHandler, addMouseDownHandler, addMouseListener, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMouseWheelHandler, addMouseWheelListener, addTouchCancelHandler, addTouchEndHandler, addTouchMoveHandler, addTouchStartHandler, asEditor, getDirection, getText, getTextDirection, removeClickListener, removeMouseListener, removeMouseWheelListener, setDirection, setText, setText
getAutoHorizontalAlignment, getDirectionEstimator, getHorizontalAlignment, getWordWrap, setAutoHorizontalAlignment, setDirectionEstimator, setDirectionEstimator, setHorizontalAlignment, setWordWrap, updateHorizontalAlignment
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTextDirection, setText
fireEvent
static final byte MOSQUITO_BAR_DIVISOR
static final float SUB_MNEMONIC_DROP
public VotespaceV(Votespace _model)
void append(OMSVGAnimatedLengthList lengthList, float length)
OMSVGDocument document()
svgView()
VotespaceV.PathExtender pathExtender()
float pxPerEm()
Spool spool()
OMSVGSVGElement svg()
svgView()
public final SVGNest<?> parent()
SVGNest
public final OMSVGGElement svgView()
SVGWrapper
svgView
in interface SVGWrapper