本文整理了Java中org.eclipse.scada.chart.swt.render.YAxisDynamicRenderer
类的一些代码示例,展示了YAxisDynamicRenderer
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YAxisDynamicRenderer
类的具体详情如下:
包路径:org.eclipse.scada.chart.swt.render.YAxisDynamicRenderer
类名称:YAxisDynamicRenderer
暂无
代码示例来源:origin: org.eclipse.neoscada.chart/org.eclipse.scada.chart.swt
public void setColor ( final RGB color )
{
this.color = color;
redraw ();
}
代码示例来源:origin: org.eclipse.neoscada.chart/org.eclipse.scada.chart.swt
public void setShowLabels ( final boolean showLabels )
{
this.showLabels = showLabels;
relayoutParent ();
}
代码示例来源:origin: de.dentrassi.eclipse.neoscada.chart/org.eclipse.scada.chart.swt
public YAxisDynamicRenderer addDynamicYAxis ( final YAxis y, final boolean left )
{
checkWidget ();
final YAxisDynamicRenderer renderer = new YAxisDynamicRenderer ( this.chartArea.getChartRenderer () );
renderer.setAxis ( y );
renderer.setAlign ( left ? SWT.LEFT : SWT.RIGHT );
addRenderer ( renderer, -1 );
return renderer;
}
代码示例来源:origin: org.eclipse.neoscada.chart/org.eclipse.scada.chart.swt
public void setAxis ( final YAxis axis )
{
checkWidget ();
if ( this.axis != null )
{
this.axis.removePropertyChangeListener ( this.propertyChangeListener );
this.axis = null;
}
this.axis = axis;
if ( this.axis != null )
{
this.axis.addPropertyChangeListener ( this.propertyChangeListener );
}
relayoutParent ();
}
代码示例来源:origin: de.dentrassi.eclipse.neoscada.chart/org.eclipse.scada.chart.swt
@Override
public Rectangle resize ( final ResourceManager resourceManager, final Rectangle clientRectangle )
{
final int width = this.width >= 0 ? this.width : calcWidth ( resourceManager, clientRectangle.height );
if ( this.left )
{
this.rect = new Rectangle ( clientRectangle.x, clientRectangle.y, width, clientRectangle.height );
return new Rectangle ( clientRectangle.x + width, clientRectangle.y, clientRectangle.width - width, clientRectangle.height );
}
else
{
this.rect = new Rectangle ( clientRectangle.x + clientRectangle.width - width, clientRectangle.y, width, clientRectangle.height );
return new Rectangle ( clientRectangle.x, clientRectangle.y, clientRectangle.width - width, clientRectangle.height );
}
}
代码示例来源:origin: org.eclipse.neoscada.chart/org.eclipse.scada.chart.swt
public YAxisDynamicRenderer addDynamicYAxis ( final YAxis y, final boolean left )
{
checkWidget ();
final YAxisDynamicRenderer renderer = new YAxisDynamicRenderer ( this.chartArea.getChartRenderer () );
renderer.setAxis ( y );
renderer.setAlign ( left ? SWT.LEFT : SWT.RIGHT );
addRenderer ( renderer, -1 );
return renderer;
}
代码示例来源:origin: de.dentrassi.eclipse.neoscada.chart/org.eclipse.scada.chart.swt
public void setAxis ( final YAxis axis )
{
checkWidget ();
if ( this.axis != null )
{
this.axis.removePropertyChangeListener ( this.propertyChangeListener );
this.axis = null;
}
this.axis = axis;
if ( this.axis != null )
{
this.axis.addPropertyChangeListener ( this.propertyChangeListener );
}
relayoutParent ();
}
代码示例来源:origin: org.eclipse.neoscada.chart/org.eclipse.scada.chart.swt
@Override
public Rectangle resize ( final ResourceManager resourceManager, final Rectangle clientRectangle )
{
final int width = this.width >= 0 ? this.width : calcWidth ( resourceManager, clientRectangle.height );
if ( this.left )
{
this.rect = new Rectangle ( clientRectangle.x, clientRectangle.y, width, clientRectangle.height );
return new Rectangle ( clientRectangle.x + width, clientRectangle.y, clientRectangle.width - width, clientRectangle.height );
}
else
{
this.rect = new Rectangle ( clientRectangle.x + clientRectangle.width - width, clientRectangle.y, width, clientRectangle.height );
return new Rectangle ( clientRectangle.x, clientRectangle.y, clientRectangle.width - width, clientRectangle.height );
}
}
代码示例来源:origin: org.eclipse.neoscada.chart/org.eclipse.scada.chart.swt
public void setWidth ( final int width )
{
this.width = width;
relayoutParent ();
}
代码示例来源:origin: de.dentrassi.eclipse.neoscada.chart/org.eclipse.scada.chart.swt
public void setColor ( final RGB color )
{
this.color = color;
redraw ();
}
代码示例来源:origin: de.dentrassi.eclipse.neoscada.chart/org.eclipse.scada.chart.swt
public void setTextPadding ( final int textPadding )
{
this.textPadding = textPadding;
relayoutParent ();
}
代码示例来源:origin: de.dentrassi.eclipse.neoscada.chart/org.eclipse.scada.chart.swt
public void setLabelSpacing ( final int labelSpacing )
{
this.labelSpacing = labelSpacing;
relayoutParent ();
}
代码示例来源:origin: org.eclipse.neoscada.chart/org.eclipse.scada.chart.swt
public void setTextPadding ( final int textPadding )
{
this.textPadding = textPadding;
relayoutParent ();
}
代码示例来源:origin: org.eclipse.neoscada.chart/org.eclipse.scada.chart.swt
public void setAlign ( final int alignment )
{
this.left = ( alignment & SWT.RIGHT ) != SWT.RIGHT;
relayoutParent ();
}
代码示例来源:origin: de.dentrassi.eclipse.neoscada.chart/org.eclipse.scada.chart.swt
public void setFormat ( final String format )
{
this.format = format;
relayoutParent ();
}
代码示例来源:origin: de.dentrassi.eclipse.neoscada.chart/org.eclipse.scada.chart.swt
public void setWidth ( final int width )
{
this.width = width;
relayoutParent ();
}
代码示例来源:origin: de.dentrassi.eclipse.neoscada.chart/org.eclipse.scada.chart.swt
public void setAlign ( final int alignment )
{
this.left = ( alignment & SWT.RIGHT ) != SWT.RIGHT;
relayoutParent ();
}
代码示例来源:origin: de.dentrassi.eclipse.neoscada.chart/org.eclipse.scada.chart.swt
public void setShowLabels ( final boolean showLabels )
{
this.showLabels = showLabels;
relayoutParent ();
}
代码示例来源:origin: org.eclipse.neoscada.chart/org.eclipse.scada.chart.swt
public void setFormat ( final String format )
{
this.format = format;
relayoutParent ();
}
代码示例来源:origin: org.eclipse.neoscada.chart/org.eclipse.scada.chart.swt
public void setLabelSpacing ( final int labelSpacing )
{
this.labelSpacing = labelSpacing;
relayoutParent ();
}
内容来源于网络,如有侵权,请联系作者删除!