|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.progeeks.util.swing.CompositeIcon
public class CompositeIcon
Composes two separate Icon objects into one Icon.
Field Summary |
---|
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Constructor Summary | |
---|---|
CompositeIcon()
Creates an empty icon. |
|
CompositeIcon(javax.swing.Icon a,
javax.swing.Icon b)
Creates an icon overlaying the two icons with the second centered over the first. |
|
CompositeIcon(javax.swing.Icon a,
javax.swing.Icon b,
int yAlignment)
Creates an icon reprsenting the two icons side by side. |
|
CompositeIcon(javax.swing.Icon a,
javax.swing.Icon b,
int xOffset,
int yOffset,
int xAlignment,
int yAlignment)
Creates an icon with the specified parameters. |
Method Summary | |
---|---|
int |
getHorizontalAlignment()
|
javax.swing.Icon |
getIconA()
|
javax.swing.Icon |
getIconB()
|
int |
getIconHeight()
|
int |
getIconWidth()
|
java.awt.Point |
getOffset()
|
int |
getOffsetX()
|
int |
getOffsetY()
|
int |
getVerticalAlignment()
|
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
|
protected void |
recalculate()
|
void |
setHorizontalAlignment(int align)
|
void |
setIconA(javax.swing.Icon a)
|
void |
setIconB(javax.swing.Icon b)
|
void |
setOffset(int xOffset,
int yOffset)
|
void |
setOffsetX(int xOffset)
|
void |
setOffsetY(int yOffset)
|
void |
setVerticalAlignment(int align)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompositeIcon()
public CompositeIcon(javax.swing.Icon a, javax.swing.Icon b)
public CompositeIcon(javax.swing.Icon a, javax.swing.Icon b, int yAlignment)
public CompositeIcon(javax.swing.Icon a, javax.swing.Icon b, int xOffset, int yOffset, int xAlignment, int yAlignment)
Method Detail |
---|
public void setIconA(javax.swing.Icon a)
public javax.swing.Icon getIconA()
public void setIconB(javax.swing.Icon b)
public javax.swing.Icon getIconB()
public void setHorizontalAlignment(int align)
public int getHorizontalAlignment()
public void setVerticalAlignment(int align)
public int getVerticalAlignment()
public void setOffset(int xOffset, int yOffset)
public java.awt.Point getOffset()
public void setOffsetX(int xOffset)
public int getOffsetX()
public void setOffsetY(int yOffset)
public int getOffsetY()
protected void recalculate()
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon
public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |