ch.laoe.ui
Class GGraphicObjects

java.lang.Object
ch.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
GGraphicObjects
public GGraphicObjects()
GGraphicObjects
public GGraphicObjects(GGraphicObjects o)
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)