예제 #1
0
    public void preRender(DrawContext dc) {
      // This is called twice: once during normal rendering, then again during ordered surface
      // rendering. During
      // normal renering we pre-render both the interior and border shapes. During ordered surface
      // rendering, both
      // shapes are already added to the DrawContext and both will be individually processed.
      // Therefore we just
      // call our superclass behavior
      if (dc.isOrderedRenderingMode()) {
        super.preRender(dc);
        return;
      }

      this.doPreRender(dc);
    }
예제 #2
0
 protected void doPreRenderInterior(DrawContext dc) {
   super.preRender(dc);
 }