@Override public void fill(Context2D context, Attributes attr, double alpha) { if (m_closed) { super.fill(context, attr, alpha); } }
/** * Used internally. Draws the node in the current Context2D * without applying the transformation-related attributes * (e.g. X, Y, ROTATION, SCALE, SHEAR, OFFSET and TRANSFORM.) * <p> * Shapes should apply the non-Transform related attributes (such a colors, strokeWidth etc.) * and draw the Shape's details (such as the the actual lines and fills.) */ protected void drawWithoutTransforms(Context2D context) { double alpha = getGlobalAlpha(); if (alpha <= 0) { return; } m_apsh = false; m_fill = false; Attributes attr = getAttributes(); if (prepare(context, attr, alpha)) { fill(context, attr, alpha); stroke(context, attr, alpha); } }