com.ait.lienzo.client.core.shape.Rectangle.setLocation()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.5k)|赞(0)|评价(0)|浏览(124)

本文整理了Java中com.ait.lienzo.client.core.shape.Rectangle.setLocation方法的一些代码示例,展示了Rectangle.setLocation的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Rectangle.setLocation方法的具体详情如下:
包路径:com.ait.lienzo.client.core.shape.Rectangle
类名称:Rectangle
方法名:setLocation

Rectangle.setLocation介绍

暂无

代码示例

代码示例来源:origin: com.ahome-it/lienzo-core

@Override
public RectangleSelectionProvider setLocation(final Point2D location)
{
  shape.setLocation(location);
  return this;
}

代码示例来源:origin: ahome-it/lienzo-core

@Override
public RectangleSelectionProvider setLocation(final Point2D location)
{
  shape.setLocation(location);
  return this;
}

代码示例来源:origin: ahome-it/lienzo-core

@Override
public RectangleSelectionProvider setLocation(final Point2D location)
{
  shape.setLocation(location);
  return this;
}

代码示例来源:origin: org.drools/drools-wb-guided-dtable-editor-client

private Group makeDecisionTableGlyph( final GuidedDecisionTableView view ) {
  final Group g = new Group();
  final Rectangle r = new Rectangle( view.getWidth(),
                    view.getHeight() );
  r.setFillColor( ColorName.LIGHTGRAY );
  r.setLocation( view.getLocation() );
  g.setListening( false );
  g.add( r );
  return g;
}

代码示例来源:origin: kiegroup/drools-wb

private Group makeDecisionTableGlyph( final GuidedDecisionTableView view ) {
  final Group g = new Group();
  final Rectangle r = new Rectangle( view.getWidth(),
                    view.getHeight() );
  r.setFillColor( ColorName.LIGHTGRAY );
  r.setLocation( view.getLocation() );
  g.setListening( false );
  g.add( r );
  return g;
}

代码示例来源:origin: org.drools/drools-wb-guided-dtable-editor-client

@Override
public void setVisibleBounds( final Bounds bounds ) {
  radarLayer.remove( visibleBounds );
  visibleBounds.setLocation( new Point2D( bounds.getX(),
                      bounds.getY() ) );
  visibleBounds.setHeight( bounds.getHeight() );
  visibleBounds.setWidth( bounds.getWidth() );
  radarLayer.add( visibleBounds );
  visibleBounds.moveToTop();
  radarLayer.batch();
}

代码示例来源:origin: kiegroup/drools-wb

@Override
public void setVisibleBounds( final Bounds bounds ) {
  radarLayer.remove( visibleBounds );
  visibleBounds.setLocation( new Point2D( bounds.getX(),
                      bounds.getY() ) );
  visibleBounds.setHeight( bounds.getHeight() );
  visibleBounds.setWidth( bounds.getWidth() );
  radarLayer.add( visibleBounds );
  visibleBounds.moveToTop();
  radarLayer.batch();
}

代码示例来源:origin: kiegroup/drools-wb

public void setLabel( final String label ) {
  final Layer scratchLayer = new Layer();
  final LienzoPanel scratchPanel = new LienzoPanel( 100, 100 );
  scratchPanel.add( scratchLayer );
  text.setText( label );
  final TextMetrics tm = text.measure( scratchLayer.getContext() );
  final double cw = tm.getWidth() + 10;
  final double ch = tm.getHeight() + 10;
  container.setWidth( cw );
  container.setHeight( ch );
  container.setLocation( new Point2D( -cw / 2,
                    -ch / 2 ) );
}

代码示例来源:origin: org.drools/drools-wb-guided-dtree-editor-client

public void setLabel( final String label ) {
  final Layer scratchLayer = new Layer();
  final LienzoPanel scratchPanel = new LienzoPanel( 100, 100 );
  scratchPanel.add( scratchLayer );
  text.setText( label );
  final TextMetrics tm = text.measure( scratchLayer.getContext() );
  final double cw = tm.getWidth() + 10;
  final double ch = tm.getHeight() + 10;
  container.setWidth( cw );
  container.setHeight( ch );
  container.setLocation( new Point2D( -cw / 2,
                    -ch / 2 ) );
}

代码示例来源:origin: org.drools/drools-wb-guided-dtable-editor-client

visibleBounds.setFillColor( ColorName.GRAY );
visibleBounds.setAlpha( 0.25 );
visibleBounds.setLocation( new Point2D( ( RADAR_WIDTH - visibleBounds.getWidth() ) / 2,
                    ( RADAR_HEIGHT - visibleBounds.getHeight() ) / 2 ) );
radarLayer.add( visibleBounds );

代码示例来源:origin: kiegroup/drools-wb

visibleBounds.setFillColor( ColorName.GRAY );
visibleBounds.setAlpha( 0.25 );
visibleBounds.setLocation( new Point2D( ( RADAR_WIDTH - visibleBounds.getWidth() ) / 2,
                    ( RADAR_HEIGHT - visibleBounds.getHeight() ) / 2 ) );
radarLayer.add( visibleBounds );

相关文章