Class Viewer.Presentation.PresentationStateTextObject
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Viewer.Presentation.PresentationStateTextObject

Object
   |
   +----PresentationStateLayerObject
           |
           +----PresentationStateAnnotationObject
                   |
                   +----Viewer.Presentation.PresentationStateTextObject

public class PresentationStateTextObject
extends PresentationStateAnnotationObject
This class handles the text annoations. This class implementing only the GUI-based methods, the data are stored in the c++ interface jDVPSTextObject. Every PresentationStateTextObject must have one jDVPSTextObject which stores the data of a text annotation.
Each jDVPSTextObject has an index in the jDVPresentationState, this index must be the same as the index in this class ( defined in the super class PresentationStateLayerObject).

Author:
Klaus Kleber
Since:
30.04.1999
See Also:
PresentationStateAnnotatonObject, PresentationStateLayerObject, jDVPSTextObject

Variable Index

 o firstDraw
If true the PresentationStateTextObject has not been drawn..
 o mustRedraw
Indicates that the PresentationStateTextObject must redraw.
 o needAnchorPoint
If true the PresentationStateTextObject need a anchor point.
 o needBox
If true the PresentationStateTextObject need a bounding box.
 o neededAnchorIsDisplayRelative
If true the needed anchor point is display relative.
 o neededAnchorVisible
If true the needed anchor point is visible.
 o neededBoxIsDisplayRelative
If true the needed bounding box is display relative.

Constructor Index

 o Viewer.Presentation.PresentationStateTextObject()
Constructs a new PresentationStateTextObject.
 o Viewer.Presentation.PresentationStateTextObject(jDVPSTextObject, int)
Constructs an PresentationStateTextObject form the specified jDVPSTextObject.
 o Viewer.Presentation.PresentationStateTextObject(jDVPSTextObject, int, Dimension, boolean, boolean, boolean, boolean, boolean)
Constructs a new PresentationStateTextObject and sets the specified attributs in the jDVPSTextObject.

Method Index

 o anchorPointIsVisible()
Checks if the anchor point is visible.
 o contains(Point2D. Float)
Check if this object contains the specified point.
 o convert(int)
Converts the bounding box or the anchor point form image relative to display relative or vice versa.If units = 0, convert the bounding box, else convert the anchor point.
 o convertAnchorToDisplayRelative()
Converts an image relative anchor point to display relative.
 o convertAnchorToImageRelative()
Converts a display relative anchor point to an image relative.
 o convertBoxToDisplayRelative()
Converts an image relative bounding box to display relative.
 o convertBoxToImageRelative()
Converts a display relative bounding box to image relative.
 o deleteAll()
Deltes the object.
 o draw(Graphics2D, AffineTransform)
Draws the PresentationStateTextObject with the specified transformation in the specified Graphics2d object.
 o drawBounding(Graphics2D, AffineTransform)
Marked the PresentationStateTextObject with Rectangles and draws them in the specified Graphics2D context.
 o drawMarked(Graphics2D, AffineTransform)
Marked the PresentationStateTextObject with Rectangles and draws them in the specified Graphics2D context.
 o getAnchorPointAnnotationUnits()
Returns the annotation units of the anchor point.
 o getAnchorPoint_x()
Returns the x value of the anchor point.
 o getAnchorPoint_y()
Returns the y value of the anchor point.
 o getBoundingBoxAnnotationUnits()
Returns the annotation units of the bounding box
 o getBoundingBoxBRHC()
Returns the bottom right hand corner of the bounding box.
 o getBoundingBoxBRHC_x()
Returns the x value of the bottom right hand corner of the bounding box.
 o getBoundingBoxBRHC_y()
Returns the y value of the bottom right hand corner of the bounding box.
 o getBoundingBoxTLHC()
Returns the the top left hand corner of the bounding box.
 o getBoundingBoxTLHC_x()
Returns the x value of the top left hand corner of the bounding box.
 o getBoundingBoxTLHC_y()
Returns the x value of the top left hand corner of the bounding box.
 o getInfo()
Returns a String representing this object.
 o getListText()
Returns a String representing this object.
 o getTextValue()
Checks if the annotation has an anchor point.
 o haveAnchorPoint()
Checks if the annotation has an anchor point.
 o haveBoundingBox()
Checks if the annotation has bounding box
 o moveTo(Point2D. Float, Point2D. Float)
