com.sun.electric.database.hierarchy
Class Cell.FrameDescription

java.lang.Object
  extended by com.sun.electric.database.hierarchy.Cell.FrameDescription
Enclosing class:
Cell

public static class Cell.FrameDescription
extends java.lang.Object

Class for creating a description of a frame around a schematic cell.


Field Summary
static double MULTIPAGESEPARATION
           
 
Constructor Summary
Cell.FrameDescription(Cell cell, int pageNo)
          Constructor for cell frame descriptions.
 
Method Summary
static int getCellFrameInfo(Cell cell, java.awt.Dimension d)
          Method to determine the size of the schematic frame in the current Cell.
 void renderFrame()
          Method called to render the frame information.
 void showFrameLine(java.awt.geom.Point2D from, java.awt.geom.Point2D to)
          Method to draw a line in a frame.
 void showFrameText(java.awt.geom.Point2D ctr, double size, double maxWid, double maxHei, java.lang.String string)
          Method to draw text in a frame.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MULTIPAGESEPARATION

public static final double MULTIPAGESEPARATION
See Also:
Constant Field Values
Constructor Detail

Cell.FrameDescription

public Cell.FrameDescription(Cell cell,
                             int pageNo)
Constructor for cell frame descriptions.

Parameters:
cell - the Cell that is having a frame drawn.
Method Detail

showFrameLine

public void showFrameLine(java.awt.geom.Point2D from,
                          java.awt.geom.Point2D to)
Method to draw a line in a frame. This method is overridden by subclasses that know how to do the function.

Parameters:
from - the starting point of the line (in database units).
to - the ending point of the line (in database units).

showFrameText

public void showFrameText(java.awt.geom.Point2D ctr,
                          double size,
                          double maxWid,
                          double maxHei,
                          java.lang.String string)
Method to draw text in a frame. This method is overridden by subclasses that know how to do the function.

Parameters:
ctr - the anchor point of the text.
size - the size of the text (in database units).
maxWid - the maximum width of the text (ignored if zero).
maxHei - the maximum height of the text (ignored if zero).
string - the text to be displayed.

renderFrame

public void renderFrame()
Method called to render the frame information. It makes calls to "renderInit()", "showFrameLine()", and "showFrameText()".


getCellFrameInfo

public static int getCellFrameInfo(Cell cell,
                                   java.awt.Dimension d)
Method to determine the size of the schematic frame in the current Cell.

Parameters:
d - a Dimension in which the size (database units) will be placed.
Returns:
0: there should be a frame whose size is absolute; 1: there should be a frame but it combines with other stuff in the cell; 2: there is no frame.