private static void drawTableLayoutGuidelines(ViewTransform transform,Graphics2D g,ConstraintTableLayout table){
  Graphics2D g2=(Graphics2D)g.create();
  ArrayList<Guideline> vertical=table.getVerticalGuidelines();
  ArrayList<Guideline> horizontal=table.getHorizontalGuidelines();
  g2.setStroke(SnapDraw.sThinDashedStroke);
  int l=transform.getSwingX(table.getDrawX());
  int t=transform.getSwingY(table.getDrawY());
  int r=transform.getSwingX(table.getDrawX() + table.getDrawWidth());
  int b=transform.getSwingY(table.getDrawY() + table.getDrawHeight());
  for (  ConstraintWidget v : vertical) {
    int x=transform.getSwingX(v.getX()) + l;
    g2.drawLine(x,t,x,b);
  }
  for (  ConstraintWidget h : horizontal) {
    int y=transform.getSwingY(h.getY()) + t;
    g2.drawLine(l,y,r,y);
  }
  g2.dispose();
}

private static void drawTableLayoutGuidelines ( ViewTransform transform , Graphics2D g , ConstraintTableLayout table ) { Graphics2D g2 = ( Graphics2D ) g . create ( ) ; ArrayList < Guideline > vertical = table . getVerticalGuidelines ( ) ; ArrayList < Guideline > horizontal = table . getHorizontalGuidelines ( ) ; g2 . setStroke ( SnapDraw . sThinDashedStroke ) ; int l = transform . getSwingX ( table . getDrawX ( ) ) ; int t = transform . getSwingY ( table . getDrawY ( ) ) ; int r = transform . getSwingX ( table . getDrawX ( ) + table . getDrawWidth ( ) ) ; int b = transform . getSwingY ( table . getDrawY ( ) + table . getDrawHeight ( ) ) ; for ( ConstraintWidget v : vertical ) { int x = transform . getSwingX ( v . getX ( ) ) + l ; g2 . drawLine ( x , t , x , b ) ; } for ( ConstraintWidget h : horizontal ) { int y = transform . getSwingY ( h . getY ( ) ) + t ; g2 . drawLine ( l , y , r , y ) ; } g2 . dispose ( ) ; }
draw the internal guidelines of a constrainttablelayout
