public class IlvCompositeGrapherPin extends IlvGrapherPin
IlvCompositeGrapherPin
is designed to be used with IlvCompositeGraphic
.
It connects a link to a child of an IlvCompositeGraphic
.IlvCompositeGraphic
,
Serialized FormConstructor and Description |
---|
IlvCompositeGrapherPin(IlvInputStream stream)
Reads the grapher pin from an IVL stream.
|
IlvCompositeGrapherPin(IlvPinLinkConnector connector,
String name,
IlvPoint offset)
Creates an
IlvCompositeGrapherPin instance. |
Modifier and Type | Method and Description |
---|---|
IlvPoint |
getPosition(IlvTransformer t)
Returns the position of the pin.
|
boolean |
isPersistent()
Always returns
true |
void |
write(IlvOutputStream stream)
Writes the grapher pin to an IVL stream.
|
allow, allowsMove, drawGhost, getColor, getNode, getPinLinkConnector, getSize, getType, isConnected, setPosition, zoomable
public IlvCompositeGrapherPin(IlvPinLinkConnector connector, String name, IlvPoint offset)
IlvCompositeGrapherPin
instance.connector
- The link connector where this pin is added.name
- This is the name of a child of the IlvCompositeGraphic
corresponding to this pin,
that is, the node returned by the method IlvLinkConnector.getNode()
called on this object.offset
- A relative position in the node's bounding rectangle. The values of offset.x
and offset.y
must be between -1
and 1
.IlvLinkConnector.getNode()
public IlvCompositeGrapherPin(IlvInputStream stream) throws IlvReadFileException, IOException
stream
- The input stream.IlvReadFileException
IOException
public void write(IlvOutputStream stream) throws IOException
write
in interface IlvPersistentObject
write
in class IlvGrapherPin
stream
- The output stream.IOException
- thrown when an exception occurs during
the write operation for this object.public IlvPoint getPosition(IlvTransformer t)
getPosition
in class IlvGrapherPin
t
- The transformer used to draw the node.IlvGrapherPin.setPosition(ilog.views.IlvPoint, ilog.views.IlvTransformer)
public boolean isPersistent()
true
isPersistent
in class IlvGrapherPin
IlvGrapherPin.write(ilog.views.io.IlvOutputStream)
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.