?? compoundskin.java
字號:
renderer = skina.getPersonality().getTableHeaderRenderer();
}
if ((renderer == null) && (skinb.getPersonality() != null)) {
renderer = skinb.getPersonality().getTableHeaderRenderer();
}
return renderer;
}
/**
* Description of the Method
*
* @return Description of the Returned Value
*/
public boolean status() {
boolean result = false;
if (skina.getPersonality() != null) {
result = skina.getPersonality().status();
}
if (!result && (skinb.getPersonality() != null)) {
result = skinb.getPersonality().status();
}
return result;
}
/**
* Description of the Method
*
* @param c Description of Parameter
* @return Description of the Returned Value
*/
public boolean installSkin(JComponent c) {
boolean result = false;
if (skina.getPersonality() != null) {
result = skina.getPersonality().installSkin(c);
}
if (!result && (skinb.getPersonality() != null)) {
result = skinb.getPersonality().installSkin(c);
}
return result;
}
/**
* Description of the Method
*
* @param g Description of Parameter
* @param c Description of Parameter
* @return Description of the Returned Value
*/
public boolean paintDialog(Graphics g, Component c) {
boolean result = false;
if (skina.getPersonality() != null) {
result = skina.getPersonality().paintDialog(g, c);
}
if (!result && (skinb.getPersonality() != null)) {
result = skinb.getPersonality().paintDialog(g, c);
}
return result;
}
/**
* Description of the Method
*
* @param g Description of Parameter
* @param c Description of Parameter
* @return Description of the Returned Value
*/
public boolean paintFocus(Graphics g, JComponent c) {
boolean result = false;
if (skina.getPersonality() != null) {
result = skina.getPersonality().paintFocus(g, c);
}
if (!result && (skinb.getPersonality() != null)) {
result = skinb.getPersonality().paintFocus(g, c);
}
return result;
}
/**
* Description of the Method
*
* @param g Description of Parameter
* @param c Description of Parameter
* @return Description of the Returned Value
*/
public boolean paintMenu(Graphics g, JMenu c) {
boolean result = false;
if (skina.getPersonality() != null) {
result = skina.getPersonality().paintMenu(g, c);
}
if (!result && (skinb.getPersonality() != null)) {
result = skinb.getPersonality().paintMenu(g, c);
}
return result;
}
/**
* Description of the Method
*
* @param g Description of Parameter
* @param c Description of Parameter
* @return Description of the Returned Value
*/
public boolean paintMenuItem(Graphics g, JMenuItem c) {
boolean result = false;
if (skina.getPersonality() != null) {
result = skina.getPersonality().paintMenuItem(g, c);
}
if (!result && (skinb.getPersonality() != null)) {
result = skinb.getPersonality().paintMenuItem(g, c);
}
return result;
}
/**
* Description of the Method
*
* @param g Description of Parameter
* @param c Description of Parameter
* @param bounds Description of Parameter
* @param hasFocus Description of Parameter
* @return Description of the Returned Value
*/
public boolean paintComboBox(Graphics g, JComboBox c, Rectangle bounds,
boolean hasFocus, boolean isRollover) {
boolean result = false;
if (skina.getPersonality() != null) {
result = skina.getPersonality().paintComboBox(g, c, bounds, hasFocus, isRollover);
}
if (!result && (skinb.getPersonality() != null)) {
result = skinb.getPersonality().paintComboBox(g, c, bounds, hasFocus, isRollover);
}
return result;
}
/**
* Description of the Method
*
* @param g Description of Parameter
* @param c Description of Parameter
* @return Description of the Returned Value
*/
public boolean paintBackground(Graphics g, Component c) {
boolean result = false;
if (skina.getPersonality() != null) {
result = skina.getPersonality().paintBackground(g, c);
}
if (!result && (skinb.getPersonality() != null)) {
result = skinb.getPersonality().paintBackground(g, c);
}
return result;
}
/**
* Description of the Method
*
* @return Description of the Returned Value
*/
public TableCellRenderer createTableHeaderRenderer() {
return getTableHeaderRenderer();
}
/**
* Description of the Method
*
* @return Description of the Returned Value
*/
public ListCellRenderer createListCellRenderer() {
ListCellRenderer renderer = null;
if (skina.getPersonality() != null) {
renderer = skina.getPersonality().createListCellRenderer();
}
if ((renderer == null) && (skinb.getPersonality() != null)) {
renderer = skinb.getPersonality().createListCellRenderer();
}
return renderer;
}
}
/**
* Description of the Class
*
* @author fred
* @created 27 avril 2002
*/
private class CompoundProgress extends CompoundComponent implements SkinProgress {
/**
* Gets the MinimumSize attribute of the CompoundProgress object
*
* @param progress Description of Parameter
* @return The MinimumSize value
*/
public Dimension getMinimumSize(javax.swing.JProgressBar progress) {
Dimension dimension = null;
if (skina.getProgress() != null) {
dimension = skina.getProgress().getMinimumSize(progress);
}
if ((dimension == null) && (skinb.getProgress() != null)) {
dimension = skinb.getProgress().getMinimumSize(progress);
}
return dimension;
}
/**
* Description of the Method
*
* @return Description of the Returned Value
*/
public boolean status() {
boolean result = false;
if (skina.getProgress() != null) {
result = skina.getProgress().status();
}
if (!result && (skinb.getProgress() != null)) {
result = skinb.getProgress().status();
}
return result;
}
/**
* Description of the Method
*
* @param c Description of Parameter
* @return Description of the Returned Value
*/
public boolean installSkin(JComponent c) {
boolean result = false;
if (skina.getProgress() != null) {
result = skina.getProgress().installSkin(c);
}
if (!result && (skinb.getProgress() != null)) {
result = skinb.getProgress().installSkin(c);
}
return result;
}
/**
* Description of the Method
*
* @param g Description of Parameter
* @param progress Description of Parameter
* @return Description of the Returned Value
*/
public boolean paintProgress(Graphics g, JProgressBar progress) {
boolean result = false;
if (skina.getProgress() != null) {
result = skina.getProgress().paintProgress(g, progress);
}
if (!result && (skinb.getProgress() != null)) {
result = skinb.getProgress().paintProgress(g, progress);
}
return result;
}
/* (non-Javadoc)
* @see com.l2fprod.gui.plaf.skin.SkinProgress#paintIndeterminateProgress(java.awt.Graphics, javax.swing.JProgressBar, java.awt.Rectangle)
*/
public boolean paintIndeterminateProgress(Graphics g, JProgressBar progress, Rectangle rec) {
boolean result = false;
if (skina.getProgress() != null) {
result = skina.getProgress().paintIndeterminateProgress(g, progress,rec);
}
if (!result && (skinb.getProgress() != null)) {
result = skinb.getProgress().paintIndeterminateProgress(g, progress,rec);
}
return result;
}
}
/**
* Description of the Class
*
* @author fred
* @created 27 avril 2002
*/
private class CompoundScrollbar extends CompoundComponent implements SkinScrollbar {
/**
* Gets the PreferredSize attribute of the CompoundScrollbar object
*
* @param scrollbar Description of Parameter
* @return The PreferredSize value
*/
public Dimension getPreferredSize(JScrollBar scrollbar) {
Dimension dimension = null;
if (skina.getScrollbar() != null) {
dimension = skina.getScrollbar().getPreferredSize(scrollbar);
}
if ((dimension == null) && (skinb.getScrollbar() != null)) {
dimension = skinb.getScrollbar().getPreferredSize(scrollbar);
}
return dimension;
}
/**
* Gets the MinimumThumbSize attribute of the CompoundScrollbar object
*
* @return The MinimumThumbSize value
*/
public Dimension getMinimumThumbSize() {
Dimension dimension = null;
if (skina.getScrollbar() != null) {
dimension = skina.getScrollbar().getMinimumThumbSize();
}
if ((dimension == null) && (skinb.getScrollbar() != null)) {
dimension = skinb.getScrollbar().getMinimumThumbSize();
}
return dimension;
}
/**
* Gets the ArrowPreferredSize attribute of the CompoundScrollbar object
*
* @param direction Description of Parameter
* @return The ArrowPreferredSize value
*/
public Dimension getArrowPreferredSize(int direction) {
Dimension dimension = null;
if (skina.getScrollbar() != null) {
dimension = skina.getScrollbar().getArrowPreferredSize(direction);
}
if ((dimension == null) && (skinb.getScrollbar() != null)) {
dimension = skinb.getScrollbar().getArrowPreferredSize(direction);
}
return dimension;
}
/**
* Description of the Method
*
* @return Description of the Returned Value
*/
public boolean status() {
boolean result = false;
if (skina.getScrollbar() != null) {
result = skina.getScrollbar().status();
}
if (!result && (skinb.getScrollbar() != null)) {
result = skinb.getScrollbar().status();
}
return result;
}
/**
* Description of the Method
*
* @param c Description of Parameter
* @return Description of the Returned Value
*/
public boolean installSkin(JComponent c) {
boolean result = false;
if (skina.getScrollbar() != null) {
result = skina.getScrollbar().installSkin(c);
}
if (!result && (skinb.getScrollbar() != null)) {
result = skinb.getScrollbar().installSkin(c);
}
return result;
}
/**
* Description of the Method
*
* @param g Description of Parameter
* @param b Description of Parameter
* @param direction Description of Parameter
* @return Description of the Returned Value
*/
public boolean paintArrow(Graphics g, AbstractButton b, int direction) {
boolean result = false;
if (skina.getScrollbar() != null) {
result = skina.getScrollbar().paintArrow(g, b, direction);
}
if (!result && (skinb.getScrollbar() != null)) {
result = skinb.getScrollbar().paintArrow(g, b, direction);
}
return result;
}
/**
* Description of the Method
*
* @param g Description of Parameter
* @param scrollbar Description of Parameter
* @param thumbBounds Description of Parameter
* @return Description of the Returned Value
*/
public boolean paintThumb(Graphics g, JScrollBar scrollbar, Rectangle thumbBounds) {
boolean result = false;
if (skina.getScrollbar() != null) {
result = skina.getScrollbar().paintThumb(g, scrollbar, thumbBounds);
}
if (!result && (skinb.getScrollbar() != null)) {
result = skinb.getScrollbar().paintThumb(g, scrollbar, thumbBounds);
}
return result;
}
/**
* Description of the Method
*
* @param g Description of Parameter
* @param scrollbar Description of Parameter
* @param trackBounds Description of Parameter
* @return Description of the Returned Value
*/
public boolean paintTrack(Graphics g, JScrollBar scrollbar, Rectangle trackBounds) {
boolean result = false;
if (skina.getScrollbar() != null) {
result = skina.getScrollbar().paintTrack(g, scrollbar, trackBounds);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -