本文整理汇总了Java中org.timepedia.exporter.client.Export类的典型用法代码示例。如果您正苦于以下问题:Java Export类的具体用法?Java Export怎么用?Java Export使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Export类属于org.timepedia.exporter.client包,在下文中一共展示了Export类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: openInfoWindow
import org.timepedia.exporter.client.Export; //导入依赖的package包/类
@Export
public InfoWindow openInfoWindow(final String html, final double domainX,
final double rangeY, final int datasetIndex) {
final InfoWindow window = view
.createInfoWindow(html, domainToWindowX(domainX, datasetIndex),
rangeToWindowY(rangeY, datasetIndex) + 5);
final PortableTimerTask timerTask = new PortableTimerTask() {
public void run(PortableTimer timer) {
window.open();
}
};
if (!ensureVisible(domainX, rangeY, timerTask)) {
window.open();
}
return window;
}
开发者ID:codeaudit,项目名称:gwt-chronoscope,代码行数:21,代码来源:DefaultXYPlot.java
示例2: openInfoWindow
import org.timepedia.exporter.client.Export; //导入依赖的package包/类
/**
*/
@Export
public InfoWindow openInfoWindow(String html) {
if (plot == null) {
throw new IllegalStateException("plot not set");
}
if (currentWindow != null) {
currentWindow.close();
}
wasOpenWindow = null;
currentWindow = plot.openInfoWindow(html, domainX, rangeY, datasetIdx);
currentWindow.addInfoWindowClosedHandler(new InfoWindowClosedHandler() {
public void onInfoWindowClosed(InfoWindowEvent event) {
currentWindow = null;
}
});
return currentWindow;
}
开发者ID:codeaudit,项目名称:gwt-chronoscope,代码行数:20,代码来源:Marker.java
示例3: setLegendEnabled
import org.timepedia.exporter.client.Export; //导入依赖的package包/类
@Export
public void setLegendEnabled(boolean b) {
legendOverridden = true;
for(int i = 0; i<hoverPoints.length; i++) {
hoverPoints[i] = -1;
}
for(Dataset d : datasets) {
if(plotRenderer.isInitialized()) {
plotRenderer.invalidate(d);
}
}
plotRenderer.resetMipMapLevels();
plotRenderer.sync();
topPanel.setEnabled(b);
if (plotRenderer.isInitialized()) {
reloadStyles();
}
}
开发者ID:codeaudit,项目名称:gwt-chronoscope,代码行数:21,代码来源:DefaultXYPlot.java
示例4: JsMessagesBind
import org.timepedia.exporter.client.Export; //导入依赖的package包/类
@Export
public JsMessagesBind(JsMessagesBindClosure closure,
JsDisplayList<JsMessage, Message> displayList,
ConversationVM conversationVM) {
this.displayList = displayList;
this.closure = closure;
this.conversationVM = conversationVM;
this.conversationVM.getIsLoaded().subscribe(isLoadedListener);
this.conversationVM.getReadDate().subscribe(readDateListener);
this.conversationVM.getReceiveDate().subscribe(receiveDateListener);
this.bind = displayList.subscribe(this, true);
}
开发者ID:wex5,项目名称:dangchat-sdk,代码行数:14,代码来源:JsMessagesBind.java
示例5: initAll
import org.timepedia.exporter.client.Export; //导入依赖的package包/类
@Export
public void initAll() {
if (isInited) {
throw new RuntimeException("Already inited!");
}
isInited = true;
this.bind.initAll();
notifySubscriber();
this.isLocked = false;
}
开发者ID:wex5,项目名称:dangchat-sdk,代码行数:11,代码来源:JsMessagesBind.java
示例6: unbind
import org.timepedia.exporter.client.Export; //导入依赖的package包/类
@Export
@UsedByApp
public void unbind() {
this.closure = null;
this.displayList.unsubscribe(this);
this.conversationVM.getIsLoaded().unsubscribe(isLoadedListener);
this.conversationVM.getReadDate().unsubscribe(readDateListener);
this.conversationVM.getReceiveDate().unsubscribe(receiveDateListener);
}
开发者ID:wex5,项目名称:dangchat-sdk,代码行数:10,代码来源:JsMessagesBind.java
示例7: getAxisId
import org.timepedia.exporter.client.Export; //导入依赖的package包/类
/**
* Gets the short label representing the units of this axis (m/s, $, etc)
*/
// TODO - export as axis.id rather than axis.getId() ?
@Export("getId")
public String getAxisId() {
return axisId;
}
开发者ID:codeaudit,项目名称:gwt-chronoscope,代码行数:10,代码来源:ValueAxis.java
示例8: getById
import org.timepedia.exporter.client.Export; //导入依赖的package包/类
/**
* Returns the dataset with the specified identifier.
*/
@Export
public Dataset<T> getById(String id) {
for (Dataset<T> d : datasets) {
if (id.equals(d.getIdentifier())) {
return d;
}
}
return null;
}
开发者ID:codeaudit,项目名称:gwt-chronoscope,代码行数:13,代码来源:Datasets.java
示例9: openInfoWindow
import org.timepedia.exporter.client.Export; //导入依赖的package包/类
@Export
public InfoWindow openInfoWindow(JavaScriptObject selection, String html) {
if (currentInfoWindow != null) {
currentInfoWindow.close();
}
Properties sel = selection.cast();
int datasetIndex = -1;
int pointIndex = sel.getInt("row");
for (Map.Entry<Integer, Integer> e : dataset2Column.entrySet()) {
if (e.getValue() == sel.getInt("col")) {
datasetIndex = e.getKey();
}
}
if (datasetIndex != -1) {
XYPlot plot = cp.getChart().getPlot();
double x = plot.getDatasets().get(datasetIndex).getX(pointIndex);
Tuple2D tuple = plot.getDatasets().get(datasetIndex)
.getFlyweightTuple(pointIndex);
double y = tuple.getRange0();
currentInfoWindow = plot.openInfoWindow(html, x, y, datasetIndex);
currentInfoWindow
.addInfoWindowClosedHandler(new InfoWindowClosedHandler() {
public void onInfoWindowClosed(InfoWindowEvent event) {
currentInfoWindow = null;
}
});
}
return currentInfoWindow;
}
开发者ID:codeaudit,项目名称:gwt-chronoscope,代码行数:31,代码来源:ChronoscopeVisualization.java
示例10: DomainBarMarker
import org.timepedia.exporter.client.Export; //导入依赖的package包/类
/**
*/
@Export
public DomainBarMarker(String startDate, String endDate, String label) {
this.label = label;
this.domainX = Date.parse(startDate);
this.domainWidth = Date.parse(endDate) - this.domainX;
this.gssLabel = label.replaceAll("[^a-zA-Z0-9._-]+", "");
}
开发者ID:codeaudit,项目名称:gwt-chronoscope,代码行数:11,代码来源:DomainBarMarker.java
示例11: setContextMenu
import org.timepedia.exporter.client.Export; //导入依赖的package包/类
/**
* Attach a context menu to this View
*
*/
@Export
public void setContextMenu(ChronoscopeMenu cm) {
if (contextMenu == null) {
contextMenu = cm;
//TODO: move this into plot
} else {
contextMenu = cm;
}
}
开发者ID:codeaudit,项目名称:gwt-chronoscope,代码行数:14,代码来源:View.java
示例12: addOverlayClickListener
import org.timepedia.exporter.client.Export; //导入依赖的package包/类
/**
*/
@Export("addOverlayListener")
public void addOverlayClickListener(OverlayClickListener ocl) {
if (clickListener == null) {
clickListener = new ArrayList();
}
clickListener.add(ocl);
}
开发者ID:codeaudit,项目名称:gwt-chronoscope,代码行数:10,代码来源:DomainBarMarker.java
示例13: replaceState
import org.timepedia.exporter.client.Export; //导入依赖的package包/类
@Export("$wnd.history.replaceState")
public static void replaceState(final JavaScriptObject data, final String title, final String url) {
if (states.size() > 0) {
State current = states.peek();
current.data = data;
current.title = title;
current.url = url;
} else {
pushState(data, title, url);
}
}
开发者ID:liraz,项目名称:gwt-backbone,代码行数:13,代码来源:AbstractPushStateTest.java
示例14: scrollPixels
import org.timepedia.exporter.client.Export; //导入依赖的package包/类
@Export
public void scrollPixels(int amt) {
final double domainAmt = (double) amt / plotBounds.width * visDomain
.length();
final double minDomain = widestDomain.getStart();
final double maxDomain = widestDomain.getEnd();
double newDomainOrigin = visDomain.getStart() + domainAmt;
if (newDomainOrigin + visDomain.length() > maxDomain) {
newDomainOrigin = maxDomain - visDomain.length();
} else if (newDomainOrigin < minDomain) {
newDomainOrigin = minDomain;
}
movePlotDomain(newDomainOrigin);
fireMoveEvent(PlotMovedEvent.MoveType.DRAGGED);
if (changeTimer != null) {
changeTimer.cancelTimer();
}
changeTimer = view.createTimer(new PortableTimerTask() {
public void run(PortableTimer timer) {
changeTimer = null;
fireChangeEvent();
}
});
changeTimer.schedule(1000);
redraw(true);
}
开发者ID:codeaudit,项目名称:gwt-chronoscope,代码行数:29,代码来源:DefaultXYPlot.java
示例15: setTickNumberFormat
import org.timepedia.exporter.client.Export; //导入依赖的package包/类
/**
* Set the number format used to render ticks
*/
@Export
public void setTickNumberFormat(String format) {
if (format == null) {
tickLabelNumberFormatter = defaultTickLabelNumberFormatter;
} else {
setTickLabelNumberFormatter(
new UserTickLabelNumberFormatter(view, format));
}
}
开发者ID:codeaudit,项目名称:gwt-chronoscope,代码行数:13,代码来源:RangeAxis.java
示例16: setForceScientificNotation
import org.timepedia.exporter.client.Export; //导入依赖的package包/类
/**
* Force tick labels to always be rendered in scientific notation. (Default
* false);
*/
@Export
public void setForceScientificNotation(boolean force) {
if (forceScientificNotation != force) {
if (force) {
allowAutoScale = false;
calcRangeAsPercent = false;
scaleSI = false;
} // else { }
forceScientificNotation = force;
}
}
开发者ID:codeaudit,项目名称:gwt-chronoscope,代码行数:16,代码来源:RangeAxis.java
示例17: prevZoom
import org.timepedia.exporter.client.Export; //导入依赖的package包/类
@Export
public void prevZoom() {
pushHistory();
double nDomain = fixDomainWidth(visDomain.length() * ZOOM_FACTOR);
if (lastZoomDomain != nDomain) {
lastZoomDomain = nDomain;
animateTo(visDomain.midpoint() - nDomain / 2, nDomain,
PlotMovedEvent.MoveType.ZOOMED);
}
}
开发者ID:codeaudit,项目名称:gwt-chronoscope,代码行数:11,代码来源:DefaultXYPlot.java
示例18: setSubPanelsEnabled
import org.timepedia.exporter.client.Export; //导入依赖的package包/类
@Export
public void setSubPanelsEnabled(boolean enabled) {
if (!plotRenderer.isInitialized()) {
plotRenderer.resetMipMapLevels();
plotRenderer.sync();
}
topPanel.setEnabled(enabled);
bottomPanel.setEnabled(enabled);
rangePanel.setEnabled(enabled);
}
开发者ID:codeaudit,项目名称:gwt-chronoscope,代码行数:11,代码来源:DefaultXYPlot.java
示例19: resize
import org.timepedia.exporter.client.Export; //导入依赖的package包/类
@Export
public void resize(int width, int height) {
this.width = width;
this.height = height;
if (initialized) {
getView().resize(width, height);
getChart().redraw();
}
}
开发者ID:codeaudit,项目名称:gwt-chronoscope,代码行数:10,代码来源:ChartPanel.java
示例20: setCreditsLabel
import org.timepedia.exporter.client.Export; //导入依赖的package包/类
@Export
public void setCreditsLabel(String label) {
// Layer domainAxisLayer = view.getCanvas().getLayer(Layer.DOMAIN_AXIS);
if (null == layer) {
layer = view.getCanvas().createLayer(Layer.BOTTOM, bounds);
}
creditsLabel = new Label(label, this.textLayerName, layer, "Helvetica", "normal", "8pt");
}
开发者ID:codeaudit,项目名称:gwt-chronoscope,代码行数:10,代码来源:DomainAxisPanel.java
注:本文中的org.timepedia.exporter.client.Export类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论