24
24
package com.sun.electric.database.variable;
26
import java.io.Serializable;
27
29
* This interface gives a limited access to EditWindow necessary
28
30
* for calculating a shape of some primitives.
30
32
public interface EditWindow0 {
32
35
* Get the window's VarContext
33
36
* @return the current VarContext
35
38
public VarContext getVarContext();
38
* Method to return the scale factor for this window.
39
* @return the scale factor for this window.
41
public double getScale();
44
* Method to return the text scale factor for this window.
45
* @return the text scale factor for this window.
47
public double getGlobalTextScale();
41
* Method to return the scale factor for this window.
42
* @return the scale factor for this window.
44
public double getScale();
47
* Method to return the text scale factor for this window.
48
* @return the text scale factor for this window.
50
public double getGlobalTextScale();
53
* Method to return the default font for this window.
54
* @return the default font for this window.
56
public String getDefaultFont();
59
* Class to encapsulate the minimal EditWindow0 data needed to pass into Jobs.
61
public static class EditWindowSmall implements EditWindow0, Serializable
64
private VarContext context;
66
private double globalScale;
67
private String defaultFont;
69
public EditWindowSmall(EditWindow_ wnd)
71
context = wnd.getVarContext();
72
scale = wnd.getScale();
73
globalScale = wnd.getGlobalTextScale();
74
defaultFont = wnd.getDefaultFont();
78
* Get the window's VarContext
79
* @return the current VarContext
81
public VarContext getVarContext() { return context; }
84
* Method to return the scale factor for this window.
85
* @return the scale factor for this window.
87
public double getScale() { return scale; }
90
* Method to return the text scale factor for this window.
91
* @return the text scale factor for this window.
93
public double getGlobalTextScale() { return globalScale; }
96
* Method to return the default font for this window.
97
* @return the default font for this window.
99
public String getDefaultFont() { return defaultFont; }