public class RMShapeIcon
extends java.lang.Object
implements javax.swing.Icon
Constructor and Description |
---|
RMShapeIcon(java.lang.Object aSource,
double aWidth,
double aHeight)
Creates a shape painter from any objects (assumed to be a document source).
|
RMShapeIcon(RMShape aShape)
Creates a new ShapeIcon.
|
RMShapeIcon(RMShape aShape,
double aWidth,
double aHeight)
Creates a new ShapeIcon.
|
Modifier and Type | Method and Description |
---|---|
int |
getIconHeight()
Returns height.
|
int |
getIconWidth()
Returns width.
|
RMShape |
getShape()
Returns the shape.
|
void |
paintIcon(java.awt.Component aComponent,
java.awt.Graphics aGraphics,
int x,
int y)
Paints the icon.
|
void |
setShape(RMShape aShape)
Sets the shape.
|
void |
setSize(double aWidth,
double aHeight)
Sets the size.
|
public RMShapeIcon(RMShape aShape)
public RMShapeIcon(RMShape aShape, double aWidth, double aHeight)
public RMShapeIcon(java.lang.Object aSource, double aWidth, double aHeight)
public RMShape getShape()
public void setShape(RMShape aShape)
public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon
public void setSize(double aWidth, double aHeight)
public void paintIcon(java.awt.Component aComponent, java.awt.Graphics aGraphics, int x, int y)
paintIcon
in interface javax.swing.Icon