Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1)

E12063-04

oracle.dss.dataView
Class CellBorderPainter

java.lang.Object
  extended by oracle.bali.ewt.painter.AbstractPainter
      extended by oracle.bali.ewt.painter.AbstractWrappingPainter
          extended by oracle.bali.ewt.painter.AbstractBorderPainter
              extended by oracle.dss.dataView.CellBorderPainter
All Implemented Interfaces:
java.io.Serializable, oracle.bali.ewt.painter.BorderPainter, oracle.bali.ewt.painter.Painter

public class CellBorderPainter
extends oracle.bali.ewt.painter.AbstractBorderPainter
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface oracle.bali.ewt.painter.Painter
STATE_ACTIVE_CHANGED, STATE_ARMED_CHANGED, STATE_BACKGROUND_CHANGED, STATE_ENABLED_CHANGED, STATE_FOCUSED_CHANGED, STATE_FONT_CHANGED, STATE_FOREGROUND_CHANGED, STATE_ISDEFAULT_CHANGED, STATE_MOUSE_OVER_CHANGED, STATE_READING_DIRECTION_CHANGED, STATE_SELECTED_CHANGED, STATE_SET_CHANGED, STATE_SIZE_CHANGED, STATE_XALIGNMENT_CHANGED, STATE_YALIGNMENT_CHANGED
 
Constructor Summary
CellBorderPainter(java.awt.Color color, int lineWidth, int top, int left, int bottom, int right)
          Clients use getPainter factory method.
 
Method Summary
 java.awt.Color getBorderBottomColor()
          Hidden
 int getBorderBottomLineWidth()
          Hidden
 java.awt.Color getBorderLeftColor()
          Hidden
 int getBorderLeftLineWidth()
          Hidden
 java.awt.Color getBorderRightColor()
          Hidden
 int getBorderRightLineWidth()
          Hidden
 boolean getBorderSeparateSetting()
          Hidden
 java.awt.Color getBorderTopColor()
          Hidden
 int getBorderTopLineWidth()
          Hidden
 oracle.bali.ewt.util.ImmInsets getOwnInsets(oracle.bali.ewt.painter.PaintContext context)
          Return insets for current border.
static CellBorderPainter getPainter(java.awt.Color color, int lineWidth, int top, int left, int bottom, int right, boolean separated)
          Factory method used to create and access CellBorderPainter instances.
protected  boolean isBorderTransparent(oracle.bali.ewt.painter.PaintContext context)
          Returns true if border itself is transparent.
protected  void paintBorder(oracle.bali.ewt.painter.PaintContext context, java.awt.Graphics g, int x, int y, int width, int height)
          Paints border for the given cell area.
 void setBorderBottomColor(java.awt.Color color)
          Hidden
 void setBorderBottomLineWidth(int width)
          Hidden
 void setBorderLeftColor(java.awt.Color color)
          Hidden
 void setBorderLeftLineWidth(int width)
          Hidden
 void setBorderRightColor(java.awt.Color color)
          Hidden
 void setBorderRightLineWidth(int width)
          Hidden
 void setBorderSeparateSetting(boolean trueOrFalse)
          Hidden
 void setBorderTopColor(java.awt.Color color)
          Hidden
 void setBorderTopLineWidth(int width)
          Hidden
 
Methods inherited from class oracle.bali.ewt.painter.AbstractBorderPainter
borderContains, contentContains, getBorderPainterAt, getContentPainterAt, getFillInsets, getInsets, getMaximumSize, getMinimumSize, getOwnFillInsets, getPainterAt, getPreferredSize, getSize, isTransparent, paint
 
Methods inherited from class oracle.bali.ewt.painter.AbstractWrappingPainter
getInvalidateFlags, getRepaintFlags, getWrappedPainter
 
Methods inherited from class oracle.bali.ewt.painter.AbstractPainter
contains, getData, getDataKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface oracle.bali.ewt.painter.Painter
contains, getInvalidateFlags, getRepaintFlags
 

Constructor Detail

CellBorderPainter

public CellBorderPainter(java.awt.Color color,
                         int lineWidth,
                         int top,
                         int left,
                         int bottom,
                         int right)
Clients use getPainter factory method.

Method Detail

getPainter

public static CellBorderPainter getPainter(java.awt.Color color,
                                           int lineWidth,
                                           int top,
                                           int left,
                                           int bottom,
                                           int right,
                                           boolean separated)
Factory method used to create and access CellBorderPainter instances. Multiple calls to this method with the same parameters returns the same instance.

