Skip to content

Instantly share code, notes, and snippets.

@johnmay
Created July 18, 2012 21:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnmay/3139004 to your computer and use it in GitHub Desktop.
Save johnmay/3139004 to your computer and use it in GitHub Desktop.
CDK GeometryTools has2DCoordinates
if (GeometryTools.has2DCoordinates(container)) {
renderer.paint(container, new AWTDrawVisitor(g2), bounds, true);
} else {
// can log or invoke g2.drawString() to display "no coordinates"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment