float[] llp;
    protected OMGraphicList constructGraticuleLines() {        float[] llp;        OMGraphicList newgraphics = new OMGraphicList(20);        // Lets figure out which lines should be painted...        Projection projection = getProjection();        if (projection == null) {            return newgraphics;        }        tenDegreeLines = null;        if (showOneAndFiveLines || showRuler || showBelowOneLines) {            float left = projection.getUpperLeft().getLongitude();            float right = projection.getLowerRight().getLongitude();            float up = projection.getUpperLeft().getLatitude();            float down = projection.getLowerRight().getLatitude();            if (up > 80.0f)                up = 80.0f;            if (down > 80.0f)                down = 80f; // unlikely            if (up < -80.0f)                up = -80.0f; // unlikely            if (down < -80)                down = -80.0f;            int showWhichLines = evaluateSpacing(up, down, left, right);            // Find out whether we need to do one or two queries,            // depending on if we're straddling the dateline.            if ((left > 0 && right < 0) || (left > right)                    || (Math.abs(left - right) < 1)) {                // Test to draw the ones and fives, which will also do                // the labels.                if (showWhichLines != SHOW_TENS) {                    newgraphics.add(constructGraticuleLines(up,                            down,                            left,                            180.0f,                            showWhichLines));                    newgraphics.add(constructGraticuleLines(up,                            down,                            -180.0f,                            right,                            showWhichLines));                } else if (showRuler) { // Just do the labels for the                    // tens lines                    newgraphics.add(constructTensLabels(up,                            down,                            left,                            180.0f,                            true));                    newgraphics.add(constructTensLabels(up,                            down,                            -180.0f,                            right,                            false));                }            } else {                // Test to draw the ones and fives, which will also do                // the labels.                if (showWhichLines != SHOW_TENS) {                    newgraphics = constructGraticuleLines(up,                            down,                            left,                            right,                            showWhichLines);                } else if (showRuler) { // Just do the labels for the                    // tens lines                    newgraphics.add(constructTensLabels(up,                            down,                            left,                            right,                            true));                }            }        }        OMGraphicList list;        if (tenDegreeLines == null) {            list = constructTenDegreeLines();            tenDegreeLines = list;        } else {            synchronized (tenDegreeLines) {                setLineTypeAndProject(tenDegreeLines,                        boxy ? OMGraphic.LINETYPE_STRAIGHT                                : OMGraphic.LINETYPE_RHUMB);            }        }        if (markerLines == null) {            list = constructMarkerLines();            markerLines = list;        } else {            synchronized (markerLines) {                setLineTypeAndProject(markerLines,                        boxy ? OMGraphic.LINETYPE_STRAIGHT                                : OMGraphic.LINETYPE_RHUMB);            }        }        newgraphics.add(markerLines);        newgraphics.add(tenDegreeLines);        if (Debug.debugging("graticule")) {            Debug.output("GraticuleLayer.constructGraticuleLines(): "                    + "constructed " + newgraphics.size() + " graticule lines");        }        return newgraphics;    }