double ux = dir;
log(layer.getLayerId() + " fillRect "+ux + ", "+uy+", "+tickWidth+", "+tickProperties.lineThickness);
layer.fillRect(ux, uy, tickWidth, tickProperties.lineThickness);
if (gridProperties.visible && uy != bounds.height) {
Layer gridlayer = plot.getOverlayLayer(); // TODO - should be background
gridlayer.save();
gridlayer.setFillColor(gridProperties.color);
gridlayer.setTransparency((float) gridProperties.transparency);
gridlayer.fillRect(0, uy, gridlayer.getBounds().width, gridProperties.lineThickness);
gridlayer.restore();
}