|
|||||||||||
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 org.devaki.nextobjects.workspace.models.graphics.ClassView
This class is responsible for drawing all classes-like objects
Field Summary | |
protected java.awt.Font |
font
|
protected java.awt.Font |
fontI
|
protected java.awt.FontMetrics |
metriques
Font metrics |
protected ClassStyle |
myStyle
The style |
protected java.awt.Rectangle |
oldRectangle
Old size and location |
java.awt.Rectangle |
rectangle
Size and location |
Fields inherited from class org.devaki.nextobjects.workspace.models.graphics.ObjectView |
actionPoint, myObject, selectionPoints |
Constructor Summary | |
ClassView()
Construct a new ObjectView object |
|
ClassView(BaseObject pObject)
Construct a new ObjectView object |
Method Summary | |
java.awt.Dimension |
autoResize(boolean act_it)
Return the optimal surface of the object Optionaly resize the object. |
java.awt.Point |
getLocation()
Get the location |
java.awt.Point |
getMiddlePoint()
Returns a computed gravity center. |
java.awt.Rectangle |
getOldrectangle()
Get the old Rectangle |
java.awt.Dimension |
getSize()
Get the size |
ClassStyle |
getStyle()
Get the style |
java.awt.Polygon |
getSurface()
Get the surface on which the user can click to select the object |
void |
printColumns(java.awt.Graphics2D g2,
int x,
int y)
Paint the text common in all ClassViews |
void |
resetSelectionPoint()
ResetSelectionPoint |
void |
setLocation(java.awt.Point p)
Set the location |
void |
setOldLocation(java.awt.Point p)
Set the old location |
void |
setOldSize(java.awt.Dimension pDimension)
Set the old size |
void |
setSize(java.awt.Dimension pDimension)
Define the size |
void |
setStyle(ClassStyle pStyle)
Define the style |
Methods inherited from class org.devaki.nextobjects.workspace.models.graphics.ObjectView |
getBaseObject, getSelectionPoint, getSelectionPoints, paint, renderSelected, resetActionLocation, setActionLocation, setBaseObject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected ClassStyle myStyle
protected java.awt.FontMetrics metriques
protected java.awt.Font font
protected java.awt.Font fontI
public java.awt.Rectangle rectangle
protected java.awt.Rectangle oldRectangle
Constructor Detail |
public ClassView(BaseObject pObject)
ObjectView
object
pObject
- the context objectpublic ClassView()
ObjectView
object
Method Detail |
public java.awt.Point getMiddlePoint()
public ClassStyle getStyle()
public void setStyle(ClassStyle pStyle)
pStyle
- the context stylepublic java.awt.Point getLocation()
getLocation
in class ObjectView
public void setLocation(java.awt.Point p)
setLocation
in class ObjectView
p
- the locationpublic java.awt.Dimension getSize()
getSize
in class ObjectView
public void setSize(java.awt.Dimension pDimension)
setSize
in class ObjectView
pDimension
- the new dimensionpublic java.awt.Rectangle getOldrectangle()
public void setOldLocation(java.awt.Point p)
p
- the old locationpublic void setOldSize(java.awt.Dimension pDimension)
pDimension
- the old sizepublic void resetSelectionPoint()
resetSelectionPoint
in class ObjectView
public java.awt.Polygon getSurface()
getSurface
in class ObjectView
public java.awt.Dimension autoResize(boolean act_it)
act_it
- really set the size or just return
public void printColumns(java.awt.Graphics2D g2, int x, int y)
g2
- the graphics gx
- optional offset Xy
- optional offset y
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |