Java Code Examples for java.awt.Rectangle.getClass()

The following are Jave code examples for showing how to use getClass() of the java.awt.Rectangle class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: NotifyTools   File:   View Source Code Vote up 4 votes
protected Expression instantiate(Object oldInstance, Encoder enc) {
    Rectangle rect = (Rectangle) oldInstance;
    return new Expression(rect, rect.getClass(), BeansUtils.NEW,
            new Object[] { rect.x, rect.y, rect.width, rect.height });