public abstract class AbstractTableElement extends java.lang.Object implements java.io.Serializable
TableElement.
| Constructor and Description |
|---|
AbstractTableElement()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Tests this instance for equality with an arbitrary object.
|
RectanglePainter |
getBackground()
Returns the background painter for the element.
|
java.awt.Insets |
getInsets()
Returns the insets.
|
java.lang.Object |
getProperty(java.lang.String key)
Returns the value of the property with the specified key, or
null. |
RefPt2D |
getRefPoint()
Returns the anchor point used to align the element with the bounding
rectangle within which it is drawn.
|
java.lang.String |
getTag()
Returns the tag for this element.
|
java.awt.geom.Dimension2D |
preferredSize(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D bounds)
Returns the preferred size of the element (including insets).
|
abstract java.awt.geom.Dimension2D |
preferredSize(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D bounds,
java.util.Map<java.lang.String,java.lang.Object> constraints)
Returns the preferred size of the element (including insets).
|
void |
setBackground(RectanglePainter background)
Sets the background for the element.
|
void |
setBackgroundColor(java.awt.Color color)
Sets the background painter to fill the element with the specified
color.
|
void |
setInsets(java.awt.Insets insets)
Sets the insets.
|
void |
setProperty(java.lang.String key,
java.lang.Object value)
Sets the value of the property with the specified key.
|
void |
setRefPoint(RefPt2D refPt)
Sets the reference point.
|
void |
setTag(java.lang.String tag)
Sets the tag.
|
public AbstractTableElement()
public RefPt2D getRefPoint()
RefPt2D.CENTER.null).public void setRefPoint(RefPt2D refPt)
refPt - the reference point (null not permitted).public java.awt.Insets getInsets()
Insets(2, 2, 2, 2).null).public void setInsets(java.awt.Insets insets)
insets - the insets (null not permitted).public RectanglePainter getBackground()
null).public void setBackground(RectanglePainter background)
background - the new background (null permitted).public void setBackgroundColor(java.awt.Color color)
null, the background painter will
be set to null.color - the color (null permitted).public java.lang.String getTag()
null).public void setTag(java.lang.String tag)
tag - the tag (null not permitted).public java.lang.Object getProperty(java.lang.String key)
null.key - the key (null not permitted).null.public void setProperty(java.lang.String key, java.lang.Object value)
key - the key (null not permitted).value - the value (null permitted).public java.awt.geom.Dimension2D preferredSize(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D bounds)
g2 - the graphics target.bounds - the bounds.public abstract java.awt.geom.Dimension2D preferredSize(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D bounds, java.util.Map<java.lang.String,java.lang.Object> constraints)
g2 - the graphics target.bounds - the bounds.constraints - the constraints (ignored for now).public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object (null permitted).