protected void paintTargetPanel(Graphics g){
  Graphics2D g2=(Graphics2D)g;
  if (antialiasingOn) {
    g2.setRenderingHints(antialiasing);
  }
  if (isEditable() && drawGrid) {
    drawPanelGrid(g2);
  }
  g2.setColor(defaultTrackColor);
  main=false;
  g2.setStroke(new BasicStroke(sideTrackWidth,BasicStroke.CAP_ROUND,BasicStroke.JOIN_ROUND));
  drawHiddenTrack(g2);
  drawDashedTrack(g2,false);
  drawDashedTrack(g2,true);
  drawSolidTrack(g2,false);
  drawSolidTrack(g2,true);
  drawTurnouts(g2);
  drawXings(g2);
  drawSlips(g2);
  drawTurntables(g2);
  drawTrackInProgress(g2);
  g2.setStroke(new BasicStroke(1.0F,BasicStroke.CAP_ROUND,BasicStroke.JOIN_ROUND));
  drawPoints(g2);
  if (isEditable()) {
    drawTurnoutRects(g2);
    drawXingRects(g2);
    drawSlipRects(g2);
    drawTrackOvals(g2);
    drawSelectionRect(g2);
    drawTurntableRects(g2);
    drawMemoryRects(g2);
    drawBlockContentsRects(g2);
    drawTrackCircleCentre(g2);
    highLightSelection(g2);
  }
 else   if (turnoutCirclesWithoutEditMode) {
    drawTurnoutCircles(g2);
  }
}

protected void paintTargetPanel ( Graphics g ) { Graphics2D g2 = ( Graphics2D ) g ; if ( antialiasingOn ) { g2 . setRenderingHints ( antialiasing ) ; } if ( isEditable ( ) && drawGrid ) { drawPanelGrid ( g2 ) ; } g2 . setColor ( defaultTrackColor ) ; main = false ; g2 . setStroke ( new BasicStroke ( sideTrackWidth , BasicStroke . CAP_ROUND , BasicStroke . JOIN_ROUND ) ) ; drawHiddenTrack ( g2 ) ; drawDashedTrack ( g2 , false ) ; drawDashedTrack ( g2 , true ) ; drawSolidTrack ( g2 , false ) ; drawSolidTrack ( g2 , true ) ; drawTurnouts ( g2 ) ; drawXings ( g2 ) ; drawSlips ( g2 ) ; drawTurntables ( g2 ) ; drawTrackInProgress ( g2 ) ; g2 . setStroke ( new BasicStroke ( 1.0F , BasicStroke . CAP_ROUND , BasicStroke . JOIN_ROUND ) ) ; drawPoints ( g2 ) ; if ( isEditable ( ) ) { drawTurnoutRects ( g2 ) ; drawXingRects ( g2 ) ; drawSlipRects ( g2 ) ; drawTrackOvals ( g2 ) ; drawSelectionRect ( g2 ) ; drawTurntableRects ( g2 ) ; drawMemoryRects ( g2 ) ; drawBlockContentsRects ( g2 ) ; drawTrackCircleCentre ( g2 ) ; highLightSelection ( g2 ) ; } else if ( turnoutCirclesWithoutEditMode ) { drawTurnoutCircles ( g2 ) ; } }
special internal class to allow drawing of layout to a jlayeredpane this is the ' target ' pane where the layout is displayed
