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

Quick Search    Search Deep

ch.laoe.ui
Class GGraphicObjects  view GGraphicObjects download GGraphicObjects.java

java.lang.Object
  extended bych.laoe.ui.GGraphicObjects

public class GGraphicObjects
extends java.lang.Object

This file is part of LAoE. LAoE is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. LAoE is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with LAoE; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Class: GGraphicObjects Autor: olivier gäumann, neuchâtel (switzerland) JDK: 1.3 Desctription: utility to draw pure graphic objects onto a channel. these objects have no special relations to the samples, they are just for graphical documentation. mouse action table in pen-mode: --------------------------------------------------------- press-drag-release click --------------------------------------------------------- - draw - shift - append a line ctrl - - --------------------------------------------------------- mouse action table in rubber-mode: --------------------------------------------------------- press-drag-release click --------------------------------------------------------- - erase near objects - shift - - ctrl - - --------------------------------------------------------- mouse action table in text-mode: --------------------------------------------------------- press-drag-release click --------------------------------------------------------- - move text place a new text shift - - ctrl - - --------------------------------------------------------- History: Date: Description: Autor: 07.05.2003 first draft oli4


Nested Class Summary
private  class GGraphicObjects.GrLine
           
private  class GGraphicObjects.GrObject
           
private  class GGraphicObjects.GrPoint
           
private  class GGraphicObjects.GrRectangle
           
private  class GGraphicObjects.GrText
           
 
Field Summary
private  java.awt.Cursor actualCursor
           
private  ch.laoe.clip.AChannel channel
           
private  ch.laoe.clip.AChannelPlotter channelPlotter
           
private  java.awt.Color currentColor
           
private  GGraphicObjects.GrObject currentObject
           
private  java.awt.Stroke currentStroke
           
private  java.lang.String currentText
           
static int DRAW_LINE
           
static int DRAW_RECTANGLE
           
static int DRAW_TEXT
           
static int ERASE
           
private  java.awt.Cursor eraseCursor
           
private  java.util.List grObjects
           
private static java.lang.String nameSpace
           
static int NO
           
private  int oldDraggedX
           
private  int oldDraggedY
           
private  int operation
           
private  java.awt.Cursor penCursor
           
private  java.awt.Cursor textCursor
           
 
Constructor Summary
GGraphicObjects()
           
GGraphicObjects(GGraphicObjects o)
           
 
Method Summary
 void fromXmlElement(XmlInputStream is)
           
private  void initCursors()
           
private  void initGeometry()
           
private  void initOperation()
           
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseDragged(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseMoved(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
          mouse events
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void paintOntoClip(java.awt.Graphics2D g2d, java.awt.Rectangle rect)
           
 void setChannel(ch.laoe.clip.AChannel ch)
          set the layer-model
 void setCurrentColor(java.awt.Color c)
           
 void setCurrentStroke(java.awt.Stroke s)
           
 void setCurrentText(java.lang.String text)
           
 void setOperation(int o)
           
 void toXmlElement(XmlOutputStream os)
           
private static void xmlAppendPointElement(XmlOutputStream os, GGraphicObjects.GrPoint p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nameSpace

private static final java.lang.String nameSpace
See Also:
Constant Field Values

grObjects

private java.util.List grObjects

currentObject

private GGraphicObjects.GrObject currentObject

penCursor

private java.awt.Cursor penCursor

eraseCursor

private java.awt.Cursor eraseCursor

textCursor

private java.awt.Cursor textCursor

actualCursor

private java.awt.Cursor actualCursor

currentColor

private java.awt.Color currentColor

currentStroke

private java.awt.Stroke currentStroke

channel

private ch.laoe.clip.AChannel channel

channelPlotter

private ch.laoe.clip.AChannelPlotter channelPlotter

operation

private int operation

NO

public static final int NO
See Also:
Constant Field Values

DRAW_LINE

public static final int DRAW_LINE
See Also:
Constant Field Values

DRAW_RECTANGLE

public static final int DRAW_RECTANGLE
See Also:
Constant Field Values

DRAW_TEXT

public static final int DRAW_TEXT
See Also:
Constant Field Values

ERASE

public static final int ERASE
See Also:
Constant Field Values

currentText

private java.lang.String currentText

oldDraggedX

private int oldDraggedX

oldDraggedY

private int oldDraggedY
Constructor Detail

GGraphicObjects

public GGraphicObjects()

GGraphicObjects

public GGraphicObjects(GGraphicObjects o)
Method Detail

xmlAppendPointElement

private static void xmlAppendPointElement(XmlOutputStream os,
                                          GGraphicObjects.GrPoint p)
                                   throws java.io.IOException

toXmlElement

public void toXmlElement(XmlOutputStream os)
                  throws java.io.IOException

fromXmlElement

public void fromXmlElement(XmlInputStream is)
                    throws java.io.IOException

initGeometry

private void initGeometry()

initCursors

private void initCursors()

setCurrentColor

public void setCurrentColor(java.awt.Color c)

setCurrentStroke

public void setCurrentStroke(java.awt.Stroke s)

setChannel

public void setChannel(ch.laoe.clip.AChannel ch)
set the layer-model


paintOntoClip

public void paintOntoClip(java.awt.Graphics2D g2d,
                          java.awt.Rectangle rect)

initOperation

private void initOperation()

setOperation

public void setOperation(int o)

setCurrentText

public void setCurrentText(java.lang.String text)

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
mouse events


mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)