public void declareDimension(final int dimensionType,final int scale,final int pixelperscale,final int offset,final Long colorNaming,final Long colorScale,final String name){
  this.scales[dimensionType]=Math.max(1,scale);
  this.pixels[dimensionType]=pixelperscale;
  this.offsets[dimensionType]=offset;
  this.colnames[dimensionType]=colorNaming;
  this.colscale[dimensionType]=colorScale;
  this.tablenames[dimensionType]=name;
  if ((dimensionType == DIMENSION_LEFT) || (dimensionType == DIMENSION_RIGHT)) {
    drawVerticalScale((dimensionType == DIMENSION_LEFT),scale,pixelperscale,offset,colorNaming,colorScale,name);
  }
  if ((dimensionType == DIMENSION_TOP) || (dimensionType == DIMENSION_BOTTOM)) {
    drawHorizontalScale((dimensionType == DIMENSION_TOP),scale,pixelperscale,offset,colorNaming,colorScale,name);
  }
}

public void declareDimension ( final int dimensionType , final int scale , final int pixelperscale , final int offset , final Long colorNaming , final Long colorScale , final String name ) { this . scales [ dimensionType ] = Math . max ( 1 , scale ) ; this . pixels [ dimensionType ] = pixelperscale ; this . offsets [ dimensionType ] = offset ; this . colnames [ dimensionType ] = colorNaming ; this . colscale [ dimensionType ] = colorScale ; this . tablenames [ dimensionType ] = name ; if ( ( dimensionType == DIMENSION_LEFT ) || ( dimensionType == DIMENSION_RIGHT ) ) { drawVerticalScale ( ( dimensionType == DIMENSION_LEFT ) , scale , pixelperscale , offset , colorNaming , colorScale , name ) ; } if ( ( dimensionType == DIMENSION_TOP ) || ( dimensionType == DIMENSION_BOTTOM ) ) { drawHorizontalScale ( ( dimensionType == DIMENSION_TOP ) , scale , pixelperscale , offset , colorNaming , colorScale , name ) ; } }
assign a metric to a graph . the dimension can be left or right ( the measure at the side - border of the graph )
