|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
com.sun.electric.database.geometry.EGraphics
public class EGraphics
Class to define the appearance of a piece of geometry.
Nested Class Summary | |
---|---|
static class |
EGraphics.Outline
Class to define the type of outline around a stipple pattern. |
Field Summary | |
---|---|
static int |
BLACK
Describes the color black. |
static int |
BLUE
Describes the color blue. |
static int |
BROWN
Describes the color brown. |
static int |
CELLOUT
Describes the cell outline. |
static int |
CELLTXT
Describes the cell and port names. |
static int |
CURSOR
Describes the cursor color. |
static int |
CYAN
Describes the color cyan. |
static int |
DBLUE
Describes the color dark blue. |
static int |
DGRAY
Describes the color dark gray. |
static int |
DGREEN
Describes the color dark green. |
static int |
DRED
Describes the color dark red. |
static int |
FULLRGBBIT
Describes the full RGB escape bit. |
static int |
GRAY
Describes the color gray. |
static int |
GREEN
Describes the color green. |
static int |
HMENBOR
Describes the highlighted menu border color. |
static int |
HWINBOR
Describes the highlighted window border color. |
static int |
LAYERT1
Describes transparent layer 1. |
static int |
LAYERT10
Describes transparent layer 10. |
static int |
LAYERT11
Describes transparent layer 11. |
static int |
LAYERT12
Describes transparent layer 12. |
static int |
LAYERT2
Describes transparent layer 2. |
static int |
LAYERT3
Describes transparent layer 3. |
static int |
LAYERT4
Describes transparent layer 4. |
static int |
LAYERT5
Describes transparent layer 5. |
static int |
LAYERT6
Describes transparent layer 6. |
static int |
LAYERT7
Describes transparent layer 7. |
static int |
LAYERT8
Describes transparent layer 8. |
static int |
LAYERT9
Describes transparent layer 9. |
static int |
LBLUE
Describes the color light blue. |
static int |
LGRAY
Describes the color light gray. |
static int |
LGREEN
Describes the color light green. |
static int |
LRED
Describes the color light red. |
static int |
MAGENTA
Describes the color magenta. |
static int |
MENBOR
Describes the menu border color. |
static int |
MENGLY
Describes the menu glyph color. |
static int |
MENTXT
Describes the menu text color. |
static int |
OPAQUEBIT
Describes opaque color escape bit. |
static int |
ORANGE
Describes the color orange. |
static int |
PURPLE
Describes the color purple. |
static int |
RED
Describes the color red. |
static int |
TRANSPARENT_1
defines the 1st transparent layer. |
static int |
TRANSPARENT_10
defines the 10th transparent layer. |
static int |
TRANSPARENT_11
defines the 11th transparent layer. |
static int |
TRANSPARENT_12
defines the 12th transparent layer. |
static int |
TRANSPARENT_2
defines the 2nd transparent layer. |
static int |
TRANSPARENT_3
defines the 3rd transparent layer. |
static int |
TRANSPARENT_4
defines the 4th transparent layer. |
static int |
TRANSPARENT_5
defines the 5th transparent layer. |
static int |
TRANSPARENT_6
defines the 6th transparent layer. |
static int |
TRANSPARENT_7
defines the 7th transparent layer. |
static int |
TRANSPARENT_8
defines the 8th transparent layer. |
static int |
TRANSPARENT_9
defines the 9th transparent layer. |
static int |
WHITE
Describes the color white. |
static int |
WINBOR
Describes the window border color. |
static int |
YELLOW
Describes the color yellow. |
Constructor Summary | |
---|---|
EGraphics(boolean displayPatterned,
boolean printPatterned,
EGraphics.Outline outlineWhenPatterned,
int transparentLayer,
int red,
int green,
int blue,
double opacity,
boolean foreground,
int[] pattern)
Method to create a graphics object. |
|
EGraphics(EGraphics g)
Method to easily copy graphics between similar layers |
Method Summary | |
---|---|
void |
factoryReset()
Method to reset this Graphics to its factory state. |
static int |
findColorIndex(java.lang.String name)
Method to find the index of a color, given its name. |
java.lang.Object |
get3DAppearance()
Method to retrieve current 3D appearance. |
java.awt.Color |
getColor()
Method to return the color associated with this EGraphics. |
static java.awt.Color |
getColorFromIndex(int colorIndex)
Method to convert a color index into a Color. |
static java.lang.String |
getColorIndexName(int colorIndex)
Method to tell the name of the color with a given index. |
static int[] |
getColorIndices()
Method to return the array of color indices. |
int |
getFactoryColor()
Method to get the RGB value representing the color by factory default. |
double |
getFactoryOpacity()
Method to return the opacity by factory default. |
EGraphics.Outline |
getFactoryOutlined()
Method describes the type of outline pattern by factory default. |
int[] |
getFactoryPattern()
Method to return the stipple pattern by factory default. |
int |
getFactoryTransparentLayer()
Method to return the transparent layer number by factory default. |
boolean |
getForeground()
Method to get whether this EGraphics should be drawn in the foreground. |
Layer |
getLayer()
Method to return the Layer associated with this EGraphics. |
double |
getOpacity()
Method to get the opacity of this EGraphics. |
java.awt.Color |
getOpaqueColor()
Method to return the color associated with this EGraphics with full opacity. |
EGraphics.Outline |
getOutlined()
Method to tell the type of outline pattern. |
int[] |
getPattern()
Method to get the stipple pattern of this EGraphics. |
int[] |
getReversedPattern()
Method to get the reversed stipple pattern of this EGraphics. |
int |
getRGB()
Returns the RGB value representing the color associated with this EGraphics. |
static int[] |
getTransparentColorIndices()
Method to return the array of transparent color indices. |
int |
getTransparentLayer()
Method to return the transparent layer number associated with this EGraphics. |
boolean |
isFactoryPatternedOnDisplay()
Method describes how this EGraphics appears on a display by factory default. |
boolean |
isFactoryPatternedOnPrinter()
Method describes how this EGraphics appears on a printer by factory default. |
boolean |
isPatternedOnDisplay()
Method describes how this EGraphics appears on a display. |
boolean |
isPatternedOnPrinter()
Method describes how this EGraphics appears on a printer. |
static int |
makeIndex(java.awt.Color color)
Method to convert a Color to a color index. |
static int |
makeIndex(int transparentLayer)
Method to convert a transparent layer to a color index. |
void |
notifyVisibility(java.lang.Boolean layerVis)
Method to notify 3D observers |
void |
recachePrefs()
Method to recache the graphics information from the preferences. |
void |
set3DAppearance(java.lang.Object obj)
Method to set 3D appearance. |
void |
setColor(java.awt.Color color)
Method to set the color associated with this EGraphics. |
void |
setColorIndex(int colorIndex)
Method to set the color of this EGraphics from a "color index". |
void |
setForeground(boolean f)
Method to set whether this EGraphics should be drawn in the foreground. |
void |
setLayer(Layer layer)
Method to set which Layer is associated with this EGraphics. |
void |
setOpacity(double opacity)
Method to set the opacity of this EGraphics. |
void |
setOutlined(EGraphics.Outline o)
Method to set whether this pattern has an outline around it. |
void |
setPattern(int[] pattern)
Method to set the stipple pattern of this EGraphics. |
void |
setPatternedOnDisplay(boolean p)
Method to set how this EGraphics appears on a display. |
void |
setPatternedOnPrinter(boolean p)
Method to set how this EGraphics appears on a printer. |
void |
setTransparentLayer(int transparentLayer)
Method to set the transparent layer number associated with this EGraphics. |
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int FULLRGBBIT
public static final int OPAQUEBIT
public static final int WHITE
public static final int BLACK
public static final int RED
public static final int BLUE
public static final int GREEN
public static final int CYAN
public static final int MAGENTA
public static final int YELLOW
public static final int CELLTXT
public static final int CELLOUT
public static final int WINBOR
public static final int HWINBOR
public static final int MENBOR
public static final int HMENBOR
public static final int MENTXT
public static final int MENGLY
public static final int CURSOR
public static final int GRAY
public static final int ORANGE
public static final int PURPLE
public static final int BROWN
public static final int LGRAY
public static final int DGRAY
public static final int LRED
public static final int DRED
public static final int LGREEN
public static final int DGREEN
public static final int LBLUE
public static final int DBLUE
public static final int LAYERT1
public static final int LAYERT2
public static final int LAYERT3
public static final int LAYERT4
public static final int LAYERT5
public static final int LAYERT6
public static final int LAYERT7
public static final int LAYERT8
public static final int LAYERT9
public static final int LAYERT10
public static final int LAYERT11
public static final int LAYERT12
public static final int TRANSPARENT_1
public static final int TRANSPARENT_2
public static final int TRANSPARENT_3
public static final int TRANSPARENT_4
public static final int TRANSPARENT_5
public static final int TRANSPARENT_6
public static final int TRANSPARENT_7
public static final int TRANSPARENT_8
public static final int TRANSPARENT_9
public static final int TRANSPARENT_10
public static final int TRANSPARENT_11
public static final int TRANSPARENT_12
Constructor Detail |
---|
public EGraphics(boolean displayPatterned, boolean printPatterned, EGraphics.Outline outlineWhenPatterned, int transparentLayer, int red, int green, int blue, double opacity, boolean foreground, int[] pattern)
displayPatterned
- true if drawn with a pattern on the display.printPatterned
- true if drawn with a pattern on a printer.outlineWhenPatterned
- the outline texture to use when patterned.transparentLayer
- the transparent layer number (0 for none).red
- the red component of this EGraphics.green
- the green component of this EGraphics.blue
- the blue component of this EGraphics.opacity
- the opacity of this EGraphics (1 for opaque, 0 for transparent).foreground
- the foreground factor of this EGraphics (1 for to be in foreground).pattern
- the 16x16 stipple pattern of this EGraphics (16 integers).public EGraphics(EGraphics g)
g
- graphics to copy data fromMethod Detail |
---|
public Layer getLayer()
public void setLayer(Layer layer)
layer
- the Layer to associate with this EGraphics.public void recachePrefs()
public void factoryReset()
public boolean isPatternedOnDisplay()
public boolean isFactoryPatternedOnDisplay()
public void setPatternedOnDisplay(boolean p)
p
- true to draw this EGraphics patterned on a display.
False to draw this EGraphics as a solid fill on a display.public boolean isPatternedOnPrinter()
public boolean isFactoryPatternedOnPrinter()
public void setPatternedOnPrinter(boolean p)
p
- true to draw this EGraphics patterned on a printer.
False to draw this EGraphics as a solid fill on a printer.public EGraphics.Outline getOutlined()
public EGraphics.Outline getFactoryOutlined()
public void setOutlined(EGraphics.Outline o)
o
- the outline pattern.public int getTransparentLayer()
public int getFactoryTransparentLayer()
public void setTransparentLayer(int transparentLayer)
transparentLayer
- the transparent layer number associated with this EGraphics.
A value of zero means that this EGraphics is not drawn transparently.
Then, use the "setColor()" method to set its solid color.public int[] getPattern()
public int[] getReversedPattern()
public int[] getFactoryPattern()
public void setPattern(int[] pattern)
pattern
- the stipple pattern of this EGraphics.public double getOpacity()
public double getFactoryOpacity()
public void setOpacity(double opacity)
opacity
- the opacity of this EGraphics.public boolean getForeground()
public void setForeground(boolean f)
f
- true if this EGraphics should be drawn in the foreground.public java.awt.Color getColor()
public java.awt.Color getOpaqueColor()
public int getFactoryColor()
public int getRGB()
public void setColor(java.awt.Color color)
color
- the color to set.public static java.awt.Color getColorFromIndex(int colorIndex)
colorIndex
- the color index to convert.
public void setColorIndex(int colorIndex)
colorIndex
- the color index to set.public static int makeIndex(java.awt.Color color)
color
- a Color object
public static int makeIndex(int transparentLayer)
transparentLayer
- the transparent layer number.
public static int findColorIndex(java.lang.String name)
name
- the name of the color.
public static java.lang.String getColorIndexName(int colorIndex)
colorIndex
- the color number.
public static int[] getColorIndices()
public static int[] getTransparentColorIndices()
public void set3DAppearance(java.lang.Object obj)
obj
- public java.lang.Object get3DAppearance()
public void notifyVisibility(java.lang.Boolean layerVis)
layerVis
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |