我有一个名为ContentStream类......问题是,内部类AddRectancle想获得类的吸气的信息GraphicBeginn ...我想的类ContentStream可以达到吸气至少吸气剂是公共... PLSE告诉我如何内部类共享属性信息
public class ContentStreamExt extends ContentStreamProcessor
{
private Matrix graphicalMatrix;
public ContentStreamProcessorExt(ExtListener extListener)
{
super(extListener);
}
private void enhanceAdditional()
{
GraphicBeginn beginnGraphic = new GraphicBeginn();
super.register("a", beginnGraphic);
super.register("b", new AddRectangle(beginnGraphic));
}
private static class AddRectangle(GrapicBeginn beginn)
{
// should get the info of uUx and uUy
}
private static class GraphicBeginn implements ContentOperator
{
private float uUx;
private float uUy;
public float getuUx()
{
return this.uUx;
}
public float getuUy()
{
return this.uUy;
}
..... // the input for uUx and uuy will be created in a method
}
我已经实例化GraphicBeginn的对象,我希望能得到和的uux有uUy,只是把它传递给AddRectangle (float x,float y) – Fendrix