Package org.foo.shape

Examples of org.foo.shape.SimpleShape.draw()


    SimpleShape shape = m_shapeRef.get();
   
    // If this is a proxy shape, use it to draw the shape.
    if (shape != null) {
        // Draw the shape.
        shape.draw(g2, p);
        // If everything was successful, then simply return.
        return;
    }

    // If the proxied shape could not be drawn for any reason or if
View Full Code Here


  protected void paintComponent(Graphics g) {
    super.paintComponent(g);
    Graphics2D g2 = (Graphics2D) g;
    g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
    SimpleShape shape = m_frame.getShape(m_shapeName);
    shape.draw(g2, new Point(getWidth() / 2, getHeight() / 2));
  }
}
View Full Code Here

    super.paintComponent(g);
    Graphics2D g2 = (Graphics2D) g;
    g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
    SimpleShape shape = m_frame.getShape(m_shapeName);
    shape.setColor(getForeground());
    shape.draw(g2, new Point(getWidth() / 2, getHeight() / 2));
  }
}
View Full Code Here

    SimpleShape shape = m_shapeRef.get();
   
    // If this is a proxy shape, use it to draw the shape.
    if (shape != null) {
        // Draw the shape.
        shape.draw(g2, p);
        // If everything was successful, then simply return.
        return;
    }

    // If the proxied shape could not be drawn for any reason or if
View Full Code Here

    SimpleShape shape = m_shapeRef.get();
   
    // If this is a proxy shape, use it to draw the shape.
    if (shape != null) {
        // Draw the shape.
        shape.draw(g2, p);
        // If everything was successful, then simply return.
        return;
    }

    // If the proxied shape could not be drawn for any reason or if
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.