/** * Returns a shape describing the overline decoration for a given ACI. */ protected Shape getOverlineShape() { double y = metrics.getOverlineOffset(); float overlineThickness = metrics.getOverlineThickness(); // need to move the overline a bit lower, // not sure if this is correct behaviour or not y += overlineThickness; // Not certain what should be done here... aci.first(); Float dy = (Float) aci.getAttribute(DY); if (dy != null) y += dy.floatValue(); Stroke overlineStroke = new BasicStroke(overlineThickness); Rectangle2D logicalBounds = gv.getLogicalBounds(); return overlineStroke.createStrokedShape( new Line2D.Double( logicalBounds.getMinX() + overlineThickness/2.0, offset.getY()+y, logicalBounds.getMaxX() - overlineThickness/2.0, offset.getY()+y)); }
/** * Returns a shape describing the overline decoration for a given ACI. */ protected Shape getOverlineShape() { double y = metrics.getOverlineOffset(); float overlineThickness = metrics.getOverlineThickness(); // need to move the overline a bit lower, // not sure if this is correct behaviour or not y += overlineThickness; // Not certain what should be done here... aci.first(); Float dy = (Float) aci.getAttribute(DY); if (dy != null) y += dy; Stroke overlineStroke = new BasicStroke(overlineThickness); Rectangle2D logicalBounds = gv.getLogicalBounds(); return overlineStroke.createStrokedShape( new Line2D.Double( logicalBounds.getMinX() + overlineThickness/2.0, offset.getY()+y, logicalBounds.getMaxX() - overlineThickness/2.0, offset.getY()+y)); }
/** * Returns a shape describing the overline decoration for a given ACI. */ protected Shape getOverlineShape() { double y = metrics.getOverlineOffset(); float overlineThickness = metrics.getOverlineThickness(); // need to move the overline a bit lower, // not sure if this is correct behaviour or not y += overlineThickness; // Not certain what should be done here... aci.first(); Float dy = (Float) aci.getAttribute(DY); if (dy != null) y += dy; Stroke overlineStroke = new BasicStroke(overlineThickness); Rectangle2D logicalBounds = gv.getLogicalBounds(); return overlineStroke.createStrokedShape( new Line2D.Double( logicalBounds.getMinX() + overlineThickness/2.0, offset.getY()+y, logicalBounds.getMaxX() - overlineThickness/2.0, offset.getY()+y)); }