}
if (lastOverPin != null)
{
JPin pin = lastOverPin;
Element element = (Element) pin.pinIF;
//lastOverPin.paint(element.getX(),element.getY(), g2, false);
lastOverPin.setHighlighted(false);
lastOverPin = null;
}
if (e.getSource() instanceof JPin)
{
JPin pin = (JPin) e.getSource();
getBasis().owner.frameCircuit.showPinDescription(pin);
if (pin.draht == null)
{
Element element = (Element) pin.pinIF;
//Graphics2D g2 = (Graphics2D)vmObject.getGraphics();
pin.setHighlighted(true);
//g2.drawOval(element.getX()+pin.getX()+1,element.getY()+pin.getY()+1,7,7);
lastOverPin = pin;
if (vmObject != null)
{
vmObject.setCursor(Cursor.getPredefinedCursor(Cursor.CROSSHAIR_CURSOR));
}
return;
}
else
{
//basis.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
}
}
else
{
getBasis().owner.frameCircuit.removePinDescription();
}
if (e.getSource() instanceof SelectionPane)
{
SelectionPane pane = (SelectionPane) e.getSource();
Element element = pane.getElement();
lastElement = element;
if (element.isSelected() && !element.isResizeSynchron())
{
lastElement = element;
if (vmObject != null)
{
int rect = getResizeRect(element, e.getX(), e.getY());
switch (rect)
{
case 0:
vmObject.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
break;
case 1:
vmObject.setCursor(Cursor.getPredefinedCursor(Cursor.NW_RESIZE_CURSOR));
break;
case 2:
vmObject.setCursor(Cursor.getPredefinedCursor(Cursor.N_RESIZE_CURSOR));
break;
case 3:
vmObject.setCursor(Cursor.getPredefinedCursor(Cursor.NE_RESIZE_CURSOR));
break;
case 4:
vmObject.setCursor(Cursor.getPredefinedCursor(Cursor.W_RESIZE_CURSOR));
break;
case 5:
vmObject.setCursor(Cursor.getPredefinedCursor(Cursor.W_RESIZE_CURSOR));
break;
case 6:
vmObject.setCursor(Cursor.getPredefinedCursor(Cursor.NE_RESIZE_CURSOR));
break;
case 7:
vmObject.setCursor(Cursor.getPredefinedCursor(Cursor.S_RESIZE_CURSOR));
break;
case 8:
vmObject.setCursor(Cursor.getPredefinedCursor(Cursor.NW_RESIZE_CURSOR));
break;
}
}
}
else
{
if (element.isResizeSynchron())
{
int rect = getResizeRect(element, e.getX(), e.getY());
if (rect == 8)
{
vmObject.setCursor(Cursor.getPredefinedCursor(Cursor.NW_RESIZE_CURSOR));