|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.devaki.nextobjects.workspace.models.graphics.ObjectView
This class is responsible of drawing an object
Field Summary | |
protected java.awt.Point |
actionPoint
Action point : the point where the object is to be moved. |
protected BaseObject |
myObject
the context objects |
protected SelectionPoint[] |
selectionPoints
selections points |
Constructor Summary | |
ObjectView()
Construct a new 'ObjectView' object |
|
ObjectView(BaseObject pObject)
Construct a new 'ObjectView' object |
Method Summary | |
BaseObject |
getBaseObject()
Get the object represented by this view |
abstract java.awt.Point |
getLocation()
The parent function needs to be overriden because of a bug in the program. |
SelectionPoint |
getSelectionPoint(int i)
Return the Selection Point |
SelectionPoint[] |
getSelectionPoints()
Return the Selection Points Array |
java.awt.Dimension |
getSize()
Define the dimension |
abstract java.awt.Polygon |
getSurface()
Get the surface on which the user can click to select the object |
abstract void |
paint(java.awt.Graphics g)
paint |
void |
renderSelected(java.awt.Graphics g)
Paint selection around the object |
void |
resetActionLocation()
|
abstract void |
resetSelectionPoint()
Reset Selection points do nothing |
void |
setActionLocation(int pX,
int pY)
|
void |
setBaseObject(BaseObject pBaseObject)
Set the object represented by this view |
abstract void |
setLocation(java.awt.Point p)
Set the location |
abstract void |
setSize(java.awt.Dimension pDimension)
Define the dimension |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected BaseObject myObject
protected SelectionPoint[] selectionPoints
protected java.awt.Point actionPoint
Constructor Detail |
public ObjectView(BaseObject pObject)
pObject
- the objectpublic ObjectView()
Method Detail |
public void setActionLocation(int pX, int pY)
public void resetActionLocation()
public void renderSelected(java.awt.Graphics g)
g
- Graphic axis of the main viewpublic abstract java.awt.Polygon getSurface()
public SelectionPoint[] getSelectionPoints()
public SelectionPoint getSelectionPoint(int i)
i
- index
public abstract void setLocation(java.awt.Point p)
p
- the locationpublic abstract java.awt.Point getLocation()
public abstract void setSize(java.awt.Dimension pDimension)
pDimension
- the dimensionpublic java.awt.Dimension getSize()
public void setBaseObject(BaseObject pBaseObject)
pBaseObject
- the context objectpublic BaseObject getBaseObject()
public abstract void resetSelectionPoint()
public abstract void paint(java.awt.Graphics g)
g
- the graphics context
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |