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
-
firstDraw
- If true the PresentationStateTextObject has not been drawn..
-
mustRedraw
- Indicates that the PresentationStateTextObject must redraw.
-
needAnchorPoint
- If true the PresentationStateTextObject need a anchor point.
-
needBox
- If true the PresentationStateTextObject need a bounding box.
-
neededAnchorIsDisplayRelative
- If true the needed anchor point is display relative.
-
neededAnchorVisible
- If true the needed anchor point is visible.
-
neededBoxIsDisplayRelative
- If true the needed bounding box is display relative.
-
Viewer.Presentation.PresentationStateTextObject()
- Constructs a new PresentationStateTextObject.
-
Viewer.Presentation.PresentationStateTextObject(jDVPSTextObject, int)
- Constructs an PresentationStateTextObject form the specified jDVPSTextObject.
-
Viewer.Presentation.PresentationStateTextObject(jDVPSTextObject, int, Dimension, boolean, boolean, boolean, boolean, boolean)
- Constructs a new PresentationStateTextObject and sets the specified attributs
in the jDVPSTextObject.
-
anchorPointIsVisible()
- Checks if the anchor point is visible.
-
contains(Point2D. Float)
- Check if this object contains the specified point.
-
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.
-
convertAnchorToDisplayRelative()
- Converts an image relative anchor point to display relative.
-
convertAnchorToImageRelative()
- Converts a display relative anchor point to an image relative.
-
convertBoxToDisplayRelative()
- Converts an image relative bounding box to display relative.
-
convertBoxToImageRelative()
- Converts a display relative bounding box to image relative.
-
deleteAll()
- Deltes the object.
-
draw(Graphics2D, AffineTransform)
- Draws the PresentationStateTextObject with the specified
transformation in the specified Graphics2d object.
-
drawBounding(Graphics2D, AffineTransform)
- Marked the PresentationStateTextObject with Rectangles and draws
them in the specified Graphics2D context.
-
drawMarked(Graphics2D, AffineTransform)
- Marked the PresentationStateTextObject with Rectangles and draws
them in the specified Graphics2D context.
-
getAnchorPointAnnotationUnits()
- Returns the annotation units of the anchor point.
-
getAnchorPoint_x()
- Returns the x value of the anchor point.
-
getAnchorPoint_y()
- Returns the y value of the anchor point.
-
getBoundingBoxAnnotationUnits()
- Returns the annotation units of the bounding box
-
getBoundingBoxBRHC()
- Returns the bottom right hand corner of the bounding box.
-
getBoundingBoxBRHC_x()
- Returns the x value of the bottom right hand corner of the bounding box.
-
getBoundingBoxBRHC_y()
- Returns the y value of the bottom right hand corner of the bounding box.
-
getBoundingBoxTLHC()
- Returns the the top left hand corner of the bounding box.
-
getBoundingBoxTLHC_x()
- Returns the x value of the top left hand corner of the bounding box.
-
getBoundingBoxTLHC_y()
- Returns the x value of the top left hand corner of the bounding box.
-
getInfo()
- Returns a String representing this object.
-
getListText()
- Returns a String representing this object.
-
getTextValue()
- Checks if the annotation has an anchor point.
-
haveAnchorPoint()
- Checks if the annotation has an anchor point.
-
haveBoundingBox()
- Checks if the annotation has bounding box
-
moveTo(Point2D. Float, Point2D. Float)
- Not implemented yet.
-
removeAnchorPoint()
- Removes the anchor point form the PresentationStateTextObject.
-
removeBoundingBox()
- Removes the bounding box form the PresentationStateTextObject.
-
setAnchorPoint(double, double)
- Sets a new anchor point.
-
setAnchorPointVisible(boolean)
- Sets the anchor point visible /unvisible
-
setBoundingBox(double, double, double, double, int)
- Sets a new bounding box.
-
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.
-
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.
-
setNewValues(String)
- Sets a new text value to the PresentationStateTextObject.
-
setScreenSize(Dimension)
- Sets a new size for displaying the image.
firstDraw
public boolean firstDraw
- If true the PresentationStateTextObject has not been drawn..
- Since:
30.04.1999
mustRedraw
public boolean mustRedraw
- Indicates that the PresentationStateTextObject must redraw.
- Since:
30.04.1999
needAnchorPoint
public boolean needAnchorPoint
- If true the PresentationStateTextObject need a anchor point.
- Since:
30.04.1999
needBox
public boolean needBox
- If true the PresentationStateTextObject need a bounding box.
- Since:
30.04.1999
neededAnchorIsDisplayRelative
public boolean neededAnchorIsDisplayRelative
- If true the needed anchor point is display relative.
- Since:
30.04.1999
neededAnchorVisible
public boolean neededAnchorVisible
- If true the needed anchor point is visible.
- Since:
30.04.1999
neededBoxIsDisplayRelative
public boolean neededBoxIsDisplayRelative
- If true the needed bounding box is display relative.
- Since:
30.04.1999
PresentationStateTextObject
public PresentationStateTextObject()
- Constructs a new PresentationStateTextObject.
- Since:
- 30.04.1999
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
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
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
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
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
convertAnchorToDisplayRelative
public void convertAnchorToDisplayRelative()
- Converts an image relative anchor point to display relative.
- Since:
- 30.04.1999
convertAnchorToImageRelative
public void convertAnchorToImageRelative()
- Converts a display relative anchor point to an image relative.
- Since:
- 30.04.1999
convertBoxToDisplayRelative
public void convertBoxToDisplayRelative()
- Converts an image relative bounding box to display relative.
- Since:
- 30.04.1999
convertBoxToImageRelative
public void convertBoxToImageRelative()
- Converts a display relative bounding box to image relative.
- Since:
- 30.04.1999
deleteAll
public void deleteAll()
- Deltes the object.
- Overrides:
- deleteAll in class PresentationStateLayerObject
- Since:
- 30.04.1999
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
removeAnchorPoint
public void removeAnchorPoint()
- Removes the anchor point form the PresentationStateTextObject.
- Since:
- 30.04.1999
- See Also:
- removeBoundingBox
removeBoundingBox
public void removeBoundingBox()
- Removes the bounding box form the PresentationStateTextObject.
- Since:
- 30.04.1999
- See Also:
- removeBoundingBox
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
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
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
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
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
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
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