Not implemented yet.
 o removeAnchorPoint()
Removes the anchor point form the PresentationStateTextObject.
 o removeBoundingBox()
Removes the bounding box form the PresentationStateTextObject.
 o setAnchorPoint(double, double)
Sets a new anchor point.
 o setAnchorPointVisible(boolean)
Sets the anchor point visible /unvisible
 o setBoundingBox(double, double, double, double, int)
Sets a new bounding box.
 o setNewAnchor(Graphics2D, Point2D. Float, AffineTransform)
Sets a new anchor point for an existing PresentationStateTextObject with the specified point and draw the PresentationStateTextObject in the specified Graphics2D context.
 o setNewBoundingBox(Graphics2D, Point2D. Float, AffineTransform)
Sets an exact new bounding box for an existing PresentationStateTextObject with the specified point on the top left hand coner and draw the PresentationStateTextObject in the specified Graphics2D context.
 o setNewValues(String)
Sets a new text value to the PresentationStateTextObject.
 o setScreenSize(Dimension)
Sets a new size for displaying the image.

Variables

 o firstDraw
public boolean firstDraw
If true the PresentationStateTextObject has not been drawn..

Since: 30.04.1999
 o mustRedraw
public boolean mustRedraw
Indicates that the PresentationStateTextObject must redraw.

Since: 30.04.1999
 o needAnchorPoint
public boolean needAnchorPoint
If true the PresentationStateTextObject need a anchor point.

Since: 30.04.1999
 o needBox
public boolean needBox
If true the PresentationStateTextObject need a bounding box.

Since: 30.04.1999
 o neededAnchorIsDisplayRelative
public boolean neededAnchorIsDisplayRelative
If true the needed anchor point is display relative.

Since: 30.04.1999
 o neededAnchorVisible
public boolean neededAnchorVisible
If true the needed anchor point is visible.

Since: 30.04.1999
 o neededBoxIsDisplayRelative
public boolean neededBoxIsDisplayRelative
If true the needed bounding box is display relative.

Since: 30.04.1999

Constructors

 o PresentationStateTextObject
public PresentationStateTextObject()
Constructs a new PresentationStateTextObject.

Since:
30.04.1999
 o PresentationStateTextObject
public PresentationStateTextObject(jDVPSTextObject textObject,
                                   int index)
Constructs an PresentationStateTextObject form the specified jDVPSTextObject.

Parameters:
textObject - Contains the data of the text annotation in a c++ interface.
index - Contains the index of the PresentationStateTextObject
Since:
30.04.1999
 o PresentationStateTextObject
public PresentationStateTextObject(jDVPSTextObject textObject,
                                   int index,
                                   Dimension screenSize,
                                   boolean needAnchorPoint,
                                   boolean needBox,
                                   boolean neededAnchorIsDisplayRelative,
                                   boolean neededBoxIsDisplayRelative,
                                   boolean neededAnchorVisible)
Constructs a new PresentationStateTextObject and sets the specified attributs in the jDVPSTextObject.

Parameters:
textObject - Contains the text annotation in a c++ interface.
index - Contains the index of the PresentationStateTextObject.
screenSize - Contains the size of the display for displaying the image.
needAnchorPoint - True if the new PresentationStateTextObject need an anchor point.
needBox - True if the new PresentationStateTextObject need a bounding box
neededAnchorIsDisplayRelative - True if the needed anchor point is display relative.
neededBoxIsDisplayRelative - True if the needed bounding box is display relative.
neededAnchorVisible - True if the needed anchor point is visible.
Since:
30.04.1999

Methods

 o anchorPointIsVisible
public boolean anchorPointIsVisible()
Checks if the anchor point is visible.

Returns:
True if the anchor point is visible.
Since:
30.04.1999
See Also:
anchorPointIsVisible
 o contains
public boolean contains(Point2D.Float point)
Check if this object contains the specified point.

Returns:
true if this object contains the specified point.
Overrides:
contains in class PresentationStateLayerObject
Since:
30.04.1999
 o convert
public void convert(int units)
Converts the bounding box or the anchor point form image relative to display relative or vice versa.If units = 0, convert the bounding box, else convert the anchor point.

Parameters:
units - If units = 0, convert the bounding box, else convert the anchor point.
Since:
30.04.1999
 o convertAnchorToDisplayRelative
