public class IlvMapGeneralPath extends IlvGeneralPath implements IlvMapGraphic
IlvMapGeneralPath
is an IlvGeneralPath
that accepts an IlvGeneralPathStyle
to define its graphical
attributes.Constructor and Description |
---|
IlvMapGeneralPath()
Constructs an
IlvMapGeneralPath instance. |
IlvMapGeneralPath(IlvInputStream stream)
Reads an
IlvMapGeneralPath instance from an
IlvInputStream . |
IlvMapGeneralPath(IlvMapGeneralPath source)
Creates a new
IlvMapGeneralPath by copying an existing one. |
IlvMapGeneralPath(Shape shape)
Constructs an
IlvMapGeneralPath instance from a
Shape object. |
Modifier and Type | Method and Description |
---|---|
IlvGraphic |
copy()
Copies the objects.
|
IlvGraphic |
copy(IlvCoordinateTransformation transform)
Copies the element and applies the specified transformation to its coordinates.
|
void |
draw(Graphics g,
IlvTransformer t)
Draws the object.
|
Paint |
getFillPaint()
Retrieves the fill paint from the style.
|
float[] |
getLineStyle()
Retrieves the line style from the style.
|
Stroke |
getStroke()
Retrieves the stroke from the style.
|
Paint |
getStrokePaint()
Retrieves the stroke paint from the style.
|
double |
getStrokeWidth()
Retrieves the stroke width from the style.
|
IlvMapStyle |
getStyle()
Retrieves the
IlvMapStyle attached to this graphic. |
boolean |
isFillOn()
Retrieves the fill on from the style.
|
boolean |
isPaintAbsolute()
Retrieves the paint absolute from the style.
|
boolean |
isPaintZoomed()
Retrieves the paint zoomed from the style.
|
boolean |
isStrokeOn()
Retrieves the stroke on from the style.
|
IlvMapGeometry |
makeGeometry()
Returns an
IlvMapPolygon geometry instance. |
void |
setFillOn(boolean set)
Sets the fill on in the
IlvGeneralPathStyle . |
void |
setFillPaint(Paint paint)
Sets the fill paint in the
IlvGeneralPathStyle . |
void |
setLineStyle(float[] lineStyle)
Sets the line style in the
IlvGeneralPathStyle . |
void |
setPaintAbsolute(boolean set)
Sets the paint absolute in the
IlvGeneralPathStyle . |
void |
setPaintZoomed(boolean set)
Sets the paint zoomed in the
IlvGeneralPathStyle . |
void |
setStroke(Stroke stroke)
Sets the stroke in the
IlvGeneralPathStyle . |
void |
setStrokeOn(boolean set)
Sets the stroke on in the
IlvGeneralPathStyle . |
void |
setStrokePaint(Paint paint)
Sets the stroke paint in the
IlvGeneralPathStyle . |
void |
setStrokeWidth(double width)
Sets the stroke width in the
IlvGeneralPathStyle . |
void |
setStyle(IlvMapStyle style)
Implements the
IlvMapGraphic interface. |
void |
write(IlvOutputStream stream)
Writes this
IlvMapGraphicPath object to the
IlvOutputStream passed as parameter |
adaptPaint, allowsPointInsertion, allowsPointMove, allowsPointRemoval, applyTransform, boundingBox, calcBoundingBox, contains, getAlpha, getApplyTransformer, getClip, getIntersectionWithOutline, getMaximumStrokeWidth, getOriginalShape, getPointAt, getPointsCardinal, getShape, getShapeBounds, getTransformer, insertPoint, isContainsWhenNotFilled, isPointEditionAllowed, isTransformedShapeMode, makeSelection, movePoint, moveResize, pointsInBBox, removePoint, resize, setAlpha, setBackground, setClip, setContainsWhenNotFilled, setForeground, setInternalShape, setMaximumStrokeWidth, setPointEditionAllowed, setShape, setShapeBounds, setTransformedShapeMode, setTransformer
addActionListener, addNamedPropertyListener, allViewsRemoved, baseTextDirectionChanged, blinkingStateOn, boundingBox, callDraw, componentOrientationChanged, getAndAssociateObjectInteractor, getBaseTextDirection, 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, isBaseTextDirectionSensitive, isComponentOrientationSensitive, isDataFlavorSupported, isEditable, isInApplyToObject, isLocaleSensitive, isMovable, isPersistent, isSelectable, isVisible, localeChanged, move, move, needsViewNotification, notifyObjectInteractorToManager, processActionEvent, reDraw, registerBlinkingResource, removeActionListener, removeNamedProperty, removeNamedPropertyListener, removeProperty, replaceProperty, rotate, scale, setBaseTextDirection, setBaseTextDirectionDuringConstruction, setBlinkingAction, setBlinkingOffPeriod, setBlinkingOnPeriod, setEditable, setGraphicBag, setInApplyToObject, setMovable, setName, setNamedProperty, setNameImpl, setObjectInteractor, setPopupMenu, setPopupMenuName, setProperty, setSelectable, setToolTipBaseTextDirection, setToolTipText, setVisible, setZOrderIndex, toString, translate, updateNeedsViewNotification, usesBidiMarkers, viewAddedOrRemoved, zoomable
public IlvMapGeneralPath()
IlvMapGeneralPath
instance.public IlvMapGeneralPath(IlvMapGeneralPath source)
IlvMapGeneralPath
by copying an existing one.source
- The IlvMapGeneralPath
to copy.public IlvMapGeneralPath(IlvInputStream stream) throws IlvReadFileException
IlvMapGeneralPath
instance from an
IlvInputStream
.stream
- The stream to read from.IlvReadFileException
- if there is a problem reading from
stream
.public IlvMapGeneralPath(Shape shape)
IlvMapGeneralPath
instance from a
Shape
object.shape
- The Shape
.public void write(IlvOutputStream stream) throws IOException
IlvMapGraphicPath
object to the
IlvOutputStream
passed as parameterwrite
in interface IlvPersistentObject
write
in class IlvGeneralPath
stream
- The stream to write to.IOException
- if there is a problem writing to stream
.public Paint getFillPaint()
getFillPaint
in class IlvGeneralPath
IlvGeneralPathStyle
.IlvGeneralPath.setFillPaint(java.awt.Paint)
public void setFillPaint(Paint paint)
IlvGeneralPathStyle
.setFillPaint
in class IlvGeneralPath
paint
- The fill paint to be set in the
IlvGeneralPathStyle
.IlvGeneralPath.getFillPaint()
,
IlvGeneralPath.isFillOn()
public Paint getStrokePaint()
getStrokePaint
in class IlvGeneralPath
IlvGeneralPathStyle
.IlvGeneralPath.setStrokePaint(java.awt.Paint)
,
IlvGeneralPath.isStrokeOn()
,
IlvGeneralPath.setStroke(java.awt.Stroke)
public void setStrokePaint(Paint paint)
IlvGeneralPathStyle
.setStrokePaint
in class IlvGeneralPath
paint
- The stroke paint to be set in the <
code>IlvGeneralPathStyle.IlvGeneralPath.getStrokePaint()
,
IlvGeneralPath.isStrokeOn()
,
IlvGeneralPath.setStroke(java.awt.Stroke)
public void setPaintAbsolute(boolean set)
IlvGeneralPathStyle
.setPaintAbsolute
in class IlvGeneralPath
set
- The paint absolute to be set in the
IlvGeneralPathStyle
.IlvGeneralPath.isPaintAbsolute()
,
IlvGeneralPath.setPaintZoomed(boolean)
,
IlvGeneralPath.setFillPaint(java.awt.Paint)
,
IlvGeneralPath.setStrokePaint(java.awt.Paint)
,
IlvGeneralPath.adaptPaint(java.awt.Shape, java.awt.Paint)
public boolean isPaintAbsolute()
isPaintAbsolute
in class IlvGeneralPath
IlvGeneralPathStyle
.IlvGeneralPath.setPaintAbsolute(boolean)
,
IlvGeneralPath.setPaintZoomed(boolean)
,
IlvGeneralPath.setFillPaint(java.awt.Paint)
,
IlvGeneralPath.setStrokePaint(java.awt.Paint)
,
IlvGeneralPath.adaptPaint(java.awt.Shape, java.awt.Paint)
public double getStrokeWidth()
IlvGeneralPathStyle
.public float[] getLineStyle()
IlvGeneralPathStyle
.public void draw(Graphics g, IlvTransformer t)
draw
in class IlvGeneralPath
g
- The destination Graphics
instance.t
- The transformation used to draw the object.IlvGeneralPath.draw(java.awt.Graphics, ilog.views.IlvTransformer)
public void setStrokeWidth(double width)
IlvGeneralPathStyle
.width
- The stroke width to be set in the
IlvGeneralPathStyle
.public void setLineStyle(float[] lineStyle)
IlvGeneralPathStyle
.lineStyle
- The line style to be set in the IlvGeneralPathStyle
object.public void setPaintZoomed(boolean set)
IlvGeneralPathStyle
.setPaintZoomed
in class IlvGeneralPath
set
- The paint zoomed value to be set in the
IlvGeneralPathStyle
.IlvGeneralPath.isPaintZoomed()
,
IlvGeneralPath.setFillPaint(java.awt.Paint)
,
IlvGeneralPath.setStrokePaint(java.awt.Paint)
public boolean isPaintZoomed()
isPaintZoomed
in class IlvGeneralPath
IlvGeneralPathStyle
.IlvGeneralPath.setPaintZoomed(boolean)
,
IlvGeneralPath.setFillPaint(java.awt.Paint)
,
IlvGeneralPath.setStrokePaint(java.awt.Paint)
public void setStrokeOn(boolean set)
IlvGeneralPathStyle
.setStrokeOn
in class IlvGeneralPath
set
- The stroke on to be set in the IlvGeneralPathStyle
.IlvGeneralPath.setStroke(java.awt.Stroke)
,
IlvGeneralPath.setStrokePaint(java.awt.Paint)
,
IlvGeneralPath.isStrokeOn()
public boolean isStrokeOn()
isStrokeOn
in class IlvGeneralPath
IlvGeneralPathStyle
.IlvGeneralPath.setStroke(java.awt.Stroke)
,
IlvGeneralPath.setStrokePaint(java.awt.Paint)
,
IlvGeneralPath.setStrokeOn(boolean)
public void setFillOn(boolean set)
IlvGeneralPathStyle
.setFillOn
in class IlvGeneralPath
set
- The fill on to be set in the IlvGeneralPathStyle
.IlvGeneralPath.isFillOn()
,
IlvGeneralPath.setFillPaint(java.awt.Paint)
public boolean isFillOn()
isFillOn
in class IlvGeneralPath
IlvGeneralPathStyle
.IlvGeneralPath.setFillPaint(java.awt.Paint)
,
IlvGeneralPath.setFillOn(boolean)
public Stroke getStroke()
getStroke
in class IlvGeneralPath
IlvGeneralPathStyle
.IlvGeneralPath.getStrokePaint()
,
IlvGeneralPath.setStroke(java.awt.Stroke)
,
IlvGeneralPath.isStrokeOn()
public void setStroke(Stroke stroke)
IlvGeneralPathStyle
.setStroke
in class IlvGeneralPath
stroke
- The stroke to be set in the IlvGeneralPathStyle
.IlvGeneralPath.getStrokePaint()
,
IlvGeneralPath.getStroke()
,
IlvGeneralPath.isStrokeOn()
public IlvMapStyle getStyle()
IlvMapStyle
attached to this graphic.getStyle
in interface IlvMapGraphic
IlvMapStyle
attached to this graphic.public void setStyle(IlvMapStyle style)
IlvMapGraphic
interface.setStyle
in interface IlvMapGraphic
style
- The IlvMapStyle
to set.
Must be a IlvGeneralPathStyle
instance.public IlvGraphic copy()
copy
in class IlvGeneralPath
IlvMapGeneralPath
instance.IlvGraphic
public IlvGraphic copy(IlvCoordinateTransformation transform) throws IlvCoordinateTransformationException
copy
in interface IlvMapGraphic
transform
- Transformation to apply.IlvCoordinateTransformationException
IlvMapGraphic.copy(ilog.views.maps.srs.coordtrans.IlvCoordinateTransformation)
public IlvMapGeometry makeGeometry()
IlvMapPolygon
geometry instance.makeGeometry
in interface IlvMapGraphic
IlvMapGraphic.makeGeometry()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.