Parameters:
color - color of the line(s)
linewidth - pixel width of the line(s). linewidth is considered for solid borders only. It is ignored for other border styles.
top - the line style for top side. Valid values are : ViewStyle.BORDER_STYLE_SOLID ViewStyle.BORDER_STYLE_DASH ViewStyle.BORDER_STYLE_DOT ViewStyle.BORDER_STYLE_DOT_DASH ViewStyle.BORDER_STYLE_DASH_DOT_DOT ViewStyle.BORDER_STYLE_DOUBLE ViewStyle.BORDER_STYLE_NO_LINE
left - the line style for left side. Valid values are : ViewStyle.BORDER_STYLE_SOLID ViewStyle.BORDER_STYLE_DASH ViewStyle.BORDER_STYLE_DOT ViewStyle.BORDER_STYLE_DOT_DASH ViewStyle.BORDER_STYLE_DASH_DOT_DOT ViewStyle.BORDER_STYLE_DOUBLE ViewStyle.BORDER_STYLE_NO_LINE
bottom - the line style for bottom side. Valid values are : ViewStyle.BORDER_STYLE_SOLID ViewStyle.BORDER_STYLE_DASH ViewStyle.BORDER_STYLE_DOT ViewStyle.BORDER_STYLE_DOT_DASH ViewStyle.BORDER_STYLE_DASH_DOT_DOT ViewStyle.BORDER_STYLE_DOUBLE ViewStyle.BORDER_STYLE_NO_LINE
right - the line style for right side. Valid values are : ViewStyle.BORDER_STYLE_SOLID ViewStyle.BORDER_STYLE_DASH ViewStyle.BORDER_STYLE_DOT ViewStyle.BORDER_STYLE_DOT_DASH ViewStyle.BORDER_STYLE_DASH_DOT_DOT ViewStyle.BORDER_STYLE_DOUBLE ViewStyle.BORDER_STYLE_NO_LINE

paintBorder

protected void paintBorder(oracle.bali.ewt.painter.PaintContext context,
                           java.awt.Graphics g,
                           int x,
                           int y,
                           int width,
                           int height)
Paints border for the given cell area.

Overrides:
paintBorder in class oracle.bali.ewt.painter.AbstractBorderPainter
Parameters:
context - PaintContext to use when painting the Border
g - Graphics context to use when painting
x - x coordinate to begin painting at
y - y coordinate to begin painting at
width - width of area to paint
height - height of area to paint

getOwnInsets

public oracle.bali.ewt.util.ImmInsets getOwnInsets(oracle.bali.ewt.painter.PaintContext context)
Return insets for current border.

Overrides:
getOwnInsets in class oracle.bali.ewt.painter.AbstractBorderPainter
Returns:
insets

setBorderSeparateSetting

public void setBorderSeparateSetting(boolean trueOrFalse)
Hidden


getBorderSeparateSetting

public boolean getBorderSeparateSetting()
Hidden


setBorderTopLineWidth

public void setBorderTopLineWidth(int width)
Hidden


setBorderLeftLineWidth

public void setBorderLeftLineWidth(int width)
Hidden


setBorderBottomLineWidth

public void setBorderBottomLineWidth(int width)
Hidden


setBorderRightLineWidth

public void setBorderRightLineWidth(int width)
Hidden


getBorderTopLineWidth

public int getBorderTopLineWidth()
Hidden


getBorderLeftLineWidth

public int getBorderLeftLineWidth()
Hidden


getBorderBottomLineWidth

public int getBorderBottomLineWidth()
Hidden


getBorderRightLineWidth

public int getBorderRightLineWidth()
Hidden


setBorderTopColor

public void setBorderTopColor(java.awt.Color color)
Hidden


setBorderLeftColor

public void setBorderLeftColor(java.awt.Color color)
Hidden


setBorderBottomColor

public void setBorderBottomColor(java.awt.Color color)
Hidden


setBorderRightColor

public void setBorderRightColor(java.awt.Color color)
Hidden


getBorderTopColor

public java.awt.Color getBorderTopColor()
Hidden


getBorderLeftColor

public java.awt.Color getBorderLeftColor()
Hidden


getBorderBottomColor

public java.awt.Color getBorderBottomColor()
Hidden


getBorderRightColor

public java.awt.Color getBorderRightColor()
Hidden


isBorderTransparent

protected boolean isBorderTransparent(oracle.bali.ewt.painter.PaintContext context)
Returns true if border itself is transparent.

Specified by:
isBorderTransparent in class oracle.bali.ewt.painter.AbstractBorderPainter
Parameters:
context - PaintContext to use when determining transparency.
Returns:
true if this BorderPainter is transparent.

Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1)

E12063-04

Copyright © 1997, 2010, Oracle. All rights reserved.