org.devaki.nextobjects.workspace.models.graphics
Class LabelView

java.lang.Object
  extended byorg.devaki.nextobjects.workspace.models.graphics.ObjectView
      extended byorg.devaki.nextobjects.workspace.models.graphics.ClassView
          extended byorg.devaki.nextobjects.workspace.models.graphics.LabelView
All Implemented Interfaces:
java.io.Serializable

public class LabelView
extends ClassView

The labels view are like postits

Author:
eflorent
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.devaki.nextobjects.workspace.models.graphics.ClassView
font, fontI, metriques, myStyle, oldRectangle, rectangle
 
Fields inherited from class org.devaki.nextobjects.workspace.models.graphics.ObjectView
actionPoint, myObject, selectionPoints
 
Constructor Summary
LabelView(BaseObject pObject)
          construct a LabelView
 
Method Summary
 java.awt.Dimension autoResize(boolean actIt)
          Return the optimal surface of the object Optionaly resize the object.
 void paint(java.awt.Graphics g)
          Paint the "cartouche"
 void printText(java.awt.Graphics g)
          Draw the texts
 
Methods inherited from class org.devaki.nextobjects.workspace.models.graphics.ClassView
getLocation, getMiddlePoint, getOldrectangle, getSize, getStyle, getSurface, printColumns, resetSelectionPoint, setLocation, setOldLocation, setOldSize, setSize, setStyle
 
Methods inherited from class org.devaki.nextobjects.workspace.models.graphics.ObjectView
getBaseObject, getSelectionPoint, getSelectionPoints, renderSelected, resetActionLocation, setActionLocation, setBaseObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabelView

public LabelView(BaseObject pObject)
construct a LabelView

Parameters:
pObject - the base label
Method Detail

paint

public void paint(java.awt.Graphics g)
Paint the "cartouche"

Specified by:
paint in class ObjectView
Parameters:
g - the graphic context

printText

public void printText(java.awt.Graphics g)
Draw the texts

Parameters:
g - the graphic context

autoResize

public java.awt.Dimension autoResize(boolean actIt)
Description copied from class: ClassView
Return the optimal surface of the object Optionaly resize the object.

Overrides:
autoResize in class ClassView
Parameters:
actIt - really set the size or just return
Returns:
the dimension


Copyright © 2002-2004 devaki.org. All Rights Reserved.