public class GlyphList extends Glyphish
Modifier and Type | Field and Description |
---|---|
static boolean |
debug |
protected java.util.List<Glyphish> |
glyphishThings |
protected double |
height |
static boolean |
verbose |
protected double |
width |
Constructor and Description |
---|
GlyphList() |
GlyphList(java.util.ArrayList<Glyphish> glyphs) |
GlyphList(GlyphList copy) |
Modifier and Type | Method and Description |
---|---|
void |
add(Glyphish g)
Add something glyphish to this list.
|
void |
add(Glyphish g,
java.awt.geom.AffineTransform a)
Add something glyphish to this list transforming it
beforehand using given affine transformation.
|
void |
add(int index,
Glyphish g)
Add something glyphish to this list.
|
void |
clear() |
boolean |
contains(Glyphish g)
Obtain whether this list contains given glyphish thing.
|
void |
dump() |
Glyphish |
get(int index) |
java.awt.geom.Rectangle2D |
getBounds() |
Glyphish[] |
getGlyphishInArray() |
java.util.Collection<Glyphish> |
getGlyphishInCollection() |
Glyphish |
getGlyphThing(java.awt.geom.Point2D p) |
double |
getHeight()
Returns the height of the glyphlist.
|
java.util.ListIterator<Glyphish> |
getListIterator()
Obtain list iterator through list of Glyphish things.
|
double |
getWidth()
Returns the width of the glyphlist.
|
boolean |
inside(java.awt.geom.Point2D p) |
boolean |
intersects(java.awt.geom.Rectangle2D rect) |
int |
length()
Obtain the current number of glyphish things in this list.
|
void |
paint(java.awt.Graphics2D g2d) |
void |
remove(Glyphish g)
Remove all occurences of given glyphish thing from this list.
|
void |
setHeight(double h)
Sets the height of the glyphlist.
|
void |
setWidth(double w)
Sets the width of the glyphlist.
|
java.lang.String |
toString() |
void |
transform(java.awt.geom.AffineTransform a) |
keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, rotate, rotate, scale, setKeyAction, setMouseAction, shear, translate, unsetMouseAction
_getAttribute, _setAttribute, getAttribute, getAttributeAsBoolean, getAttributeAsByte, getAttributeAsChar, getAttributeAsClosure, getAttributeAsDouble, getAttributeAsFloat, getAttributeAsInt, getAttributeAsShort, getAttributeAsString, getKeys, getStaticAttribute, getStaticKeys, isAttribute, isStaticAttribute, removeAllAttributes, removeAllStaticAttributes, removeAttribute, removeStaticAttribute, setAttribute, setStaticAttribute, showAttributes, showAttributes
public static boolean debug
public static boolean verbose
protected double width
protected double height
protected final java.util.List<Glyphish> glyphishThings
public GlyphList()
public GlyphList(GlyphList copy)
public GlyphList(java.util.ArrayList<Glyphish> glyphs)
public Glyphish get(int index)
public Glyphish getGlyphThing(java.awt.geom.Point2D p)
public Glyphish[] getGlyphishInArray()
public java.util.Collection<Glyphish> getGlyphishInCollection()
public void setHeight(double h)
h
- the desired height, a double.getHeight()
public void setWidth(double w)
w
- the desired width, a double.getWidth()
public double getHeight()
setHeight(double)
public double getWidth()
setWidth(double)
public boolean intersects(java.awt.geom.Rectangle2D rect)
intersects
in class Glyphish
public void add(Glyphish g)
null
.g
- Glyphish thing to be addedpublic void add(int index, Glyphish g)
null
.index,
- the index (starting from 0) at which to insert the glyph gg
- Glyphish thing to be addedpublic void add(Glyphish g, java.awt.geom.AffineTransform a)
null
.g
- Glyphish thing to be addeda
- AffineTransform to be applied before additionpublic void clear()
public void remove(Glyphish g)
null
.g
- Glyphish to be removedpublic boolean contains(Glyphish g)
g
- Glyphish to query list aboutpublic java.util.ListIterator<Glyphish> getListIterator()
public int length()
public void transform(java.awt.geom.AffineTransform a)
public java.lang.String toString()
toString
in class java.lang.Object
public void dump()