[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.gef] Re: inline/block
|
If you want an image inside a flow, you just create some ImageFlow figure,
or FigureFlow proxy to any generic draw2d Figure. Yes, you must subclass
and violate the warnings. These figures were provided as a preview of what
is upcoming in 3.1. Your subclass will work in 3.0, but may get broken and
require changes in 3.1.
"David Michonneau" <none@xxxxxxxx> wrote in message
news:cnsna0$v2i$1@xxxxxxxxxxxxxxxxxx
> ">>
> >> "Element 1 Element 1 Element 1 Element 1 Element 1 Element 1 Element 1
> >> Element 1 Element 1 Element 1 Element 1" "Element 2"
> >
> > Sounds like a FlowPage, with 2 TextFlows as children.
> >
>
> Ok, but Element2 could be something else than text, like an image for
> example. And both elements are linked to different EditParts, it means the
> FlowPage must be the figure of the parent EditPart. So if the parent must
be
> a FlowPage, that means all my figures need to be FlowFigures? I looked at
> the hierarchy of FlowFigure, it has BlockFlow and InlineFlow as children.
> But InlineFlow should not be subclassed, so how can I have inline
behaviour
> with non-text figures (inline in css means the element can coexist in the
> same line with other inline elements and his size is minimal, while a
block
> element takes the whole space and is always alone on its line)?
>
> Thanks,
>
> David
>
>