ucot.ui.gui
Class StructurePanel.EntityBox

java.lang.Object
  extended by ucot.ui.gui.StructurePanel.EntityBox
Enclosing class:
StructurePanel

private class StructurePanel.EntityBox
extends java.lang.Object

Class to handle "entityBox" wich is drawed into structurepanel, knows it's location, size and how to paint itself.

Author:
ilanliuk

Field Summary
private  java.awt.Point location
           
private  java.lang.String name
           
private  java.awt.Dimension size
           
 
Constructor Summary
StructurePanel.EntityBox(java.awt.Point location, java.lang.String name)
           
 
Method Summary
 java.lang.String getName()
           
 boolean isPointInsideBox(java.awt.Point p)
          returns true if given Point p is inside the box.
 void paintTo(java.awt.Graphics g)
          Draws the entity box into given graphics.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

location

private java.awt.Point location

size

private java.awt.Dimension size

name

private java.lang.String name
Constructor Detail

StructurePanel.EntityBox

public StructurePanel.EntityBox(java.awt.Point location,
                                java.lang.String name)
Method Detail

getName

public java.lang.String getName()

paintTo

public void paintTo(java.awt.Graphics g)
Draws the entity box into given graphics.

Parameters:
g -

isPointInsideBox

public boolean isPointInsideBox(java.awt.Point p)
returns true if given Point p is inside the box.

Parameters:
p - Point
Returns:
true if given Point p is inside the box