public void convertAnchorToDisplayRelative()
Converts an image relative anchor point to display relative.

Since:
30.04.1999
 o convertAnchorToImageRelative
public void convertAnchorToImageRelative()
Converts a display relative anchor point to an image relative.

Since:
30.04.1999
 o convertBoxToDisplayRelative
public void convertBoxToDisplayRelative()
Converts an image relative bounding box to display relative.

Since:
30.04.1999
 o convertBoxToImageRelative
public void convertBoxToImageRelative()
Converts a display relative bounding box to image relative.

Since:
30.04.1999
 o deleteAll
public void deleteAll()
Deltes the object.

Overrides:
deleteAll in class PresentationStateLayerObject
Since:
30.04.1999
 o draw
public void draw(Graphics2D g2,
                 AffineTransform aff)
Draws the PresentationStateTextObject with the specified transformation in the specified Graphics2d object. The geometric representation of this obejct will be calculate.

Parameters:
g2 - The context in which this object will be drawn.
aff - Contains the applying transformation.
Overrides:
draw in class PresentationStateLayerObject
Since:
30.04.1999
 o drawBounding
public void drawBounding(Graphics2D g2,
                         AffineTransform aff)
Marked the PresentationStateTextObject with Rectangles and draws them in the specified Graphics2D context.

Parameters:
g2 - The context in which this object will be merked.
aff - Contains the applying transformation.
Overrides:
drawBounding in class PresentationStateLayerObject
Since:
30.04.1999
 o drawMarked
public void drawMarked(Graphics2D g2,
                       AffineTransform aff)
Marked the PresentationStateTextObject with Rectangles and draws them in the specified Graphics2D context. This function must be redesigned.

Parameters:
g2 - The graphics2d object in which the shape will be drawn.
aff - Contains the transformations which should be applied to the shape.
Overrides:
drawMarked in class PresentationStateLayerObject
Since:
30.04.1999
 o getAnchorPointAnnotationUnits
public int getAnchorPointAnnotationUnits()
Returns the annotation units of the anchor point.

Returns:
The annotation units of the anchor point.
Since:
30.04.1999
See Also:
getAnchorPointAnnotationUnits
 o getAnchorPoint_x
public double getAnchorPoint_x()
Returns the x value of the anchor point.

Returns:
The x value of the anchor point.
Since:
30.04.1999
See Also:
getAnchorPoint_x
 o getAnchorPoint_y
public double getAnchorPoint_y()
Returns the y value of the anchor point.

Returns:
The y value of the anchor point.
Since:
30.04.1999
See Also:
getAnchorPoint_y
 o getBoundingBoxAnnotationUnits
public int getBoundingBoxAnnotationUnits()
Returns the annotation units of the bounding box

Returns:
The annotation units of the bounding box
Since:
30.04.1999
See Also:
getBoundingBoxAnnotationUnits
 o getBoundingBoxBRHC
public java.awt.geom.Point2D getBoundingBoxBRHC()
Returns the bottom right hand corner of the bounding box.

Returns:
The bottom right hand corner of the bounding box.
Since:
30.04.1999
 o getBoundingBoxBRHC_x
public double getBoundingBoxBRHC_x()
Returns the x value of the bottom right hand corner of the bounding box.

Returns:
The x value of the bottom right hand corner of the bounding box.
Since:
30.04.1999
See Also:
getBoundingBoxBRHC_x
 o getBoundingBoxBRHC_y
public double getBoundingBoxBRHC_y()
Returns the y value of the bottom right hand corner of the bounding box.

Returns:
The y value of the bottom right hand corner of the bounding box.
Since:
30.04.1999
See Also:
getBoundingBoxBRHC_y
 o getBoundingBoxTLHC
public java.awt.geom.Point2D getBoundingBoxTLHC()
Returns the the top left hand corner of the bounding box.

Returns:
The the top left hand corner of the bounding box.
Since:
30.04.1999
 o getBoundingBoxTLHC_x
public double getBoundingBoxTLHC_x()
Returns the x value of the top left hand corner of the bounding box.

Returns:
The x value of the top left hand corner of the bounding box.
Since:
30.04.1999
See Also:
getBoundingBoxTLHC_x
 o getBoundingBoxTLHC_y
public double getBoundingBoxTLHC_y()
Returns the x value of the top left hand corner of the bounding box.

Returns:
The x value of the top left hand corner of the bounding box.
Since:
30.04.1999
See Also:
getBoundingBoxTLHC_x
 o getInfo
public java.lang.String getInfo()
Returns a String representing this object.

Returns:
A String representing this object
Overrides:
getInfo in class PresentationStateLayerObject
Since:
30.04.1999
 o getListText
public java.lang.String getListText()
Returns a String representing this object.

Returns:
A String representing this object.
Overrides:
getListText in class PresentationStateLayerObject
Since:
30.04.1999
 o getTextValue
public java.lang.String getTextValue()
Checks if the annotation has an anchor point.

Returns:
True if the annotation has an anchor point.
Since:
30.04.1999
See Also:
haveAnchorPoint
 o haveAnchorPoint
public boolean haveAnchorPoint()
Checks if the annotation has an anchor point.

Returns:
True if the annotation has an anchor point.
Since:
30.04.1999
See Also:
haveAnchorPoint
 o haveBoundingBox
public boolean haveBoundingBox()
Checks if the annotation has bounding box

Returns:
True if the annotation has bounding box
Since:
30.04.1999
See Also:
haveBoundingBox
 o moveTo
public void moveTo(Point2D.Float point,
                   Point2D.Float point1)
Not implemented yet.

Parameters:
point - Not implemented yet
point1 - Not implemented yet
Overrides:
moveTo in class PresentationStateLayerObject
Since:
30.04.1999
 o removeAnchorPoint
public void removeAnchorPoint()
Removes the anchor point form the PresentationStateTextObject.

Since:
30.04.1999
See Also:
removeBoundingBox
 o removeBoundingBox
public void removeBoundingBox()
Removes the bounding box form the PresentationStateTextObject.

Since:
30.04.1999
See Also:
removeBoundingBox
 o setAnchorPoint
public void setAnchorPoint(double tlhc_x,
                           double tlhc_y)
Sets a new anchor point.

Parameters:
tlhc_x - X value of the anchor point.
tlhc_y - Y value of the anchor point.
Since:
30.04.1999
See Also:
setBoundingBox
 o setAnchorPointVisible
public void setAnchorPointVisible(boolean isVisible)
Sets the anchor point visible /unvisible

Parameters:
isVisible - True if the anchor point must be visible.
Since:
30.04.1999
See Also:
setAnchorPoint
 o setBoundingBox
public void setBoundingBox(double tlhc_x,
                           double tlhc_y,
                           double brhc_x,
                           double brhc_y,
                           int ann)
Sets a new bounding box.

Parameters:
tlhc_x - X value of the top left hand coner of the box
tlhc_y - y value of the top left hand coner of the box.
brhc_x - X value of the botton right hand coner of the box.
brhc_y - Y value of the botton right hand coner of the box.
ann - Contains the annotation units of the bounding box.
Since:
30.04.1999
See Also:
setBoundingBox
 o setNewAnchor
public void setNewAnchor(Graphics2D g2,
                         Point2D.Float point,
                         AffineTransform aff)
Sets a new anchor point for an existing PresentationStateTextObject with the specified point and draw the PresentationStateTextObject in the specified Graphics2D context.

Parameters:
g2 - Contains Graphics2D context.
point - Contains point of the anchor point.
aff - Contains the applying transformation
Since:
30.04.1999
See Also:
setAnchorPoint
 o setNewBoundingBox
public void setNewBoundingBox(Graphics2D g2,
                              Point2D.Float point,
                              AffineTransform aff)
Sets an exact new bounding box for an existing PresentationStateTextObject with the specified point on the top left hand coner and draw the PresentationStateTextObject in the specified Graphics2D context.

Parameters:
g2 - Contains Graphics2D context.
point - Contains the top left hand coner of the new bonding box.
aff - Contains the applying transformation
Since:
30.04.1999
See Also:
setBoundingBox
 o setNewValues
public void setNewValues(String newText)
Sets a new text value to the PresentationStateTextObject.

Parameters:
newText - Specifies the new Text.
Since:
30.04.1999
See Also:
setText
 o setScreenSize
public void setScreenSize(Dimension screenSize)
Sets a new size for displaying the image.

Parameters:
screenSize - The new size for displaying the image.
Overrides:
setScreenSize in class PresentationStateAnnotationObject
Since:
30.04.1999

All Packages  Class Hierarchy  This Package  Previous  Next  Index