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

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.ModelTitleView
All Implemented Interfaces:
java.io.Serializable

public class ModelTitleView
extends ClassView

This class is responsible for drawing a "cartouche" around the graphic.

Author:
eflorent
See Also:
Serialized Form

Field Summary
(package private)  int ascent
           
(package private)  java.awt.Font font
           
(package private)  java.lang.String modelKind
           
 
Fields inherited from class org.devaki.nextobjects.workspace.models.graphics.ClassView
fontI, metriques, myStyle, oldRectangle, rectangle
 
Fields inherited from class org.devaki.nextobjects.workspace.models.graphics.ObjectView
actionPoint, myObject, selectionPoints
 
Constructor Summary
ModelTitleView(ModelTitle pObject)
          Constructor
 
Method Summary
 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
autoResize, 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
 

Field Detail

modelKind

java.lang.String modelKind

font

java.awt.Font font

ascent

int ascent
Constructor Detail

ModelTitleView

public ModelTitleView(ModelTitle pObject)
Constructor

Parameters:
pObject - the model title
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


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