com.sun.electric.tool.user
Class ViewChanges

java.lang.Object
  extended by com.sun.electric.tool.user.ViewChanges

public class ViewChanges
extends java.lang.Object

Class for view-related changes to the circuit.


Nested Class Summary
static class ViewChanges.CreateAndViewCell
          Class to create a cell and display it in a new window.
static class ViewChanges.IconParameters
          Class to define parameters for automatic icon generation
 
Method Summary
static void changeCellView(Cell cell, View newView)
          CHANGE A CELL'S VIEW
static void convertMultiPageViews()
          CONVERT OLD-STYLE MULTI-PAGE SCHEMATICS
static int iconTextRotation(Export pp, int inputRot, int outputRot, int bidirRot, int pwrRot, int gndRot, int clkRot)
          Method to determine the side of the icon that port "pp" belongs on.
static boolean makeIconExport(Export pp, int index, double xPos, double yPos, double xBBPos, double yBBPos, Cell np, int exportTech, boolean drawLeads, int exportStyle, int exportLocation, int textRotation, boolean alwaysDrawn)
          Helper method to create an export in an icon.
static void makeIconViewCommand()
          MAKE AN ICON FOR A CELL
static void makeIconViewNoGUI(Cell curCell, boolean doItNow, boolean fixedValues)
           
static void makeLayoutView()
          Method to converts the current Cell into a layout in a given technology.
static void makeSchematicView()
          Method to converts the current Cell into a schematic.
static void makeSkeletonViewCommand()
          MAKE A SKELETON FOR A CELL
static boolean skeletonizeCell(Cell curCell, Cell skeletonCell)
          Method to copy the skeletonized version of one Cell into another.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

convertMultiPageViews

public static void convertMultiPageViews()
CONVERT OLD-STYLE MULTI-PAGE SCHEMATICS


changeCellView

public static void changeCellView(Cell cell,
                                  View newView)
CHANGE A CELL'S VIEW


makeSkeletonViewCommand

public static void makeSkeletonViewCommand()
MAKE A SKELETON FOR A CELL


skeletonizeCell

public static boolean skeletonizeCell(Cell curCell,
                                      Cell skeletonCell)
Method to copy the skeletonized version of one Cell into another.

Parameters:
curCell - the original Cell to be skeletonized.
skeletonCell - the destination Cell that gets the skeletonized representation.
Returns:
true on error.

makeIconViewCommand

public static void makeIconViewCommand()
MAKE AN ICON FOR A CELL


makeIconViewNoGUI

public static void makeIconViewNoGUI(Cell curCell,
                                     boolean doItNow,
                                     boolean fixedValues)

makeIconExport

public static boolean makeIconExport(Export pp,
                                     int index,
                                     double xPos,
                                     double yPos,
                                     double xBBPos,
                                     double yBBPos,
                                     Cell np,
                                     int exportTech,
                                     boolean drawLeads,
                                     int exportStyle,
                                     int exportLocation,
                                     int textRotation,
                                     boolean alwaysDrawn)
Helper method to create an export in an icon.

Parameters:
pp - the Export to build.
index - the side (0: left, 1: right, 2: top, 3: bottom).
xPos - the export location
yPos - the export location
xBBPos - the central box location
yBBPos - the central box location.
np - the cell in which to create the export.
exportTech - the technology to use (generic or schematic)
drawLeads - true to draw leads on the icon
exportStyle - the icon style
exportLocation -
textRotation -
alwaysDrawn - true to make export text be "always drawn"
Returns:
true if the export was created.

iconTextRotation

public static int iconTextRotation(Export pp,
                                   int inputRot,
                                   int outputRot,
                                   int bidirRot,
                                   int pwrRot,
                                   int gndRot,
                                   int clkRot)
Method to determine the side of the icon that port "pp" belongs on.


makeSchematicView

public static void makeSchematicView()
Method to converts the current Cell into a schematic.


makeLayoutView

public static void makeLayoutView()
Method to converts the current Cell into a layout in a given technology.