drawables
Class DrawablePolyline

java.lang.Object
  |
  +--drawables.Drawable
        |
        +--drawables.FilledDrawable
              |
              +--drawables.DrawablePolygon
                    |
                    +--drawables.DrawablePolyline
All Implemented Interfaces:
EntryReadable, java.io.Serializable

public class DrawablePolyline
extends DrawablePolygon

Class for drawable lines.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class drawables.DrawablePolygon
num, outX, outY, xCoords, yCoords
 
Fields inherited from class drawables.FilledDrawable
filled
 
Fields inherited from class drawables.Drawable
AREALAYER, BITMAPLAYER, container, DEFMAXSCALE, DEFMINSCALE, layer, LINELAYER, maxScale, mbr, minScale, nextOfLayer, obj, POINTLAYER, pres, selected, TEXTLAYER
 
Constructor Summary
protected DrawablePolyline()
          Konstruktor.
  DrawablePolyline(int[] xpoints, int[] ypoints, int npoints, java.lang.String presName)
          Konstruktor; VERALTET!
  DrawablePolyline(int npoints, int[] xpoints, int[] ypoints)
          Konstruktor.
  DrawablePolyline(int npoints, int[] xpoints, int[] ypoints, java.lang.String presName)
          Konstruktor.
  DrawablePolyline(int npoints, int[] xpoints, int[] ypoints, java.lang.String presName, int minScale, int maxScale)
          Konstruktor.
 
Method Summary
protected  void drawProtected(java.awt.Graphics g, int scale, int mode, int value)
          Zeichnet den Linienzug im Graphic Context g, vorausgesetzt der aktuelle Maßstab wird eingehalten.
 boolean interacts(int x, int y, int scale)
          Tests whether the primitive is selected by a given point or not.
 void writeGML(EntryWriter out)
          Writes the primitive as GML tag.
 
Methods inherited from class drawables.DrawablePolygon
computeMBR, getNumberOfPoints, read, read, write, writeProtected
 
Methods inherited from class drawables.FilledDrawable
isFilled, setFilling
 
Methods inherited from class drawables.Drawable
computeDistance, computeDistanceTo, contains, draw, draw, draw, draw, getContainer, getId, getLayer, getMaxScale, getMBR, getMinScale, getNextOfLayer, getObject, getPresentation, getPresentation, getType, intersects, intersects, intersects, isContainedBy, isVisible, readCoord, readCoord, readDrawable, readDrawable, setContainer, setLayer, setMaxScale, setMBR, setMinScale, setNextOfLayer, setObject, setPresentation, setSelection, toString, write, writeCoord, writeCoord
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DrawablePolyline

protected DrawablePolyline()
Konstruktor.


DrawablePolyline

public DrawablePolyline(int[] xpoints,
                        int[] ypoints,
                        int npoints,
                        java.lang.String presName)
Konstruktor; VERALTET!.


DrawablePolyline

public DrawablePolyline(int npoints,
                        int[] xpoints,
                        int[] ypoints)
Konstruktor.

Parameters:
npoints - Anzahl der Punkte
xpoints - Array mit x-Koordinaten (wird nicht kopiert!)
ypoints - Array mit y-Koordinaten (wird nicht kopiert!)

DrawablePolyline

public DrawablePolyline(int npoints,
                        int[] xpoints,
                        int[] ypoints,
                        java.lang.String presName)
Konstruktor.

Parameters:
npoints - Anzahl der Punkte
xpoints - Array mit x-Koordinaten (wird nicht kopiert!)
ypoints - Array mit y-Koordinaten (wird nicht kopiert!)
presName - Name des Darstellungsobjekts

DrawablePolyline

public DrawablePolyline(int npoints,
                        int[] xpoints,
                        int[] ypoints,
                        java.lang.String presName,
                        int minScale,
                        int maxScale)
Konstruktor.

Parameters:
npoints - Anzahl der Punkte
xpoints - Array mit x-Koordinaten (wird nicht kopiert!)
ypoints - Array mit y-Koordinaten (wird nicht kopiert!)
presName - Name des Darstellungsobjekts
minScale - Mindest-Maßstab zum Zeichnen
maxScale - Maximal-Maßstab zum Zeichnen
Method Detail

drawProtected

protected void drawProtected(java.awt.Graphics g,
                             int scale,
                             int mode,
                             int value)
Zeichnet den Linienzug im Graphic Context g, vorausgesetzt der aktuelle Maßstab wird eingehalten.

Overrides:
drawProtected in class DrawablePolygon
Parameters:
g - aktueller Graphic Context
scale - aktueller Maßstab
mode - aktueller Darstellungsmodus
value - Darstellungswert

interacts

public boolean interacts(int x,
                         int y,
                         int scale)
Description copied from class: Drawable
Tests whether the primitive is selected by a given point or not. The default implementation is based on the mbr of the primitive.

Overrides:
interacts in class Drawable
Parameters:
x - x-coordinate of the point
y - y-coordinate of the point
scale - actuals scale
Returns:
selected?

writeGML

public void writeGML(EntryWriter out)
Writes the primitive as GML tag.

Overrides:
writeGML in class DrawablePolygon
Parameters:
out - entry writer