public class IlvDefaultCollapsedGraphic extends IlvGeneralPath implements IlvLabelInterface
IlvManager.setCollapsedGraphic(ilog.views.IlvGraphic)
,
IlvManager.setCollapsed(boolean)
,
Serialized FormConstructor and Description |
---|
IlvDefaultCollapsedGraphic()
Creates the graphic object.
|
IlvDefaultCollapsedGraphic(IlvDefaultCollapsedGraphic origin)
Creates the graphic object by copying the specified one.
|
IlvDefaultCollapsedGraphic(IlvInputStream stream)
Reads the object from an
IlvInputStream . |
Modifier and Type | Method and Description |
---|---|
void |
applyTransform(IlvTransformer t)
Applies a transformation to the shape of the object.
|
void |
baseTextDirectionChanged(int oldBaseTextDirection,
int newBaseTextDirection)
Called when the object is base text direction sensitive and the
resolved base text direction has changed.
|
IlvRect |
boundingBox(IlvTransformer t)
Returns the bounding rectangle of the object.
|
boolean |
contains(IlvPoint p,
IlvPoint tp,
IlvTransformer t)
Tests if a point lies within the outline of the object.
|
IlvGraphic |
copy()
Copies the object.
|
void |
draw(Graphics g,
IlvTransformer t)
Draws the object.
|
int |
getBaseTextDirection()
Returns the base direction of the text in the label.
|
Font |
getFont()
Returns the font of the label.
|
IlvPoint |
getIntersectionWithOutline(IlvPoint innerPoint,
IlvPoint outerPoint,
IlvTransformer t)
Returns the intersection of the line segment from inner point to outer
point with the shape of the graphic object.
|
String |
getLabel()
Returns the label of the object.
|
IlvRect |
getLabelBBox(IlvTransformer t)
Returns the area where the label is displayed.
|
Paint |
getLabelFillPaint()
Returns the paint object used to fill the label.
|
boolean |
isBaseTextDirectionSensitive()
Returns
true if the bounding box of this object depends on
the base text direction of this object. |
void |
setBaseTextDirection(int baseTextDirection)
Changes the base direction of the text in the label.
|
void |
setFont(Font font)
Changes the font of the label.
|
void |
setLabel(String label)
Changes the label.
|
void |
setLabelFillPaint(Paint paint)
Changes the paint object used to fill
the label.
|
boolean |
supportMultiline()
Returns
true if the label can be a multi-line label;
false otherwise. |
boolean |
usesBidiMarkers()
Returns
true if in-place editing implementation uses markers,
which should be taken into account in hit-to-point and point-to-hit
calculations. |
void |
write(IlvOutputStream stream)
Writes the object to an
IlvOutputStream . |
adaptPaint, allowsPointInsertion, allowsPointMove, allowsPointRemoval, calcBoundingBox, getAlpha, getApplyTransformer, getClip, getFillPaint, getMaximumStrokeWidth, getOriginalShape, getPointAt, getPointsCardinal, getShape, getShapeBounds, getStroke, getStrokePaint, getTransformer, insertPoint, isContainsWhenNotFilled, isFillOn, isPaintAbsolute, isPaintZoomed, isPointEditionAllowed, isStrokeOn, isTransformedShapeMode, makeSelection, movePoint, moveResize, pointsInBBox, removePoint, resize, setAlpha, setBackground, setClip, setContainsWhenNotFilled, setFillOn, setFillPaint, setForeground, setInternalShape, setMaximumStrokeWidth, setPaintAbsolute, setPaintZoomed, setPointEditionAllowed, setShape, setShapeBounds, setStroke, setStrokeOn, setStrokePaint, setTransformedShapeMode, setTransformer
addActionListener, addNamedPropertyListener, allViewsRemoved, blinkingStateOn, boundingBox, callDraw, componentOrientationChanged, getAndAssociateObjectInteractor, getBlinkingAction, getBlinkingObjectOwner, getBlinkingOffPeriod, getBlinkingOnPeriod, getCenter, getComponentOrientation, getDefaultInteractor, getGraphicBag, GetGraphicObject, getLocale, getName, getNamedProperty, getObjectInteractor, getPopupMenu, getPopupMenu, getPopupMenuName, getProperty, getResolvedBaseTextDirection, getToolTipBaseTextDirection, getToolTipText, getToolTipText, getTopLevelGraphicBag, getTransferData, getTransferDataFlavors, getULocale, getZOrderIndex, hasProperty, inside, intersects, invalidateBBoxCache, invalidateBidiCache, isComponentOrientationSensitive, isDataFlavorSupported, isEditable, isInApplyToObject, isLocaleSensitive, isMovable, isPersistent, isSelectable, isVisible, localeChanged, move, move, needsViewNotification, notifyObjectInteractorToManager, processActionEvent, reDraw, registerBlinkingResource, removeActionListener, removeNamedProperty, removeNamedPropertyListener, removeProperty, replaceProperty, rotate, scale, setBaseTextDirectionDuringConstruction, setBlinkingAction, setBlinkingOffPeriod, setBlinkingOnPeriod, setEditable, setGraphicBag, setInApplyToObject, setMovable, setName, setNamedProperty, setNameImpl, setObjectInteractor, setPopupMenu, setPopupMenuName, setProperty, setSelectable, setToolTipBaseTextDirection, setToolTipText, setVisible, setZOrderIndex, toString, translate, updateNeedsViewNotification, viewAddedOrRemoved, zoomable
public IlvDefaultCollapsedGraphic()
public IlvDefaultCollapsedGraphic(IlvDefaultCollapsedGraphic origin)
origin
- The origin of the copy.public IlvDefaultCollapsedGraphic(IlvInputStream stream) throws IOException, IlvReadFileException
IlvInputStream
.stream
- The input stream.IlvReadFileException
- if the format is not correct.IOException
write(IlvOutputStream)
public IlvGraphic copy()
copy
in class IlvGeneralPath
IlvGeneralPath
.IlvGraphic
public void write(IlvOutputStream stream) throws IOException
IlvOutputStream
.write
in interface IlvPersistentObject
write
in class IlvGeneralPath
stream
- The output stream.IOException
- thrown when an exception occurs during
the write operation for this object.public void setLabel(String label)
setLabel
in interface IlvLabelInterface
label
- The new labelgetLabel()
public String getLabel()
getLabel
in interface IlvLabelInterface
setLabel(java.lang.String)
public boolean supportMultiline()
true
if the label can be a multi-line label;
false
otherwise.supportMultiline
in interface IlvLabelInterface
public IlvRect getLabelBBox(IlvTransformer t)
getLabelBBox
in interface IlvLabelInterface
t
- the transformer used to draw the graphic object.public void setFont(Font font)
font
- The new font.getFont()
public Font getFont()
setFont(java.awt.Font)
public void setLabelFillPaint(Paint paint)
IlvBlinkingPaint
.paint
- the new filling object.getLabelFillPaint()
public Paint getLabelFillPaint()
setLabelFillPaint(java.awt.Paint)
public void draw(Graphics g, IlvTransformer t)
draw
in class IlvGeneralPath
g
- The destination Graphics.t
- The transformation used to draw the object.IlvGraphic.callDraw(Graphics,IlvTransformer)
,
IlvGraphic.boundingBox(IlvTransformer)
,
IlvGraphic.zoomable()
,
IlvGraphic
public void applyTransform(IlvTransformer t)
applyTransform
in class IlvGeneralPath
t
- The transformer to be applied.IlvGeneralPath.setClip(java.awt.Shape)
public boolean contains(IlvPoint p, IlvPoint tp, IlvTransformer t)
contains
in class IlvGeneralPath
p
- The point to be tested.tp
- The point p
transformed by the transformer t
.t
- The transformation used to draw the object.true
if the point lies inside this graphic object.IlvGeneralPath.isContainsWhenNotFilled()
public IlvRect boundingBox(IlvTransformer t)
boundingBox
in interface IlvPolyPointsInterface
boundingBox
in class IlvGeneralPath
t
- The transformer used to draw the object.IlvGeneralPath.getShapeBounds(IlvTransformer)
public IlvPoint getIntersectionWithOutline(IlvPoint innerPoint, IlvPoint outerPoint, IlvTransformer t)
innerPoint
is not inside the graphic object,
or if outerPoint
is not outside the graphic object, it
must return a valid point. For instance, if there is no intersection,
it can return the start point.getIntersectionWithOutline
in class IlvGeneralPath
innerPoint
- A point usually inside the graphic object, given in
manager view coordinates.outerPoint
- A point usually outside of the graphic object, given in
manager view coordinates.t
- The transformation used to draw the object.IlvClippingLinkConnector
public void setBaseTextDirection(int baseTextDirection)
IlvBidiUtil.INHERITED_DIRECTION
:
the base text direction is inherited from the
graphic bag that contains this object.
If this object is not contained in a graphic bag,
the base text direction is calculated from the
component orientation.
IlvBidiUtil.COMPONENT_DIRECTION
:
the base text direction is calculated from the
component orientation.
IlvBidiUtil.LEFT_TO_RIGHT
:
the base text direction is left-to-right.
IlvBidiUtil.RIGHT_TO_LEFT
:
the base text direction is right-to-left.
IlvBidiUtil.CONTEXTUAL_DIRECTION
:
the base test direction is determined from the text
that is displayed according to the standard Bidi
algorithm, if the text contains at least one character
with a strong left-to-right or right-to-left direction.
If the text doesn't contain any character with a strong
direction, the real text direction is determined from
the current component orientation of the object.
setBaseTextDirection
in interface IlvBaseTextDirectionInterface
setBaseTextDirection
in class IlvGraphic
baseTextDirection
- The base text directionIlvGraphic.baseTextDirectionChanged(int, int)
public int getBaseTextDirection()
IlvBidiUtil.INHERITED_DIRECTION
:
the base text direction is inherited from the
graphic bag that contains this object.
If this object is not contained in a graphic bag,
the base text direction is calculated from the
component orientation.
IlvBidiUtil.COMPONENT_DIRECTION
:
the base text direction is calculated from the
component orientation.
IlvBidiUtil.LEFT_TO_RIGHT
:
the base text direction is left-to-right.
IlvBidiUtil.RIGHT_TO_LEFT
:
the base text direction is right-to-left.
IlvBidiUtil.CONTEXTUAL_DIRECTION
:
the base test direction is determined from the text
that is displayed according to the standard Bidi
algorithm, if the text contains at least one character
with a strong left-to-right or right-to-left direction.
If the text doesn't contain any character with a strong
direction, the real text direction is determined from
the current component orientation of the object.
getBaseTextDirection
in interface IlvBaseTextDirectionInterface
getBaseTextDirection
in class IlvGraphic
public boolean isBaseTextDirectionSensitive()
true
if the bounding box of this object depends on
the base text direction of this object.isBaseTextDirectionSensitive
in class IlvGraphic
public boolean usesBidiMarkers()
true
if in-place editing implementation uses markers,
which should be taken into account in hit-to-point and point-to-hit
calculations.usesBidiMarkers
in class IlvGraphic
public void baseTextDirectionChanged(int oldBaseTextDirection, int newBaseTextDirection)
baseTextDirectionChanged
in class IlvGraphic
oldBaseTextDirection
- Resolved base text direction of this object before the change.newBaseTextDirection
- Resolved base text direction of this object after the change.isBaseTextDirectionSensitive()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.