-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathFontDesigner.java
More file actions
51 lines (44 loc) · 1.2 KB
/
FontDesigner.java
File metadata and controls
51 lines (44 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package darrylbu.util;
import darrylbu.model.FontModel;
import java.awt.Font;
import java.beans.PropertyChangeListener;
/**
* Implemented by classes that use a <code>FontModel</code> and design a font.
*
* @author Darryl
* @see FontModel
*/
public interface FontDesigner extends PropertyChangeListener {
String FONT_PROPERTY = "font";
String FONT_MODEL_PROPERTY = "fontModel";
/**
* Returns the font represented by the selections in this designer. Equivalent to
* <PRE>
* getFontModel().getFont()
* </PRE>
*
* @return the designed font
*/
Font getDesignedFont();
/**
* Sets the designed font of this designer. Equivalent to
* <PRE>getFontModel().setFont()</PRE>
*
* @param newFont the new font
*/
void setDesignedFont(Font newFont);
/**
* Gets the <code>FontModel</code> that provides the designed Font for this
* designer.
*
* @return the <code>FontModel</code> that provides the designed Font
*/
FontModel getFontModel();
/**
* Sets a <code>FontModel</code> and registers with it for listener notifications from
* the new model.
*
* @param newModel the new Font source for this designer
*/
void setFontModel(FontModel newModel);
}