public static class Cell.FrameDescription
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static double |
MULTIPAGESEPARATION |
Constructor and Description |
---|
FrameDescription(Cell cell,
int pageNo)
Constructor for cell frame descriptions.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final double MULTIPAGESEPARATION
public FrameDescription(Cell cell, int pageNo)
cell
- the Cell that is having a frame drawn.public void showFrameLine(java.awt.geom.Point2D from, java.awt.geom.Point2D to)
from
- the starting point of the line (in database units).to
- the ending point of the line (in database units).public void showFrameText(java.awt.geom.Point2D ctr, double size, double maxWid, double maxHei, java.lang.String string)
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.public void renderFrame()
public static int getCellFrameInfo(Cell cell, java.awt.Dimension d)
d
- a Dimension in which the size (database units) will be placed.