org.jdesktop.swingx.painter
Class RectanglePainter
java.lang.Object
org.jdesktop.beans.AbstractBean
org.jdesktop.swingx.painter.AbstractPainter
org.jdesktop.swingx.painter.RectanglePainter
- All Implemented Interfaces:
- Painter
public class RectanglePainter
- extends AbstractPainter
|
Constructor Summary |
RectanglePainter()
Creates a new instance of RectanglePainter |
RectanglePainter(int top,
int left,
int bottom,
int right,
int roundWidth,
int roundHeight,
boolean rounded,
Paint fillPaint,
double strokeWidth,
Paint borderPaint)
|
| Methods inherited from class org.jdesktop.swingx.painter.AbstractPainter |
getAlphaInterpolation, getAntialiasing, getClip, getColorRendering, getComposite, getDithering, getEffects, getFractionalMetrics, getInterpolation, getRendering, getRenderingHint, getRenderingHints, getResizeClip, getStrokeControl, getTextAntialiasing, isUseCache, paint, restoreState, saveState, setAlphaInterpolation, setAntialiasing, setClip, setColorRendering, setComposite, setDithering, setEffects, setEffects, setFractionalMetrics, setInterpolation, setRendering, setRenderingHint, setRenderingHints, setResizeClip, setStrokeControl, setTextAntialiasing, setUseCache |
| Methods inherited from class org.jdesktop.beans.AbstractBean |
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener |
RectanglePainter
public RectanglePainter()
- Creates a new instance of RectanglePainter
RectanglePainter
public RectanglePainter(int top,
int left,
int bottom,
int right,
int roundWidth,
int roundHeight,
boolean rounded,
Paint fillPaint,
double strokeWidth,
Paint borderPaint)
calculateShape
protected Shape calculateShape(JComponent component)
paintBackground
protected void paintBackground(Graphics2D g,
JComponent component)
- Description copied from class:
AbstractPainter
- Subclasses should implement this method and perform custom painting operations
here. Common behavior, such as setting the clip and composite, saving and restoring
state, is performed in the "paint" method automatically, and then delegated here.
- Specified by:
paintBackground in class AbstractPainter
- Parameters:
g - The Graphics2D object in which to paintcomponent - The JComponent that the Painter is delegate for.
getFillPaint
public Paint getFillPaint()
setFillPaint
public void setFillPaint(Paint fillPaint)
getBorderPaint
public Paint getBorderPaint()
setBorderPaint
public void setBorderPaint(Paint borderPaint)
isRounded
public boolean isRounded()
setRounded
public void setRounded(boolean rounded)
getInsets
public Insets getInsets()
setInsets
public void setInsets(Insets insets)
getRoundWidth
public int getRoundWidth()
setRoundWidth
public void setRoundWidth(int roundWidth)
getRoundHeight
public int getRoundHeight()
setRoundHeight
public void setRoundHeight(int roundHeight)
getStrokeWidth
public double getStrokeWidth()
setStrokeWidth
public void setStrokeWidth(double strokeWidth)