CoursePointer
CoursePointer
Scalable course pointer. Component for visualizing a compass bearing.
Uses raphael4gwt for drawing. raphael4gwt is included in the add-on. The bars are filled red when less than third of the bars are set filled, yellow between one and two thirds filled and green when more than two thirds are filled.
Sample code
package com.example.addontest; import org.vaadin.addon.coursepointer.CoursePointer; import com.vaadin.annotations.Theme; import com.vaadin.server.VaadinRequest; import com.vaadin.ui.Button; import com.vaadin.ui.Button.ClickEvent; import com.vaadin.ui.Label; import com.vaadin.ui.UI; import com.vaadin.ui.VerticalLayout; public class AddontestUI extends UI { @Override protected void init(VaadinRequest request) { VerticalLayout layout = new VerticalLayout(); setContent(layout); final CoursePointer c = new CoursePointer(45.6); layout.addComponent(c); Button b = new Button("+10"); layout.addComponent(b); b.addClickListener(new Button.ClickListener() { @Override public void buttonClick(ClickEvent event) { c.setValue(c.getValue() + 10); } }); } }
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
Initial release
- Released
- 2014-07-02
- Maturity
- EXPERIMENTAL
- License
- Apache License 2.0
Compatibility
- Framework
- Vaadin 7.0+
- Browser
- Internet Explorer
- Firefox
- Opera
- Safari
- Google Chrome
- Internet Explorer
- iOS Browser
- Android Browser
- Internet Explorer
CoursePointer - Vaadin Add-on Directory
CoursePointerScalable course pointer. Component for visualizing a compass bearing.
Uses raphael4gwt for drawing. raphael4gwt is included in the add-on. The bars are filled red when less than third of the bars are set filled, yellow between one and two thirds filled and green when more than two thirds are filled.
See alsoCoursePointer version 0.0.1
Initial release