|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.border.AbstractBorder
jwo.landserf.gui.ThumbnailBorder
public class ThumbnailBorder
Creates a customised border for the display of spatial object thumbnails. The style of the border will depend on whether it represents a primary, secondary or unselected object.
| Constructor Summary | |
|---|---|
ThumbnailBorder()
Creates a border for unselected spatial objects. |
|
ThumbnailBorder(int selection)
Creates a border for spatial objects with the given selection type. |
|
| Method Summary | |
|---|---|
Color |
getBaseColour()
Reports the base colour used for bordering. |
Insets |
getBorderInsets(Component c)
Reports the insets of the border. |
Insets |
getBorderInsets(Component c,
Insets insets)
Reinitialises the insets parameter with this border's current Insets. |
Color |
getDarkColour()
Reports the darker version of the base colour used for bordering. |
Color |
getLightColour()
Reports the lighter version of the base colour used for bordering. |
boolean |
isBorderOpaque()
Reports whether or not the border is opaque. |
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
Paints the border for the given component with the given position and size. |
| Methods inherited from class javax.swing.border.AbstractBorder |
|---|
getInteriorRectangle, getInteriorRectangle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThumbnailBorder()
public ThumbnailBorder(int selection)
selection - Selection type. Should be one of GISFrame.PRIMARY,
GISFrame.SECONDARY or GISFrame.NOT_SELECTED| Method Detail |
|---|
public Color getBaseColour()
public Color getLightColour()
public Color getDarkColour()
public void paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
paintBorder in interface BorderpaintBorder in class AbstractBorderc - Component on which this border is painted.g - Graphics context.x - X position of the painted border.y - Y position of the painted border.width - Width of the painted border.height - Height of the painted borderpublic Insets getBorderInsets(Component c)
getBorderInsets in interface BordergetBorderInsets in class AbstractBorderc - Component for which this border insets apply.
public Insets getBorderInsets(Component c,
Insets insets)
getBorderInsets in class AbstractBorderc - Component for which this border insets value applies.insets - Object to be reinitialized.
public boolean isBorderOpaque()
isBorderOpaque in interface BorderisBorderOpaque in class AbstractBorder
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||