public abstract class GlyphIcon extends Object
Constructor and Description |
---|
GlyphIcon() |
Modifier and Type | Method and Description |
---|---|
abstract Glyph |
getGlyph()
get the glyph that the icon is representing
|
static Icon |
getGlyphIcon(Glyph g,
int w,
int h)
Use this method to get a GlyphIcon (you shoud not use a Ic* constructor directly nor GlyphIcon()) ; all objects returned by this method implement javax.swing.Icon
|
abstract void |
setGlyph(Glyph g)
set the glyph that the icon should be representing
|
void |
setIconWidthHeight(int w,
int h)
set the icon's width and height
|
public static Icon getGlyphIcon(Glyph g, int w, int h)
g
- glyph to be representedw
- icon width (should be greater than 0)h
- icon height (should be greater than 0)public abstract void setGlyph(Glyph g)
g
- glyph to be represented (warning: the glyph type cannot be changed, only its attributes ; this means that if the Icon was instantiated as a VShape, only a VShape can be provided as parameter, etc...)public abstract Glyph getGlyph()
public void setIconWidthHeight(int w, int h)
w
- width (must be greater than 0)h
- height (must be greater than 0)Copyright © 2000-2002 Xerox Corporation. All Rights Reserved
Copyright © 2003 World Wide Web Consortium. All Rights Reserved
Copyright © 2004-2015 INRIA. All Rights Reserved
Licensed under the GNU LGPL. For full terms see the file COPYING.