Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jpicedt.graphic.model
Class Arrow  view Arrow download Arrow.java

java.lang.Object
  extended byjpicedt.graphic.model.Arrow
All Implemented Interfaces:
PicObjectConstants
Direct Known Subclasses:
Arrow.CircleCentered, Arrow.CircleFlushed, Arrow.DiskCentered, Arrow.DiskFlushed, Arrow.DoubleHead, Arrow.DoubleReverseHead, Arrow.Head, Arrow.None, Arrow.ReverseHead, Arrow.RoundedBracket, Arrow.SquareBracket, Arrow.TBarCentered, Arrow.TBarFlushed

public class Arrow
extends java.lang.Object
implements PicObjectConstants

a class implementing the arrow attribute.

Since:
jPicEdt 1.3.2

Nested Class Summary
(package private) static class Arrow.CircleCentered
           
(package private) static class Arrow.CircleFlushed
           
(package private) static class Arrow.DiskCentered
           
(package private) static class Arrow.DiskFlushed
           
(package private) static class Arrow.DoubleHead
           
(package private) static class Arrow.DoubleReverseHead
           
(package private) static class Arrow.Head
           
(package private) static class Arrow.None
           
(package private) static class Arrow.ReverseHead
           
(package private) static class Arrow.RoundedBracket
           
(package private) static class Arrow.SquareBracket
           
(package private) static class Arrow.TBarCentered
           
(package private) static class Arrow.TBarFlushed
           
 
Field Summary
static Arrow ARROW_HEAD
           
protected static double ARROW_INSET
           
protected static double ARROW_LENGTH
           
protected static double[] ARROW_SCALE
           
protected static double[] ARROW_SIZE
           
private static Arrow[] arrowArray
           
protected static double BRACKET_LENGTH
           
static Arrow CIRCLE_CENTERED
           
static Arrow CIRCLE_FLUSHED
           
static Arrow DISK_CENTERED
           
static Arrow DISK_FLUSHED
           
protected static double[] DOT_SIZE
           
static Arrow DOUBLE_ARROW_HEAD
           
static Arrow DOUBLE_REVERSE_ARROW_HEAD
           
private  java.lang.String name
           
static Arrow NONE
           
protected static double R_BRACKET_LENGTH
           
static Arrow REVERSE_ARROW_HEAD
           
static Arrow ROUNDED_BRACKET
           
private static double SCALE
           
static Arrow SQUARE_BRACKET
           
static Arrow T_BAR_CENTERED
           
static Arrow T_BAR_FLUSHED
           
protected static double[] TBAR_SIZE
           
 
Fields inherited from interface jpicedt.graphic.model.PicObjectConstants
CROSSHATCH, CROSSHATCH_FILLED, DASH_OPAQUE, DASH_TRANSPARENT, DASH1, DASH2, DASH3, DASHED, DIMEN, DOT_SEP, DOT_SEP1, DOT_SEP2, DOT_SEP3, DOTTED, DOUBLE_COLOR, DOUBLE_LINE, DOUBLE_SEP, FILL_COLOR, FILL_STYLE, HATCH_ANGLE, HATCH_COLOR, HATCH_SEP, HATCH_WIDTH, HLINES, HLINES_FILLED, INNER, LEFT_ARROW, LINE_COLOR, LINE_STYLE, LINE_WIDTH, MaxAttributeNameIndex, MIDDLE, OUTER, POLYGON_DOTS, POLYGON_SOLID, POLYGON_STYLE, PS_POINT, RIGHT_ARROW, SHADOW, SHADOW_ANGLE, SHADOW_COLOR, SHADOW_SIZE, SOLID, VLINES, VLINES_FILLED
 
Constructor Summary
protected Arrow(java.lang.String name)
           
 
Method Summary
static javax.swing.ImageIcon[] createArrowIcons(boolean rightArrow)
          build icons for e.g.
static Arrow getArrow(int indx)
           
static int getIndex(Arrow arrow)
           
static Arrow[] getPredefinedArrows()
           
static void main(java.lang.String[] arg)
           
 void paint(java.awt.Graphics2D g, double linewidth, double locX, double locY, jpicedt.graphic.PicPoint dir)
          paint this arrow (this implementation does nothing)
 void paint(java.awt.Graphics2D g, double linewidth, jpicedt.graphic.PicPoint loc, jpicedt.graphic.PicPoint dir)
          paint this arrow
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private java.lang.String name

NONE

public static final Arrow NONE

ARROW_HEAD

public static final Arrow ARROW_HEAD

REVERSE_ARROW_HEAD

public static final Arrow REVERSE_ARROW_HEAD

DOUBLE_ARROW_HEAD

public static final Arrow DOUBLE_ARROW_HEAD

DOUBLE_REVERSE_ARROW_HEAD

public static final Arrow DOUBLE_REVERSE_ARROW_HEAD

T_BAR_CENTERED

public static final Arrow T_BAR_CENTERED

T_BAR_FLUSHED

public static final Arrow T_BAR_FLUSHED

SQUARE_BRACKET

public static final Arrow SQUARE_BRACKET

ROUNDED_BRACKET

public static final Arrow ROUNDED_BRACKET

CIRCLE_FLUSHED

public static final Arrow CIRCLE_FLUSHED

CIRCLE_CENTERED

public static final Arrow CIRCLE_CENTERED

DISK_FLUSHED

public static final Arrow DISK_FLUSHED

DISK_CENTERED

public static final Arrow DISK_CENTERED

arrowArray

private static final Arrow[] arrowArray

SCALE

private static final double SCALE
See Also:
Constant Field Values

ARROW_SIZE

protected static final double[] ARROW_SIZE

ARROW_LENGTH

protected static final double ARROW_LENGTH
See Also:
Constant Field Values

ARROW_INSET

protected static final double ARROW_INSET
See Also:
Constant Field Values

TBAR_SIZE

protected static final double[] TBAR_SIZE

BRACKET_LENGTH

protected static final double BRACKET_LENGTH
See Also:
Constant Field Values

R_BRACKET_LENGTH

protected static final double R_BRACKET_LENGTH
See Also:
Constant Field Values

DOT_SIZE

protected static final double[] DOT_SIZE

ARROW_SCALE

protected static final double[] ARROW_SCALE
Constructor Detail

Arrow

protected Arrow(java.lang.String name)
Method Detail

getIndex

public static int getIndex(Arrow arrow)

getArrow

public static Arrow getArrow(int indx)

getPredefinedArrows

public static Arrow[] getPredefinedArrows()

createArrowIcons

public static javax.swing.ImageIcon[] createArrowIcons(boolean rightArrow)
build icons for e.g. ComboBoxlists from predefined arrows


main

public static void main(java.lang.String[] arg)

paint

public void paint(java.awt.Graphics2D g,
                  double linewidth,
                  jpicedt.graphic.PicPoint loc,
                  jpicedt.graphic.PicPoint dir)
paint this arrow


paint

public void paint(java.awt.Graphics2D g,
                  double linewidth,
                  double locX,
                  double locY,
                  jpicedt.graphic.PicPoint dir)
paint this arrow (this implementation does nothing)


toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).