|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.openpcl.pclrenderimage.softfont.PriFontBase
public abstract class PriFontBase
Field Summary | |
---|---|
static int |
AGFA_FONT
Intellifont Scalable font/typeface |
static int |
BITMAP_FONT
Bitmap font |
protected int |
cellHeight
For bitmap fonts this is cell width. |
protected int |
cellWidth
For bitmap fonts this is cell height. |
protected int[] |
characterComplement
For unbound font's character complement is use to check if a font can display desired symbol collection |
protected boolean |
isFixedPitch
|
protected boolean |
isPermanent
This is applicapable for soft fonts only ( location == RAM ) true this font is permanent
false this font is temporary
For more information about temporary and permanent soft fonts refer to PCL Techincal Reference
Soft Fonts |
protected String |
name
Name of the font. |
protected int |
orientation
Orientation characteristic. |
protected double |
pitch
|
protected boolean |
spaceDisplayable
Indicates whteher space character is displayable. |
protected int |
storage
One of storage constants. |
static int |
STORAGE_CARTRIDGE0
|
static int |
STORAGE_CARTRIDGE1
|
static int |
STORAGE_INTERNAL
A printer comes with a standard set of internal fonts. |
static int |
STORAGE_RAM
|
static int |
STORAGE_SIMM
|
protected int |
strokeWeight
|
protected int |
style
|
protected int |
symbolset
Font's symbolset. |
static int |
TRUETYPE_FONT
TrueType scalable font/typeface |
protected int |
typefaceFamily
|
Constructor Summary | |
---|---|
protected |
PriFontBase()
|
protected |
PriFontBase(int symbolset,
int[] characterComplement,
int typefaceFamily,
double pitch,
int cellWidth,
int cellHeight,
int storage)
Initliaze font characteristics |
protected |
PriFontBase(int symbolset,
int[] characterComplement,
int typefaceFamily,
int pitch,
int cellWidth,
int cellHeight)
|
Method Summary | |
---|---|
abstract boolean |
canDisplay(char charCode)
|
boolean |
canDisplaySpace()
|
void |
dump()
|
boolean |
equals(Object obj)
true obj is FontBase instance and it's equal to this font
Two fonts are equal if they could not be distinguished ie. |
int |
getCellHeight()
|
int |
getCellWidth()
|
int[] |
getCharacterComplement()
|
abstract float |
getHeight()
|
String |
getName()
|
int |
getOrientation()
|
double |
getPitch()
|
int |
getStorage()
|
int |
getStrokeWeight()
|
int |
getStyle()
|
int |
getSymbolset()
|
int |
getTypefaceFamily()
|
boolean |
isFixedPitch()
|
boolean |
isPermanent()
|
boolean |
isUnbound()
|
void |
setPermanent(boolean isPermanent)
|
void |
setStorage(int storage)
|
String |
toString()
|
abstract int |
type()
Derived classes should implement this method to return the type of the font they represent Type is either BITMAP_FONT or TRUETYPE_FONT or AGFA_FONT |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int TRUETYPE_FONT
public static final int BITMAP_FONT
public static final int AGFA_FONT
public static final int STORAGE_INTERNAL
public static final int STORAGE_CARTRIDGE0
public static final int STORAGE_CARTRIDGE1
public static final int STORAGE_SIMM
public static final int STORAGE_RAM
protected int symbolset
protected int[] characterComplement
protected int typefaceFamily
protected double pitch
protected int style
protected int strokeWeight
protected int cellHeight
protected int cellWidth
protected boolean isFixedPitch
protected int orientation
protected String name
protected int storage
protected boolean isPermanent
true
this font is permanent
false
this font is temporary
For more information about temporary and permanent soft fonts refer to PCL Techincal Reference
Soft Fonts
protected boolean spaceDisplayable
Constructor Detail |
---|
protected PriFontBase()
protected PriFontBase(int symbolset, int[] characterComplement, int typefaceFamily, double pitch, int cellWidth, int cellHeight, int storage)
symbolset
- symbolset code or 0 for unbound fontcharacterComplement
- an array of 8 numbers wchich defines symbol
collections supported by a font or null for a bound fonttypefaceFamily
- typefaceFamily characteristicpitch
- cellWidth
- cellHeight
- storage
- protected PriFontBase(int symbolset, int[] characterComplement, int typefaceFamily, int pitch, int cellWidth, int cellHeight)
Method Detail |
---|
public abstract int type()
public String getName()
public boolean isUnbound()
public boolean isFixedPitch()
public int getSymbolset()
public int[] getCharacterComplement()
public int getTypefaceFamily()
public double getPitch()
public int getStorage()
public void setStorage(int storage)
public int getStyle()
public int getStrokeWeight()
public int getCellHeight()
public int getCellWidth()
public int getOrientation()
public boolean isPermanent()
public void setPermanent(boolean isPermanent)
public boolean canDisplaySpace()
public abstract boolean canDisplay(char charCode)
public abstract float getHeight()
public boolean equals(Object obj)
true
obj is FontBase instance and it's equal to this font
Two fonts are equal if they could not be distinguished ie. they have
same charactericts ( Symbol set, Spacing, Pitch,... )
equals
in class Object
public String toString()
toString
in class Object
public void dump()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |