Example #1
0
 public override void drawString(java.text.AttributedCharacterIterator iterator, float x, float y)
 {
     if (iterator == null)
     {
         throw new java.lang.NullPointerException("AttributedCharacterIterator is null");
     }
     if (iterator.getBeginIndex() == iterator.getEndIndex())
     {
         return; /* nothing to draw */
     }
     java.awt.font.TextLayout tl = new java.awt.font.TextLayout(iterator, getFontRenderContext());
     tl.draw(this, x, y);
 }
Example #2
0
 public override void drawString(java.text.AttributedCharacterIterator iterator, int x, int y)
 {
     drawString(iterator, (float)x, (float)y);
 }