本文整理汇总了Java中org.eclipse.nebula.visualization.xygraph.figures.Trace.PointStyle类的典型用法代码示例。如果您正苦于以下问题:Java PointStyle类的具体用法?Java PointStyle怎么用?Java PointStyle使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PointStyle类属于org.eclipse.nebula.visualization.xygraph.figures.Trace包,在下文中一共展示了PointStyle类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: SimpleTorqueGraph
import org.eclipse.nebula.visualization.xygraph.figures.Trace.PointStyle; //导入依赖的package包/类
public SimpleTorqueGraph(final Bike bike) {
super(bike);
final Axis abscissae = getAbscissae();
abscissae.setAutoScale(DEFAULT_AUTOSCALE);
final Axis ordinates = getOrdinates();
ordinates.setAutoScale(DEFAULT_AUTOSCALE);
final Trace trace = getTrace();
trace.setPointStyle(PointStyle.FILLED_DIAMOND);
final IXYGraph xyGraph = getXyGraph();
xyGraph.setTitle(Messages.get("lbl.graph.title"));
xyGraph.setTitleFont(Display.getCurrent().getSystemFont());
trace.setLineWidth(DEFAULT_LINE_WIDTH);
trace.setPointSize(DEFAULT_POINT_SIZE);
}
示例2: XYZSeriesStyle
import org.eclipse.nebula.visualization.xygraph.figures.Trace.PointStyle; //导入依赖的package包/类
/**
* The constructor, sets the keyset for the properties map
*/
public XYZSeriesStyle(Color color) {
super();
properties.put(COLOR, color);
properties.put(TYPE, TraceType.SOLID_LINE);
properties.put(LINE_WIDTH, 2);
properties.put(POINT, PointStyle.POINT);
properties.put(POINT_SIZE, 4);
properties.put(BASE_LINE, BaseLine.ZERO);
properties.put(AREA_ALPHA, 100);
properties.put(ANTI_ALIASING, true);
properties.put(ERROR_ENABLED, false);
properties.put(ERROR_TYPE, ErrorBarType.BOTH);
}
示例3: ComplexTorqueGraph
import org.eclipse.nebula.visualization.xygraph.figures.Trace.PointStyle; //导入依赖的package包/类
public ComplexTorqueGraph(final Map<Integer, Short> map, final BikeType bikeType) {
super(map, bikeType);
final Axis abscissae = getAbscissae();
abscissae.setAutoScale(DEFAULT_AUTOSCALE);
final Axis ordinates = getOrdinates();
ordinates.setAutoScale(DEFAULT_AUTOSCALE);
final Trace trace = getTrace();
trace.setPointStyle(PointStyle.FILLED_DIAMOND);
trace.setLineWidth(DEFAULT_LINE_WIDTH);
trace.setPointSize(DEFAULT_POINT_SIZE);
fixToolbarButtons(toolbarArmedXYGraph);
final IXYGraph xyGraph = getXyGraph();
final PlotArea plotArea = xyGraph.getPlotArea();
final ChangeValueListener changeValueListener = new ChangeValueListener(this);
plotArea.addMouseListener(changeValueListener);
plotArea.addMouseMotionListener(changeValueListener);
// Title
final FontData titleFontData = xyGraph.getTitleFontData();
xyGraph.setTitleFont(XYGraphMediaFactory.getInstance().getFont(titleFontData.getName(), Math.round(titleFontData.getHeight() * TITLE_HEIGHT_FACTOR), SWT.NORMAL));
xyGraph.setTitle(" ");
plotArea.addMouseMotionListener(new UpdateTitleListener(this));
abscissae.performAutoScale(true);
ordinates.performAutoScale(true);
}