|
JavaGantt 2011.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.border.AbstractBorder
eu.beesoft.gaia.swing.form.EditableComponentBorder
public class EditableComponentBorder
Border used by Form
to show that component is editable. If component
is editable, the small marks are painted in its two opposite corners.
Constructor Summary | |
---|---|
EditableComponentBorder()
Creates a new instance of EditableComponentBorder with the default color [0,0,255]. |
|
EditableComponentBorder(java.awt.Color color)
Creates a new instance of EditableComponentBorder with the given color. |
Method Summary | |
---|---|
java.awt.Insets |
getBorderInsets(java.awt.Component c)
Returns the border insets (initialized with values [3,4,3,4]. |
java.awt.Color |
getColor()
Gets the color of the border. |
protected void |
paintBorder(java.awt.Component c,
boolean isEditable,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
Paints the border around given component, if it is editable. |
void |
paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
Paints the border around given component. |
void |
setColor(java.awt.Color color)
Sets the color of the border. |
Methods inherited from class javax.swing.border.AbstractBorder |
---|
getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaque |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EditableComponentBorder()
public EditableComponentBorder(java.awt.Color color)
color
- - the color of borderMethod Detail |
---|
public java.awt.Color getColor()
public void setColor(java.awt.Color color)
color
- - the color to setpublic java.awt.Insets getBorderInsets(java.awt.Component c)
getBorderInsets
in interface javax.swing.border.Border
getBorderInsets
in class javax.swing.border.AbstractBorder
public void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
paintBorder(Component, boolean, Graphics, int, int, int, int)
method.
paintBorder
in interface javax.swing.border.Border
paintBorder
in class javax.swing.border.AbstractBorder
c
- - component that requests to paint the borderg
- - graphics to paint onx
- - horizontal coordinatey
- - vertical coordinatewidth
- - width of borderheight
- - height of borderprotected void paintBorder(java.awt.Component c, boolean isEditable, java.awt.Graphics g, int x, int y, int width, int height)
c
- - component that requests to paint the borderisEditable
- - true if given component is editableg
- - graphics to paint onx
- - horizontal coordinatey
- - vertical coordinatewidth
- - width of borderheight
- - height of border
|
JavaGantt 2011.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |