|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimtools.diagram.DiagramParameters
public class DiagramParameters
This class holds the various paremeters used to define a DiagramComponent. It can be serialized. Some of these paramters have default values that can be read from Properties
DiagramComponent
,
Serialized FormField Summary | |
---|---|
java.awt.Color |
backgr
background color |
static java.awt.Color |
DEFAULT_COLOR
background default color |
static int[] |
DEFAULT_VALUES
|
java.awt.Color |
forgr
forground color |
int |
grid
diagram grid step |
boolean |
gridDisplay
diagram grid display status |
static int |
HEADER_HEIGHT
|
static int |
HEADER_MARGIN
header height for printing |
int |
headerHeight
header height for printing |
java.lang.String |
headerTitle
header title for printing |
int |
height
|
static int |
HEIGHT
|
int |
minimumHeight
minimum height of the diagram |
int |
minimumWidth
minimum width of the diagram |
java.lang.String |
name
diagram name |
static java.lang.String[] |
OPTION_KEYS
|
double |
scale
diagram zoom factor |
int |
width
|
static int |
WIDTH
|
int |
xmargin
x margin |
static int |
XMARGIN
|
int |
ymargin
y margin |
static int |
YMARGIN
|
Constructor Summary | |
---|---|
DiagramParameters()
Creates diagram parameters with default values |
Method Summary | |
---|---|
static java.awt.Color |
invertColor(java.awt.Color c)
|
void |
readProperties(java.util.Properties p)
Reads diagram parameters from a set of properties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int WIDTH
public static final int HEIGHT
public static final int XMARGIN
public static final int YMARGIN
public static final int HEADER_HEIGHT
public static final int[] DEFAULT_VALUES
public static final java.lang.String[] OPTION_KEYS
public int minimumWidth
public int minimumHeight
public int xmargin
public int ymargin
public int headerHeight
public static final int HEADER_MARGIN
public java.lang.String headerTitle
public static final java.awt.Color DEFAULT_COLOR
public int width
public int height
public java.awt.Color backgr
public java.awt.Color forgr
public java.lang.String name
public double scale
public boolean gridDisplay
public int grid
Constructor Detail |
---|
public DiagramParameters()
Method Detail |
---|
public void readProperties(java.util.Properties p)
public static java.awt.Color invertColor(java.awt.Color c)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |