Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


oracle.javatools.editor.highlight
Class ZigZagLinePainter

java.lang.Object
  extended by oracle.javatools.editor.highlight.SimpleLinePainter
      extended by oracle.javatools.editor.highlight.ZigZagLinePainter

All Implemented Interfaces:
UnderlinePainter

public class ZigZagLinePainter
extends SimpleLinePainter

The ZigZagLinePainter is an implementation of the UnderlinePainter which paints a zigzag underline or separator of a given thickness..


Field Summary
static int MIN_THICKNESS
          The minimum thickness that can be specified to the zigzag painter

 

Fields inherited from class oracle.javatools.editor.highlight.SimpleLinePainter
_thickness, _underlineType, MAX_THICKNESS

 

Fields inherited from interface oracle.javatools.editor.highlight.UnderlinePainter
TYPE_SEPARATOR, TYPE_STRIKETHRU, TYPE_UNDERLINE

 

Constructor Summary
ZigZagLinePainter(int thickness, int underlineType)
          Constructs a new ZigZagLinePainter of the specified thickness.

 

Method Summary
 void paintUnderline(java.awt.Graphics graphics, java.awt.Color color, int xPos, int width, int yTop, int yBaseline, int descent)
          Paints the underline using this implementation of the UnderlinePainter.

 

Methods inherited from class oracle.javatools.editor.highlight.SimpleLinePainter
getUnderlineType, getYPos

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

MIN_THICKNESS

public static final int MIN_THICKNESS
The minimum thickness that can be specified to the zigzag painter
See Also:
Constant Field Values

Constructor Detail

ZigZagLinePainter

public ZigZagLinePainter(int thickness,
                         int underlineType)
Constructs a new ZigZagLinePainter of the specified thickness. Any thickness less than MIN_THICKNESS will be automatically increased.
Parameters:
thickness - the thickness of the line to paint
underlineType - the type of underline, such as TYPE_SEPARATOR

Method Detail

paintUnderline

public void paintUnderline(java.awt.Graphics graphics,
                           java.awt.Color color,
                           int xPos,
                           int width,
                           int yTop,
                           int yBaseline,
                           int descent)
Paints the underline using this implementation of the UnderlinePainter.
Specified by:
paintUnderline in interface UnderlinePainter
Overrides:
paintUnderline in class SimpleLinePainter
Parameters:
graphics - the graphics context to paint into
color - the color to use for painting the underline
xPos - the x position to start painting from
width - the width of the underline to paint
yTop - the y position of the top of the text
yBaseline - the y position of the baseline of the text we are drawing an underline for
descent - the descent of the font the text was drawn with

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


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