/**
* This constructor supports shape definition via a rectangle.
*
* @param oSource
* StructureSource
* @param bo
* Rectangle
* @param ac
* Action
* @param dTranslateX
* X translation to apply to rectangle
* @param dTranslateY
* Y translation to apply to rectangle
* @param dScale
* scale to apply to rectangle
* @param clipping
* Clipping area, points outside it will be clipped
*/
RegionAction( StructureSource oSource, Bounds bo, Action ac,
double dTranslateX, double dTranslateY, double dScale,
Region clipping )
{
_oSource = oSource;
bo = goFactory.copyOf( bo );
bo.translate( dTranslateX, dTranslateY );
bo.scale( dScale );
Rectangle rect = new Rectangle( (int) bo.getLeft( ),
(int) bo.getTop( ),
(int) bo.getWidth( ),
(int) bo.getHeight( ) );
Region sh = new Region( );
sh.add( rect );
if ( clipping != null )
{
sh.intersect( clipping );
}
_ac = ac;
this.region = sh;
}
RegionAction.java 文件源码
java
阅读 29
收藏 0
点赞 0
评论 0
项目:birt
作者:
评论列表
文章目录