当前位置: 首页>>代码示例>>Java>>正文


Java PointStyle类代码示例

本文整理汇总了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);
}
 
开发者ID:Albertus82,项目名称:CyclesMod,代码行数:20,代码来源:SimpleTorqueGraph.java

示例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);
}
 
开发者ID:eclipse,项目名称:eavp,代码行数:17,代码来源:XYZSeriesStyle.java

示例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);
}
 
开发者ID:Albertus82,项目名称:CyclesMod,代码行数:32,代码来源:ComplexTorqueGraph.java


注:本文中的org.eclipse.nebula.visualization.xygraph.figures.Trace.PointStyle类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。