| Modifier and Type | Class and Description |
|---|---|
| pack-priv static interface | |
| pack-priv static class | CSSBorder.
Painter for the "dotted" and "dashed" CSS border styles. |
| pack-priv static class | CSSBorder.
Painter for the "double" CSS border style. |
| pack-priv static class | CSSBorder.
Painter for the "groove" and "ridge" CSS border styles. |
| pack-priv static class | CSSBorder.
Painter for the "inset" and "outset" CSS border styles. |
| pack-priv static class | CSSBorder.
Painter for the "none" and "hidden" CSS border styles. |
| pack-priv abstract static class | CSSBorder.
Painter that defines colors for "shadow" and "light" border sides. |
| pack-priv static class | CSSBorder.
Painter for the "solid" CSS border style. |
| pack-priv abstract static class | CSSBorder.
Defines a method for painting strokes in the specified direction using the given length and color patterns. |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final CSS. | ATTRIBUTES
The attribute groups. |
| pack-priv final AttributeSet | attrs
Attribute set containing border properties. |
| pack-priv static Map | borderPainters
Map the border style values to the border painter objects. |
| pack-priv static final int | BOTTOM
Indices for the box sides within the attribute group. |
| pack-priv static final int | COLOR
Indices for the attribute groups. |
| pack-priv static final Object[] | DEFAULTS
Default values for the border properties. |
| pack-priv static final int | LEFT
Indices for the box sides within the attribute group. |
| pack-priv static final CSS. | PARSERS
Parsers for the border properties. |
| pack-priv static final int | RIGHT
Indices for the box sides within the attribute group. |
| pack-priv static final int | STYLE
Indices for the attribute groups. |
| pack-priv static final int | TOP
Indices for the box sides within the attribute group. |
| pack-priv static final int | WIDTH
Indices for the attribute groups. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static Color | getAdjustedColor(Color c, double factor)
Return the color with brightness adjusted by the specified factor. |
| private Color | |
| public Insets | getBorderInsets(Component c, Insets insets)
Overrides javax. Reinitializes the insets parameter with this Border's current Insets. |
| private CSSBorder. | |
| private Polygon | |
| private CSS. | |
| private int | |
| private int[] | |
| public void | paintBorder(Component c, Graphics g, int x, int y, int width, int height)
Overrides javax. Implements javax. This default implementation does no painting. |
| pack-priv static void | registerBorderPainter(CSS.
Add the specified painter to the painters map. |
| ATTRIBUTES | back to summary |
|---|---|
| pack-priv static final CSS. The attribute groups. | |
| attrs | back to summary |
|---|---|
| pack-priv final AttributeSet attrs Attribute set containing border properties. | |
| borderPainters | back to summary |
|---|---|
| pack-priv static Map<CSS. Map the border style values to the border painter objects. | |
| BOTTOM | back to summary |
|---|---|
| pack-priv static final int BOTTOM Indices for the box sides within the attribute group. | |
| COLOR | back to summary |
|---|---|
| pack-priv static final int COLOR Indices for the attribute groups. | |
| DEFAULTS | back to summary |
|---|---|
| pack-priv static final Object[] DEFAULTS Default values for the border properties. | |
| LEFT | back to summary |
|---|---|
| pack-priv static final int LEFT Indices for the box sides within the attribute group. | |
| PARSERS | back to summary |
|---|---|
| pack-priv static final CSS. Parsers for the border properties. | |
| RIGHT | back to summary |
|---|---|
| pack-priv static final int RIGHT Indices for the box sides within the attribute group. | |
| STYLE | back to summary |
|---|---|
| pack-priv static final int STYLE Indices for the attribute groups. | |
| TOP | back to summary |
|---|---|
| pack-priv static final int TOP Indices for the box sides within the attribute group. | |
| WIDTH | back to summary |
|---|---|
| pack-priv static final int WIDTH Indices for the attribute groups. | |
| CSSBorder | back to summary |
|---|---|
| pack-priv CSSBorder(AttributeSet attrs) Initialize the attribute set. | |
| getAdjustedColor | back to summary |
|---|---|
| pack-priv static Color getAdjustedColor(Color c, double factor) Return the color with brightness adjusted by the specified factor. The factor values are between 0.0 (no change) and 1.0 (turn into white). Negative factor values decrease brightness (ie, 1.0 turns into black). | |
| getBorderColor | back to summary |
|---|---|
| private Color getBorderColor(int side) Return the border color for the given side. | |
| getBorderInsets | back to summary |
|---|---|
| public Insets getBorderInsets(Component c, Insets insets) Overrides javax. Doc from javax. Reinitializes the insets parameter with this Border's current Insets. | |
| getBorderPainter | back to summary |
|---|---|
| private CSSBorder. Return the border painter appropriate for the given side. | |
| getBorderShape | back to summary |
|---|---|
| private Polygon getBorderShape(int side) Return border shape for | |
| getBorderStyle | back to summary |
|---|---|
| private CSS. Return the border style for the given side. | |
| getBorderWidth | back to summary |
|---|---|
| private int getBorderWidth(int side) Return the border width for the given side. | |
| getWidths | back to summary |
|---|---|
| private int[] getWidths() Return an array of border widths in the TOP, RIGHT, BOTTOM, LEFT order. | |
| paintBorder | back to summary |
|---|---|
| public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) Overrides javax. Implements javax. Doc from javax. This default implementation does no painting. | |
| registerBorderPainter | back to summary |
|---|---|
| pack-priv static void registerBorderPainter(CSS. Add the specified painter to the painters map. | |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| paint | back to summary |
|---|---|
| public void paint(Polygon shape, Graphics g, Color color, int side) The painter should paint the border as if it were at the top and the coordinates of the NW corner of the interior area is (0, 0). The caller is responsible for the appropriate affine transformations. Clip is set by the caller to the exact border shape so it's safe to simply draw into the shape's bounding rectangle. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | paint(Polygon shape, Graphics g, Color color, int side)
Implements javax. The painter should paint the border as if it were at the top and the coordinates of the NW corner of the interior area is (0, 0). |
| factor | back to summary |
|---|---|
| pack-priv final int factor | |
| DottedDashedPainter | back to summary |
|---|---|
| pack-priv DottedDashedPainter(int factor) | |
| paint | back to summary |
|---|---|
| public void paint(Polygon shape, Graphics g, Color color, int side) Implements javax. Doc from javax. The painter should paint the border as if it were at the top and the coordinates of the NW corner of the interior area is (0, 0). The caller is responsible for the appropriate affine transformations. Clip is set by the caller to the exact border shape so it's safe to simply draw into the shape's bounding rectangle. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | paint(Polygon shape, Graphics g, Color color, int side)
Implements javax. The painter should paint the border as if it were at the top and the coordinates of the NW corner of the interior area is (0, 0). |
| DoublePainter | back to summary |
|---|---|
| pack-priv DoublePainter() | |
| paint | back to summary |
|---|---|
| public void paint(Polygon shape, Graphics g, Color color, int side) Implements javax. Doc from javax. The painter should paint the border as if it were at the top and the coordinates of the NW corner of the interior area is (0, 0). The caller is responsible for the appropriate affine transformations. Clip is set by the caller to the exact border shape so it's safe to simply draw into the shape's bounding rectangle. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | paint(Polygon shape, Graphics g, Color color, int side)
Implements javax. The painter should paint the border as if it were at the top and the coordinates of the NW corner of the interior area is (0, 0). |
| type | back to summary |
|---|---|
| pack-priv final CSS. | |
| GrooveRidgePainter | back to summary |
|---|---|
| pack-priv GrooveRidgePainter(CSS. | |
| paint | back to summary |
|---|---|
| public void paint(Polygon shape, Graphics g, Color color, int side) Implements javax. Doc from javax. The painter should paint the border as if it were at the top and the coordinates of the NW corner of the interior area is (0, 0). The caller is responsible for the appropriate affine transformations. Clip is set by the caller to the exact border shape so it's safe to simply draw into the shape's bounding rectangle. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | paint(Polygon shape, Graphics g, Color color, int side)
Implements javax. The painter should paint the border as if it were at the top and the coordinates of the NW corner of the interior area is (0, 0). |
| type | back to summary |
|---|---|
| pack-priv CSS. | |
| InsetOutsetPainter | back to summary |
|---|---|
| pack-priv InsetOutsetPainter(CSS. | |
| paint | back to summary |
|---|---|
| public void paint(Polygon shape, Graphics g, Color color, int side) Implements javax. Doc from javax. The painter should paint the border as if it were at the top and the coordinates of the NW corner of the interior area is (0, 0). The caller is responsible for the appropriate affine transformations. Clip is set by the caller to the exact border shape so it's safe to simply draw into the shape's bounding rectangle. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | paint(Polygon shape, Graphics g, Color color, int side)
Implements javax. The painter should paint the border as if it were at the top and the coordinates of the NW corner of the interior area is (0, 0). |
| NullPainter | back to summary |
|---|---|
| pack-priv NullPainter() | |
| paint | back to summary |
|---|---|
| public void paint(Polygon shape, Graphics g, Color color, int side) Implements javax. Doc from javax. The painter should paint the border as if it were at the top and the coordinates of the NW corner of the interior area is (0, 0). The caller is responsible for the appropriate affine transformations. Clip is set by the caller to the exact border shape so it's safe to simply draw into the shape's bounding rectangle. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static Color | |
| pack-priv static Color |
| ShadowLightPainter | back to summary |
|---|---|
| pack-priv ShadowLightPainter() | |
| getLightColor | back to summary |
|---|---|
| pack-priv static Color getLightColor(Color c) Return the "light" border side color. | |
| getShadowColor | back to summary |
|---|---|
| pack-priv static Color getShadowColor(Color c) Return the "shadow" border side color. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | paint(Polygon shape, Graphics g, Color color, int side)
Implements javax. The painter should paint the border as if it were at the top and the coordinates of the NW corner of the interior area is (0, 0). |
| SolidPainter | back to summary |
|---|---|
| pack-priv SolidPainter() | |
| paint | back to summary |
|---|---|
| public void paint(Polygon shape, Graphics g, Color color, int side) Implements javax. Doc from javax. The painter should paint the border as if it were at the top and the coordinates of the NW corner of the interior area is (0, 0). The caller is responsible for the appropriate affine transformations. Clip is set by the caller to the exact border shape so it's safe to simply draw into the shape's bounding rectangle. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | paintStrokes(Rectangle r, Graphics g, int axis, int[] lengthPattern, Color[] colorPattern)
Paint strokes repeatedly using the given length and color patterns. |
| StrokePainter | back to summary |
|---|---|
| pack-priv StrokePainter() | |
| paintStrokes | back to summary |
|---|---|
| pack-priv void paintStrokes(Rectangle r, Graphics g, int axis, int[] lengthPattern, Color[] colorPattern) Paint strokes repeatedly using the given length and color patterns. | |